From a9674bd2eca5efac6e4f7b2871a01cbba80f64ec Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 6 Feb 2019 12:49:30 -0800 Subject: [PATCH] Add testcase --- tests/simple/dff_init.v | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/simple/dff_init.v 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 -- 2.30.2