Guest
Hi all,
I'm new to Verilog and my question is as follows:
What is the difference between the following two lines of code -
1. if (wr_ptr == rd_ptr + 1) ....
2. if (wr_ptr == rd_ptr + 1'b1) ....
When I uses the first one my simulator (Modelsim) doesn't behave as
expected but when I use the second one it gives me the wanted result.
Can anyone help me here ?
Thanks in advance, Moti.
I'm new to Verilog and my question is as follows:
What is the difference between the following two lines of code -
1. if (wr_ptr == rd_ptr + 1) ....
2. if (wr_ptr == rd_ptr + 1'b1) ....
When I uses the first one my simulator (Modelsim) doesn't behave as
expected but when I use the second one it gives me the wanted result.
Can anyone help me here ?
Thanks in advance, Moti.