M
Magne Munkejord
Hi,
when I try to use the justify function inside a write statement it
always produces garbage output.
E.g:
variable i : integer := 10;
....
write(tbuf, "Value is " & justify(to_string(i), field => 8)));
writeline(output, tbuf);
Also, I have a problem with the to_hstring function for
std_logic_vectors. I doesn't accept slv so I have to convert my slv to
bit_vector first, which I find to be annoying. And my sim log will show
0000... when the actual result was UUUU... etc.
I usually use hwrite instead, but it results in several more lines of code.
Have any of you had more success using these new language features?
Magne
when I try to use the justify function inside a write statement it
always produces garbage output.
E.g:
variable i : integer := 10;
....
write(tbuf, "Value is " & justify(to_string(i), field => 8)));
writeline(output, tbuf);
Also, I have a problem with the to_hstring function for
std_logic_vectors. I doesn't accept slv so I have to convert my slv to
bit_vector first, which I find to be annoying. And my sim log will show
0000... when the actual result was UUUU... etc.
I usually use hwrite instead, but it results in several more lines of code.
Have any of you had more success using these new language features?
Magne