Trying to understand 32 bit registers
lardom
Posts: 1,659
in Propeller 1
I just watched a video about a 4 bit adder. It makes sense to me: An XOR gate is connected in parallel to an AND gate and the "carry-out" is connected to the "carry-in" of the next adder.
Does that mean the Propeller has a 32-bit adder for each register?
Does that mean the Propeller has a 32-bit adder for each register?
Comments
The ALU in the Propeller has what's called a "barrel shifter" that can shift a value left or right from 1 to 31 bits with or without sign extension or a carry bit as the 33rd bit ... all in a single operation.
TEST instruction does this, it can be very useful.
So the ALU has add/sub/neg/abs/or/and/nand/xor/shift/rotate/parity/reverse/compare circuitry and probably a few
things I've forgotten.
The registers are just a block of SRAM that the ALU gets to read/write.
All of this times 8 of course as each cog has its own.