mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
tests: add an generate-else test too
This commit is contained in:
parent
88bddb37c9
commit
29d84339bf
1 changed files with 34 additions and 0 deletions
|
@ -7,3 +7,37 @@ module test ();
|
|||
if (y) (* foo *) ;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
|
||||
design -reset
|
||||
logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 3 # cumulative
|
||||
logger -expect-no-warnings
|
||||
read_verilog <<EOT
|
||||
module test ();
|
||||
localparam y = 1;
|
||||
always @(*)
|
||||
if (y) (* foo *) ; else (* bar *) ;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
|
||||
design -reset
|
||||
logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 4 # cumulative
|
||||
logger -expect-no-warnings
|
||||
read_verilog <<EOT
|
||||
module test ();
|
||||
localparam y = 1;
|
||||
generate if (y) (* foo *) ; endgenerate
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
|
||||
design -reset
|
||||
logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 6 # cumulative
|
||||
logger -expect-no-warnings
|
||||
read_verilog <<EOT
|
||||
module test ();
|
||||
localparam y = 1;
|
||||
generate if (y) (* foo *) ; else (* bar *); endgenerate
|
||||
endmodule
|
||||
EOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue