2020-05-14 18:09:41 -05:00
|
|
|
read_verilog <<EOT
|
|
|
|
module top;
|
|
|
|
task foo;
|
|
|
|
endtask
|
|
|
|
|
|
|
|
always @*
|
|
|
|
(* foo *) foo;
|
|
|
|
|
|
|
|
initial
|
|
|
|
if (0) $info("bar");
|
|
|
|
endmodule
|
|
|
|
EOT
|
|
|
|
# Since task enables are not an RTLIL object,
|
|
|
|
# any attributes on their AST get dropped
|
|
|
|
select -assert-none a:* a:src %d
|
|
|
|
|
|
|
|
|
2023-09-05 21:19:28 -05:00
|
|
|
logger -expect error "syntax error, unexpected ';', expecting ATTR_BEGIN or TOK_INCREMENT or TOK_DECREMENT" 1
|
2020-05-14 18:09:41 -05:00
|
|
|
design -reset
|
|
|
|
read_verilog <<EOT
|
|
|
|
module top;
|
|
|
|
task foo;
|
|
|
|
endtask
|
|
|
|
|
|
|
|
always @*
|
|
|
|
foo (* foo *);
|
|
|
|
endmodule
|
|
|
|
EOT
|