From 383fe4a4bc9471e5ce93b0661f3a364b8da9f438 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Tue, 14 Apr 2020 13:08:37 -0700 Subject: [PATCH] tests: zinit for new types --- tests/techmap/zinit.ys | 98 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 2 deletions(-) diff --git a/tests/techmap/zinit.ys b/tests/techmap/zinit.ys index 18b17621f..d0e41b4d2 100644 --- a/tests/techmap/zinit.ys +++ b/tests/techmap/zinit.ys @@ -17,7 +17,7 @@ $adff #(.WIDTH(2), .CLK_POLARITY(1), .ARST_POLARITY(1'b0), .ARST_VALUE(2'b10)) d $adff #(.WIDTH(2), .CLK_POLARITY(0), .ARST_POLARITY(1'b1), .ARST_VALUE(2'b01)) dff9 (.CLK(C), .ARST(R), .D(D), .Q(Q[12:11])); endmodule EOT -equiv_opt -assert -map +/simcells.v -multiclock zinit +equiv_opt -assert -multiclock zinit design -load postopt select -assert-count 20 t:$_NOT_ @@ -47,7 +47,7 @@ $adff #(.WIDTH(2), .CLK_POLARITY(1), .ARST_POLARITY(1'b0), .ARST_VALUE(2'b10)) d $adff #(.WIDTH(2), .CLK_POLARITY(0), .ARST_POLARITY(1'b1), .ARST_VALUE(2'b01)) dff9 (.CLK(C), .ARST(R), .D(D), .Q(Q[12:11])); endmodule EOT -equiv_opt -assert -map +/simcells.v -multiclock zinit +equiv_opt -assert -multiclock zinit design -load postopt select -assert-count 0 t:$_NOT_ @@ -55,3 +55,97 @@ select -assert-count 1 w:unused a:init %i select -assert-count 1 w:Q a:init=13'bxxxx1xxxxxxxx %i select -assert-count 4 c:dff0 c:dff2 c:dff4 c:dff6 %% t:$_DFF_??0_ %i select -assert-count 4 c:dff1 c:dff3 c:dff5 c:dff7 %% t:$_DFF_??1_ %i + + +design -reset +read_verilog -icells <