mirror of https://github.com/YosysHQ/yosys.git
Add a equiv test too
This commit is contained in:
parent
90c5ca330c
commit
1cc106452f
|
@ -9,3 +9,10 @@ wire w;
|
||||||
unknown u(~i, w);
|
unknown u(~i, w);
|
||||||
unknown2 u2(w, o);
|
unknown2 u2(w, o);
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
module abc9_test031(input clk, d, r, output reg q);
|
||||||
|
initial q = 1'b0;
|
||||||
|
always @(negedge clk or negedge r)
|
||||||
|
if (r) q <= 1'b0;
|
||||||
|
else q <= d;
|
||||||
|
endmodule
|
||||||
|
|
|
@ -22,3 +22,19 @@ abc9 -lut 4
|
||||||
select -assert-count 1 t:$lut r:LUT=2'b01 r:WIDTH=1 %i %i
|
select -assert-count 1 t:$lut r:LUT=2'b01 r:WIDTH=1 %i %i
|
||||||
select -assert-count 1 t:unknown
|
select -assert-count 1 t:unknown
|
||||||
select -assert-none t:$lut t:unknown %% t: %D
|
select -assert-none t:$lut t:unknown %% t: %D
|
||||||
|
|
||||||
|
design -load read
|
||||||
|
hierarchy -top abc9_test031
|
||||||
|
proc
|
||||||
|
async2sync
|
||||||
|
design -save gold
|
||||||
|
|
||||||
|
abc9 -lut 4
|
||||||
|
check
|
||||||
|
design -stash gate
|
||||||
|
|
||||||
|
design -import gold -as gold
|
||||||
|
design -import gate -as gate
|
||||||
|
|
||||||
|
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
||||||
|
sat -seq 10 -verify -prove-asserts -show-ports miter
|
||||||
|
|
Loading…
Reference in New Issue