Tests: Fix buggy size test.

This commit is contained in:
Wilson Snyder 2018-11-26 18:22:20 -05:00
parent 5cc11839b5
commit 2a43410fa6

View File

@ -29,6 +29,9 @@ interface simple_bus #(AWIDTH = 8, DWIDTH = 8)
output req, addr,
output data);
initial begin
if (DWIDTH != 16) $stop;
end
endinterface: simple_bus
module mem(interface a);
@ -36,7 +39,7 @@ module mem(interface a);
always @(posedge a.clk)
a.gnt <= a.req & avail;
initial begin
if ($bits(a.data != 16)) $stop;
if ($bits(a.data) != 16) $stop;
$write("*-* All Finished *-*\n");
$finish;
end