PDSP1601 MC
INSTRUCTION SET
ALU Arithmetic Instructions
Op Code
Function
Mnemonic
<00>
On the rising edge of CLK at the end of the cycle in which this instruction is executing, the
A Port, B Port, ALU, Barrel Shifter, and Shift Control Registers will be loaded with zeros.
The internal registered CO will also be set to zero, and the BFP flag will be set to activate
on overflow conditions.
CLRXX
<01>
The A input to the ALU is inverted and a one is added to the LSB.
The A input to the ALU is inverted and the CI input is added to the LSB.
MIAX1
<02>
MIACI
<03>
The A input to the ALU is inverted and the CO output from the ALU on the previous cycle
is added to the LSB.
MIACO
<04>
TheAinputtotheALUisrightshiftedonebitposition. TheLSBisdiscarded,andthevacant
MSB is filled by duplicating the original MSB (Sign Extension).
A2SGN
<05>
TheAinputtotheALUisrightshiftedonebitposition. TheLSBisdiscarded,andthevacant
MSB is filled with the LSB from the ALU left register.
A2RAL
<06>
TheAinputtotheALUisrightshiftedonebitposition. TheLSBisdiscarded,andthevacant
MSB is filled with the LSB from the ALU right register.
A2RAR
<07>
TheAinputtotheALUisrightshiftedonebitposition. TheLSBisdiscarded,andthevacant
MSB is filled with the LSB from the B input to the ALU.
A2RSX
<08>
The A input to the ALU is added to the B input, and the CI input is added to the LSB.
APBCI
<09>
TheAinputtotheALUisaddedtotheBinput, andtheCOoutfromtheALUontheprevious
cycle is added to the LSB.
APBCO
<0A>
The A input to the ALU is added to the inverted B input, and a one is added to the LSB.
AMBX1
<0B>
The A input to the ALU is added to the inverted B input, and the CI input is added to the
LSB.
AMBCI
<0C>
The A input to the ALU is added to the inverted B input, and the CO out from the ALU on
the previous cycle is added to the LSB.
AMBCO
<0D>
The inverted A input to the ALU is added to the B input, and a one is added to the LSB.
BMAX1
<0E>
The inverted A input to the ALU is added to the B input, and the CI input is added to the
LSB.
BMACI
<0F>
The inverted A input to the ALU is added to the B input, and the CO out from the ALU on
the previous cycle is added to the LSB.
BMACO
ALU Logical Instructions
Op Code
Function
Mnemonic
<10>
The A input to the ALU is logically 'ANDed' with the B input.
The A input to the ALU is logically 'ANDed' with the inverse of the B input.
The inverse of the A input to the ALU is logically 'ANDed' with the B input.
The A input to the ALU is logically 'ORed' with the B input.
The inverse A input to the ALU is logically 'ORed' with the B input.
The A input to the ALU is logically Exclusive-ORed with the B input.
The A input to the ALU is passed to the output.
ANXAB
<11>
ANANB
<12>
ANNAB
<13>
ORXAB
<14>
ORNAB
<15>
XORAB
<16>
PASXA
<17>
The inverse of the A input to the ALU is passed to the output.
PASNA
9