4
32-Bit Barrel Shifter Carry In / Carry Out -Carry in only used in RRX (rotate right extended) operations -Carry out always computed, even though not needed in rotate operations

32-Bit Barrel Shifter

Embed Size (px)

DESCRIPTION

32-Bit Barrel Shifter. Carry In / Carry Out. -Carry in only used in RRX (rotate right extended) operations -Carry out always computed, even though not needed in rotate operations. Carry Out Logic: Two Options. Separate logic computes Cout early using input and shift amount. Pros: - PowerPoint PPT Presentation

Citation preview

Page 1: 32-Bit Barrel Shifter

32-Bit Barrel Shifter

Carry In / Carry Out

-Carry in only used in RRX (rotate right extended) operations

-Carry out always computed, even though not needed in rotate operations

Page 2: 32-Bit Barrel Shifter

Carry Out Logic: Two Options

• Separate logic computes Cout early using input and shift amount

Pros:

-Cout signal ready much earlier, no need for propagation

-Simpler bit shifter designs

Cons:

-Many more gates needed

Page 3: 32-Bit Barrel Shifter

Carry Out Logic: Two Options

• Individual bit shifters compute and propagate Cout signal

Pros:

-Simpler overall design

-Fewer logic gates

Cons:

-Takes longer for Cout to be ready (propagation delay)

-More complicated bit shifters

Page 4: 32-Bit Barrel Shifter

Conclusion

• Went ahead and implemented Cout logic in the bit shifters

-Don’t really need the signal to be ready any earlier than the rest of the shifter output, especially not at the addition gate cost

-Each shifter computes Cout for its own shift amount and passes it on, or leaves Cout alone if it is disabled