
19
Basic Instruction Set
1. Wait for number of input samples
>
threshold
127:9 = 0
8:0 = 001
0000,0000,0000,0001h
2. Jumpunconditional
127:9 = 0
8:0 = 1JJJJJ111b
example: jump to step 0= 0000,0000,0000,0107h
3. Jump RSCO (jump on resampler NCO carry output)
127:9 = 0
8:0 = 1JJJJJ101b
example: jump RSCO, step 0= 0000,0000,0000,0105h
4. Jump RSCO (jump on no resampler NCO carry output)
127:9 = 0
8:0 = 1JJJJJ100b
example: jump RSCO, step 0 = 0000,0000,0000,0104h
5. NOP single clock
127:9 = 0
8:0 = 010000000b
NOP1 = 0000,0000,0000,0080h
6. LoadLoopCounter
127:21 = 0
20:9 = Loop counter preload (tested against 0)
8:0 = 010000100b
example: LdLpCntr 14 = 0000,0000,0000,1C84h
7. NOPs more than 1 clock period
NOP
8. FIR examples
even#taps, odd#taps, even/odd symmetry, asymmetric,
complex, hbf, interpolation, interpolation hbf, resampler,
u/c
Single FIR Basic Program
This is the basic program for a single FIR. This program applies to decimation filters (including DECx1) that are symmetric or
asymmetric (but not complex). The FIR output is routed through path A with the AGC enabled.
0 - WAIT FOR ENOUGH SAMPLES
0000
0000
0000
0000
0000
0000
0000
0000
127:96
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
95:64
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
64:32
00000000h
0000
0000
0000
0000
0000
0000
0000
0001
31:0
00000001h
1 - FIR
0000
0001
0101
1111
1111
100R
RRRR
RRRR
127:96
015FF---h
00TT
TTTT
TTTD
DDDD
DDDD
0000
0000
0111
95:64
-----007h
0000
1000
0000
0000
0000
1010
0000
0000
63:32
08000A00h
0000
1011
0000
0000
0FFF
FFF0
1100
1000
31:0
0B00--C8h
2 - JUMP TO STEP 0
0000
0000
0000
0000
0000
0000
0000
0000
127:96
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
95:64
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
64:32
00000000h
0000
0000
0000
0000
0000
0001
0000
0111
31:0
00000107h
Four bit fields must be filled in:
F - filter type (this example applies to types 1-5)
D - decimation (also loaded into wait threshold)
T - number of taps minus 1
R - clocks/calculation (=floor((taps+1)/2) for symmetric, = taps for asymmetric)
The rest of the instruction RAM would typically be filled with NOP instructions:
0000
0000
0000
0000
0000
0000
0000
0000
127:96
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
95:64
00000000h
0000
0000
0000
0000
0000
0000
0000
0000
64:32
00000000h
0000
0000
0000
0000
0000
0000
1000
0000
31:0
00000080h
HSP50216