Add testcase
authorEddie Hung <eddieh@ece.ubc.ca>
Wed, 6 Feb 2019 20:49:30 +0000 (12:49 -0800)
committerEddie Hung <eddieh@ece.ubc.ca>
Wed, 6 Feb 2019 20:49:30 +0000 (12:49 -0800)
tests/simple/dff_init.v [new file with mode: 0644]

diff --git a/tests/simple/dff_init.v b/tests/simple/dff_init.v
new file mode 100644 (file)
index 0000000..aad3783
--- /dev/null
@@ -0,0 +1,10 @@
+module dff_test(n1, n1_inv, clk);
+  input clk;
+  (* init = 32'd0 *)
+  output n1;
+  reg n1 = 32'd0;
+  output n1_inv;
+  always @(posedge clk)
+      n1 <= n1_inv;
+  assign n1_inv = ~n1;
+endmodule