如何在ISim中返回空白行?

时间:2015-08-07 15:58:07

标签: vhdl xilinx xilinx-ise

我的控制台窗口目前的样子:

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/).

我希望它看起来像:

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/).

关于如何实现这一目标的任何想法?

修改

此代码

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

打印出来:

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/).

如果我不打印文件名(/ TEST_tb /),这将完美地工作。这是解决问题的新障碍。

1 个答案:

答案 0 :(得分:2)

在报告声明中,您可以尝试:

Report "My Stuff" & LF severity NOTE;

如果不这样做,请在TimerTriggerSync报告后添加以下内容:

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

您可能还会在TimerTriggerSync报告后尝试以下操作:

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