aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2019-02-06 12:49:30 -0800
committerEddie Hung <eddieh@ece.ubc.ca>2019-02-06 12:49:30 -0800
commita9674bd2eca5efac6e4f7b2871a01cbba80f64ec (patch)
treec15aacc78405dada6ef8863f7076b95b6401e307 /tests
parente112d2fbf5a31f00ef19e6d05f28fecc1e9c56b9 (diff)
downloadyosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.tar.gz
yosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.tar.bz2
yosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.zip
Add testcase
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/dff_init.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/simple/dff_init.v b/tests/simple/dff_init.v
new file mode 100644
index 000000000..aad378346
--- /dev/null
+++ b/tests/simple/dff_init.v
@@ -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