M
Massi
Guest
Hi everyone...another newbie question, I'm writing a testbench to send
different address to my unit under test.Each address is compute
starting from a base address (say for example a 32 bit address like
X"10000400"). The piece of code which doesn't work is the following:
for i in 0 to 10 loop
temp := i*4+X"10000400";
address_in_sig <= std_logic_vector(to_unsigned(temp, 32));
-- Send the address to the UUT and verify the output...
end loop;
If I replace X"10000400" with the corresponding unsigned value
everything works, but I wonder which is the right way to code it using
the hexadecima value (which is more readable than 268436480...).
Thanks in advance for your help!
different address to my unit under test.Each address is compute
starting from a base address (say for example a 32 bit address like
X"10000400"). The piece of code which doesn't work is the following:
for i in 0 to 10 loop
temp := i*4+X"10000400";
address_in_sig <= std_logic_vector(to_unsigned(temp, 32));
-- Send the address to the UUT and verify the output...
end loop;
If I replace X"10000400" with the corresponding unsigned value
everything works, but I wonder which is the right way to code it using
the hexadecima value (which is more readable than 268436480...).
Thanks in advance for your help!