mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 01:53:53 +02:00
test: add attribute-before-stmt test from @nakengelhardt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user