nsgil85
Member level 4
Hi everyone
What is the syntex for comparing 2 unsigned number with diffrent length
for example:
signal sig_A :unsigned(3 downto 0) := to_unsigned(1, sig_A 'range) ;
signal sig_B :unsigned(2 downto 0) := to_unsigned(3, sig_B 'range) ;
if sigB > sig_A then
...
will i need to convert both numbers first to integer and then compare?
Thanks
Gil
What is the syntex for comparing 2 unsigned number with diffrent length
for example:
signal sig_A :unsigned(3 downto 0) := to_unsigned(1, sig_A 'range) ;
signal sig_B :unsigned(2 downto 0) := to_unsigned(3, sig_B 'range) ;
if sigB > sig_A then
...
will i need to convert both numbers first to integer and then compare?
Thanks
Gil