A
Analog Guy
Guest
I am a bit confused about how to write testbench results to both the
ModelSim screen as well as to an output file??? I was under the
assumption that a WRITELINE destroys the LINE variable, hence I tried
the following:
PROCEDURE print_main_header (text_in : IN STRING) IS
VARIABLE L : LINE;
VARIABLE F : LINE;
BEGIN
WRITE(L, MAJOR_DIVIDER);
F := L;
WRITELINE(OUTPUT, L); -- write to ModelSim window
WRITELINE(output_file, F); -- write to file
But received the following ModelSim failure:
** Failure: (vsim-5) ****** Memory failure. *****
# Bad pointer/access type passed to memory subsystem.
# Pointer may have been previously deallocated.
Any explanation of the problem would be appreciated.
ModelSim screen as well as to an output file??? I was under the
assumption that a WRITELINE destroys the LINE variable, hence I tried
the following:
PROCEDURE print_main_header (text_in : IN STRING) IS
VARIABLE L : LINE;
VARIABLE F : LINE;
BEGIN
WRITE(L, MAJOR_DIVIDER);
F := L;
WRITELINE(OUTPUT, L); -- write to ModelSim window
WRITELINE(output_file, F); -- write to file
But received the following ModelSim failure:
** Failure: (vsim-5) ****** Memory failure. *****
# Bad pointer/access type passed to memory subsystem.
# Pointer may have been previously deallocated.
Any explanation of the problem would be appreciated.