Add test
authorEddie Hung <eddie@fpgeh.com>
Thu, 20 Jun 2019 17:10:43 +0000 (10:10 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 20 Jun 2019 17:13:52 +0000 (10:13 -0700)
tests/various/signext.ys [new file with mode: 0644]

diff --git a/tests/various/signext.ys b/tests/various/signext.ys
new file mode 100644 (file)
index 0000000..26dab13
--- /dev/null
@@ -0,0 +1,24 @@
+
+read_verilog -formal <<EOT
+module gate(input clk, output [1:0] o);
+assign o = 1'bx;
+endmodule
+EOT
+
+
+## Example usage for "pmuxtree" and "muxcover"
+
+proc
+
+## Equivalence checking
+
+read_verilog -formal <<EOT
+module gold(input clk, output [1:0] o);
+assign o = 2'bxx;
+endmodule
+EOT
+
+proc
+
+miter -equiv -flatten -make_assert -make_outputs gold gate miter
+sat -verify -prove-asserts -show-ports -enable_undef miter