diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-06 12:49:30 -0800 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-06 12:49:30 -0800 |
commit | a9674bd2eca5efac6e4f7b2871a01cbba80f64ec (patch) | |
tree | c15aacc78405dada6ef8863f7076b95b6401e307 /tests | |
parent | e112d2fbf5a31f00ef19e6d05f28fecc1e9c56b9 (diff) | |
download | yosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.tar.gz yosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.tar.bz2 yosys-a9674bd2eca5efac6e4f7b2871a01cbba80f64ec.zip |
Add testcase
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/dff_init.v | 10 |
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 |