Forum Discussion
Altera_Forum
Honored Contributor
15 years agosimple verilog question...
hi there! im trying to determine the root cause of an error i keep getting. Basically I'm trying to convert a 2's complement value, lets say binary X to decimal Y (i do this by multiplying...
Altera_Forum
Honored Contributor
15 years agothanks for the response Kaz!
Let me break it down a bit more however. The two expressions are actually the same (logically). But the outcome is different. In other words, assign X_n = ~X; always@(posedge CLK) begin Y = X_n * 625; end DOES NOT equal the below equation always@(posedge CLK) begin Y = ~X * 625; end