T
Tricky
Guest
On Jan 7, 3:17 pm, Jim Lewis <j...@synthworks.com> wrote:
with the line itself.
Normally you then use:
writeline(OUTPUT, L);
with this you dont need a LF on the end as the writeline procedure
adds one for you.
If you construct a line using write commands, and want to report it,
use:
report L.all.
This will not flush the line thoug like th writeline procedure.
This only writes the string to the line, you then need to do somethingDavid Bishop wrote:
Xin Xiao wrote:
i want to write some text in the output of my simulation. In my code I
have a variable and I would want that, when the simulation reaches,
say, 10 ns, the simulator writes the text "the variable p is blah blah
". Should I use the instruction "writeline" in my test-bench or there
is another solution? the scope of the variable is outside of the
test-bench.
try time'image
Something like this:
variable L : line;
....
write (L, "The variable P is " & time'image(P) );
I don't think you need a string' here because the output of time'image
is a string.
You may also wish to add a new line:
write (L, "The variable P is " & time'image(P) & LF );
with the line itself.
Normally you then use:
writeline(OUTPUT, L);
with this you dont need a LF on the end as the writeline procedure
adds one for you.
If you construct a line using write commands, and want to report it,
use:
report L.all.
This will not flush the line thoug like th writeline procedure.