Add testcase

This commit is contained in:
Eddie Hung 2019-02-06 12:49:30 -08:00
parent e112d2fbf5
commit a9674bd2ec
1 changed files with 10 additions and 0 deletions

10
tests/simple/dff_init.v Normal file
View File

@ -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