V
vu_5421
Guest
Given :
signal bit_count0 : natural range 0 to CHAN0_BITCNT_MAX - 1;
within a process, is why is the following statement giving me an error
in ModelSim?
if(bit_count0 = bit_count0'high ) then
Of course this compiles no problem :
if(bit_count0 = CHAN0_BITCNT_MAX - 1 ) then
But the first if statement is a little more readable.
Thanks for any help.
signal bit_count0 : natural range 0 to CHAN0_BITCNT_MAX - 1;
within a process, is why is the following statement giving me an error
in ModelSim?
if(bit_count0 = bit_count0'high ) then
Of course this compiles no problem :
if(bit_count0 = CHAN0_BITCNT_MAX - 1 ) then
But the first if statement is a little more readable.
Thanks for any help.