简体   繁体   中英

How to return a blank line in ISim?

What it currently looks like in my Console Window:

at 20 ns: Note: TimerCount: 0 (/TEST_tb/).
at 20 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).
at 22500 ps: Note: TimerCount: 2 (/TEST_tb/).
at 22500 ps: Note: TimerTriggerSync: '0' (/TEST_tb/).
at 25 ns: Note: TimerCount: 2 (/TEST_tb/).
at 25 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).
at 27500 ps: Note: TimerCount: 2 (/TEST_tb/).
at 27500 ps: Note: TimerTriggerSync: '0' (/TEST_tb/).
at 30 ns: Note: TimerCount: 2 (/TEST_tb/).
at 30 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).

What I'd like it to look like:

at 20 ns: Note: TimerCount: 0 (/TEST_tb/).
at 20 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).

at 22500 ps: Note: TimerCount: 2 (/TEST_tb/).
at 22500 ps: Note: TimerTriggerSync: '0' (/TEST_tb/).

at 25 ns: Note: TimerCount: 2 (/TEST_tb/).
at 25 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).

at 27500 ps: Note: TimerCount: 2 (/TEST_tb/).
at 27500 ps: Note: TimerTriggerSync: '0' (/TEST_tb/).

at 30 ns: Note: TimerCount: 2 (/TEST_tb/).
at 30 ns: Note: TimerTriggerSync: '0' (/TEST_tb/).

Any ideas on how to accomplish this?

EDIT:

This code

    report "Bad Test";
    report "TimerTrigger: " & std_logic'image(TimerTrigger);
    report "TimerTriggerSync: " & std_logic'image(TimerTriggerSync) & LF;

prints out this:

at 25 ns: Note: Bad Test (/TEST_tb/).
at 25 ns: Note: TimerTrigger: '1' (/TEST_tb/).
at 25 ns: Note: TimerTriggerSync: '0'
 (/TEST_tb/).
at 40 ns: Note: Bad Test (/TEST_tb/).
at 40 ns: Note: TimerTrigger: '1' (/TEST_tb/).
at 40 ns: Note: TimerTriggerSync: '0'
 (/TEST_tb/).
at 55 ns: Note: Bad Test (/TEST_tb/).
at 55 ns: Note: TimerTrigger: '1' (/TEST_tb/).
at 55 ns: Note: TimerTriggerSync: '0'
 (/TEST_tb/).
at 70 ns: Note: Bad Test (/TEST_tb/).
at 70 ns: Note: TimerTrigger: '1' (/TEST_tb/).
at 70 ns: Note: TimerTriggerSync: '0'
 (/TEST_tb/).

This would work perfectly if I didn't have to print out the file name (/TEST_tb/) as well. This is the new obstacle to work around.

In your report statement, you can try:

Report "My Stuff" & LF severity NOTE;

If that does not do it, add the following after your TimerTriggerSync reports:

use std.textio.all ; 
. . . 
write(Buf, string'(""));
writeline(OUTPUT, BUF);

You might also try the following after your TimerTriggerSync reports:

write(std.textio.OUTPUT, "" & LF);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM