Z
Zhi
Guest
eg:
a : std_logic_vector(3 downto 0) :=(others=>'0');
if a <= "0111" then
addrb <=a;
a :=a+"0001";
WRITE (buf_in,doutb);
WRITELINE(to_text,buf_in);
else
report "error";
end if;
I found when a ="1000", "1001","1010"... It never report "error"
I guess does it take the first left bit as 'sign'. If it is so, what
the difference between std_logic_vector and signed. And if I only want
to write 8 value to to_text. How to give the restriction.
Thanks.
a : std_logic_vector(3 downto 0) :=(others=>'0');
if a <= "0111" then
addrb <=a;
a :=a+"0001";
WRITE (buf_in,doutb);
WRITELINE(to_text,buf_in);
else
report "error";
end if;
I found when a ="1000", "1001","1010"... It never report "error"
I guess does it take the first left bit as 'sign'. If it is so, what
the difference between std_logic_vector and signed. And if I only want
to write 8 value to to_text. How to give the restriction.
Thanks.