Jump to content

Addition of 2 bits


Recommended Posts

I am puzzled by this code, which is mentioned in problem 2.7 of the Roth, John and Lee book, "Digital Systems Design Using Verilog". Both the signals are single bits.

When I have simulated this code, it agrees with the instructor's manual. Both a simulation and the manual say that if A has a value of 1,  B<=A+1 results in B = 1.

Now I can understand {carry, sum} = A + 1; should result in {1,0}. But if the LHS is also a single bit, why is B=1 the result????? Why isn't the result 0?


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...