projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929beda
)
Add two tests
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 20 Nov 2019 00:57:58 +0000
(16:57 -0800)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 20 Nov 2019 00:57:58 +0000
(16:57 -0800)
tests/simple_abc9/abc9.v
patch
|
blob
|
history
diff --git
a/tests/simple_abc9/abc9.v
b/tests/simple_abc9/abc9.v
index 64b625efed521aa6b18c1358dbebf34e892e6a53..58596d701b2a59c691be31710ecb5bebf1c32357 100644
(file)
--- a/
tests/simple_abc9/abc9.v
+++ b/
tests/simple_abc9/abc9.v
@@
-267,3
+267,15
@@
module abc9_test026(output [3:0] o, p);
assign o = { 1'b1, 1'bx };
assign p = { 1'b1, 1'bx, 1'b0 };
endmodule
+
+module abc9_test029(input clk, d, r, output reg q);
+always @(posedge clk or posedge r)
+ if (r) q <= 1'b0;
+ else q <= d;
+endmodule
+
+module abc9_test030(input clk, d, r, output reg q);
+always @(negedge clk or posedge r)
+ if (r) q <= 1'b1;
+ else q <= d;
+endmodule