projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e112d2f
)
Add testcase
author
Eddie Hung
<eddieh@ece.ubc.ca>
Wed, 6 Feb 2019 20:49:30 +0000
(12:49 -0800)
committer
Eddie 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]
patch
|
blob
diff --git a/tests/simple/dff_init.v
b/tests/simple/dff_init.v
new file mode 100644
(file)
index 0000000..
aad3783
--- /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