mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 06:33:02 +02:00
Check that a sign, width or type cast expression that contains an automatic term is detected as such and can not be used as the left-hand side in a procedural continuous assignment. Signed-off-by: Lars-Peter Clausen <[email protected]>
22 lines
354 B
Verilog
22 lines
354 B
Verilog
// Check that an expression is correctly detected to contain an automatic
|
|
// variable if the variable is in a SystemVerilog size cast expression.
|
|
|
|
module automatic_error;
|
|
|
|
reg g;
|
|
|
|
task automatic auto_task;
|
|
reg l;
|
|
|
|
begin: block
|
|
assign g = 1'(l);
|
|
end
|
|
endtask
|
|
|
|
initial begin
|
|
auto_task;
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|