Skip to content

Commit 9636b20

Browse files
committed
Fix Almost empty test
1 parent 1cc2c59 commit 9636b20

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

sim/test/async_fifo_unit_test.sv

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,13 @@ module async_fifo_unit_test;
178178

179179
`FAIL_IF_NOT_EQUAL(arempty, 0);
180180

181-
for (i=0; i<2; i=i+1) begin
182-
@(posedge wclk)
183-
winc = 1;
184-
wdata = i;
185-
@(negedge wclk)
186-
winc = 1;
187-
end
188-
@(posedge wclk);
181+
@(posedge wclk)
182+
winc = 1;
183+
wdata = i;
189184
@(posedge wclk);
185+
winc = 0;
190186

187+
#100;
191188
`FAIL_IF_NOT_EQUAL(arempty, 1);
192189

193190
`UNIT_TEST_END

sim/test/wave.gtkw

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[*]
2-
[*] GTKWave Analyzer v3.3.85 (w)1999-2017 BSI
3-
[*] Wed Oct 4 21:08:19 2017
2+
[*] GTKWave Analyzer v3.3.87 (w)1999-2017 BSI
3+
[*] Sun Aug 5 12:00:52 2018
44
[*]
5-
[dumpfile] "/Users/damien/dev/verilog/async_fifo/sim/test/dump.lxt"
6-
[dumpfile_mtime] "Wed Oct 4 20:53:16 2017"
7-
[dumpfile_size] 3687
8-
[savefile] "/Users/damien/dev/verilog/async_fifo/sim/test/wave.gtkw"
9-
[timestart] 1089250
10-
[size] 1920 1056
11-
[pos] -1 0
12-
*-13.241215 1077000 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
5+
[dumpfile] "/Users/damien/dev/systemVerilog/async_fifo/sim/test/dump.lxt"
6+
[dumpfile_mtime] "Sun Aug 5 11:55:44 2018"
7+
[dumpfile_size] 6440
8+
[savefile] "/Users/damien/dev/systemVerilog/async_fifo/sim/test/wave.gtkw"
9+
[timestart] 3019200
10+
[size] 1280 730
11+
[pos] 0 0
12+
*-16.372753 3190100 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
1313
[treeopen] async_fifo_unit_test.
1414
[treeopen] async_fifo_unit_test.dut.
1515
[sst_width] 196
1616
[signals_width] 332
1717
[sst_expanded] 1
18-
[sst_vpaned_height] 575
18+
[sst_vpaned_height] 492
1919
@200
2020
-TB
2121
@22
@@ -79,18 +79,23 @@ async_fifo_unit_test.dut.fifomem.rdata[31:0]
7979
@28
8080
async_fifo_unit_test.dut.rptr_empty.rclk[0]
8181
async_fifo_unit_test.dut.rptr_empty.rrst_n[0]
82-
async_fifo_unit_test.dut.rptr_empty.rinc[0]
83-
async_fifo_unit_test.dut.rptr_empty.rempty[0]
82+
async_fifo_unit_test.dut.rptr_empty.arempty[0]
83+
async_fifo_unit_test.dut.rptr_empty.arempty_val[0]
8484
@22
8585
async_fifo_unit_test.dut.rptr_empty.raddr[3:0]
8686
async_fifo_unit_test.dut.rptr_empty.rbin[4:0]
8787
async_fifo_unit_test.dut.rptr_empty.rbinnext[4:0]
8888
@28
89+
async_fifo_unit_test.dut.rptr_empty.rclk[0]
90+
async_fifo_unit_test.dut.rptr_empty.rempty[0]
8991
async_fifo_unit_test.dut.rptr_empty.rempty_val[0]
9092
@22
9193
async_fifo_unit_test.dut.rptr_empty.rgraynext[4:0]
94+
async_fifo_unit_test.dut.rptr_empty.rgraynextm1[4:0]
95+
@28
96+
async_fifo_unit_test.dut.rptr_empty.rinc[0]
97+
@22
9298
async_fifo_unit_test.dut.rptr_empty.rptr[4:0]
93-
@23
9499
async_fifo_unit_test.dut.rptr_empty.rq2_wptr[4:0]
95100
[pattern_trace] 1
96101
[pattern_trace] 0

0 commit comments

Comments
 (0)