Tests: Fix t_force_release to reflect intent (#7906)
Signed-off-by: Artur Bieniek <abieniek@antmicro.com>
This commit is contained in:
parent
c7e8075972
commit
671ff628ff
|
|
@ -11,7 +11,7 @@ import vltest_bootstrap
|
||||||
|
|
||||||
test.scenarios('simulator')
|
test.scenarios('simulator')
|
||||||
|
|
||||||
test.compile(verilator_flags2=["--binary"])
|
test.compile(verilator_flags2=["--binary", "-Wno-IEEEMAYDEPRECATE"])
|
||||||
|
|
||||||
test.execute()
|
test.execute()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// SPDX-License-Identifier: CC0-1.0
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
// verilog_format: off
|
// verilog_format: off
|
||||||
`define stop // TODO
|
`define stop $stop
|
||||||
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0)
|
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0)
|
||||||
// verilog_format: on
|
// verilog_format: on
|
||||||
|
|
||||||
|
|
@ -14,11 +14,12 @@
|
||||||
module t;
|
module t;
|
||||||
logic a, b, c, d;
|
logic a, b, c, d;
|
||||||
wire e;
|
wire e;
|
||||||
|
|
||||||
and and1 (e, a, b, c);
|
and and1 (e, a, b, c);
|
||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
$monitor("%d d=%b,e=%b", $stime, d, e);
|
$monitor("%d d=%b,e=%b", $stime, d, e);
|
||||||
d = a & b & c;
|
assign d = a & b & c;
|
||||||
a = 1;
|
a = 1;
|
||||||
b = 0;
|
b = 0;
|
||||||
c = 1;
|
c = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue