0

I am trying to model an ALU to implement a shift operation. When the shift operation is done, I should check if the result is 0. If a result == 0 is found, I want to set a single result bit to 1.

I was thinking about NOR-ing all the bits, but since I'm implementing this for a 32-bit ALU, that doesn't seem to be the right way.

Is there an easy way to find out if a 32-bit string == 0 and set a single bit if that's the case?

Here's a pic of my ALU:

alu

I want to insert some kind of logic where the "?" is.

ocrdu
  • 8,705
  • 21
  • 30
  • 42
oxicod
  • 1

0 Answers0