projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c117ac
)
test: add attribute-before-stmt test from @nakengelhardt
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 14 May 2020 23:32:14 +0000
(16:32 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Mon, 25 May 2020 14:36:53 +0000
(07:36 -0700)
tests/verilog/bug2037.ys
patch
|
blob
|
history
diff --git
a/tests/verilog/bug2037.ys
b/tests/verilog/bug2037.ys
index eb4f0fac478a1cf8850dc092533a563b8d2c0d41..4b629ba9241d1c6c0385351cd204181fc288c0d5 100644
(file)
--- a/
tests/verilog/bug2037.ys
+++ b/
tests/verilog/bug2037.ys
@@
-41,3
+41,18
@@
module test ();
endmodule
EOT
select -assert-none a:*
+
+
+design -reset
+read_verilog <<EOT
+module test ();
+ localparam y = 1;
+ reg x = 1'b0;
+ always @(*) begin
+ if (y)
+ (* foo *) x <= 1'b1;
+ else
+ (* bar *) x = 1'b0;
+ end
+endmodule
+EOT