Fklein23 Posted February 21, 2017 Share Posted February 21, 2017 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 More sharing options...
jpeyron Posted February 21, 2017 Share Posted February 21, 2017 Hi Fklein23, We do not have the book "Digital Systems Design Using Verilog". Could you post the code that you are working with? cheers, Jon Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.