mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-06 09:07:15 +02:00
Check that automatic variables referenced through an assignment pattern in a procedural `force` statement are rejected. Signed-off-by: Lars-Peter Clausen <[email protected]>
20 lines
324 B
Verilog
20 lines
324 B
Verilog
// Check that assignment patterns cannot reference automatic variables in
|
|
// procedural force statements.
|
|
|
|
module test;
|
|
|
|
reg [3:0] result;
|
|
|
|
task automatic t;
|
|
input [3:0] value;
|
|
begin
|
|
force result = '{value[3], value[2], value[1], value[0]};
|
|
end
|
|
endtask
|
|
|
|
initial begin
|
|
t(4'ha);
|
|
end
|
|
|
|
endmodule
|