2020-05-11 18:33:11 +02:00
|
|
|
logger -expect-no-warnings
|
|
|
|
|
read_verilog <<EOT
|
|
|
|
|
module test ();
|
|
|
|
|
localparam y = 1;
|
|
|
|
|
always @(*)
|
|
|
|
|
if (y) (* foo *) ;
|
|
|
|
|
endmodule
|
|
|
|
|
EOT
|
2020-05-14 19:46:40 +02:00
|
|
|
select -assert-none a:* a:src %d
|
2020-05-11 19:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
design -reset
|
|
|
|
|
logger -expect-no-warnings
|
|
|
|
|
read_verilog <<EOT
|
|
|
|
|
module test ();
|
|
|
|
|
localparam y = 1;
|
|
|
|
|
always @(*)
|
|
|
|
|
if (y) (* foo *) ; else (* bar *) ;
|
|
|
|
|
endmodule
|
|
|
|
|
EOT
|
2020-05-14 19:46:40 +02:00
|
|
|
select -assert-none a:* a:src %d
|
2020-05-11 19:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
design -reset
|
|
|
|
|
logger -expect-no-warnings
|
|
|
|
|
read_verilog <<EOT
|
|
|
|
|
module test ();
|
|
|
|
|
localparam y = 1;
|
|
|
|
|
generate if (y) (* foo *) ; endgenerate
|
|
|
|
|
endmodule
|
|
|
|
|
EOT
|
2020-05-14 19:46:40 +02:00
|
|
|
select -assert-none a:*
|
2020-05-11 19:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
design -reset
|
|
|
|
|
logger -expect-no-warnings
|
|
|
|
|
read_verilog <<EOT
|
|
|
|
|
module test ();
|
|
|
|
|
localparam y = 1;
|
|
|
|
|
generate if (y) (* foo *) ; else (* bar *); endgenerate
|
|
|
|
|
endmodule
|
|
|
|
|
EOT
|
2020-05-14 19:46:40 +02:00
|
|
|
select -assert-none a:*
|
2020-05-15 01:32:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|