tests: update/extend task argument tests

This commit is contained in:
Eddie Hung 2020-05-13 10:11:45 -07:00
parent 1f3003be7d
commit 0d2c33f9f4
2 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,34 @@
read_verilog -sv <<EOT
module Task_Test_Top
(
input a,
output b
);
task SomeTaskName(a);
b = ~a;
endtask
always @*
SomeTaskName(a);
assert property (b == ~a);
endmodule
EOT
proc
sat -verify -prove-asserts
design -reset
logger -expect error "syntax error, unexpected TOK_ENDTASK, expecting ';'" 1
read_verilog -sv <<EOT
module Task_Test_Top
(
);
task SomeTaskName(a)
endtask
endmodule
EOT

View File

@ -1,4 +1,4 @@
logger -expect error "Non-ANSI style task/function arguments not currently supported" 1
logger -expect error "task/function argument direction missing" 1
read_verilog <<EOT
module Task_Test_Top
(
@ -9,4 +9,3 @@ module Task_Test_Top
endmodule
EOT