I ran ModelSim on my adder_tb.v testbench file. The following snippet of code gave me a warning:
in0=8'h1F4. The warning is: redundant digits in numeric literal. In the simulation, instead of having the value of 500(decimal) as intended, in0 has the value of 244(decimal) which is 1F(hex). Why does this happen?
Also, other numbers have the same warning. However, I tried in0=8'32 and that seemed to work fine.
Thanks,
Richard (rc...@uclink4.berkeley.edu)
-Greg G.