mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 01:13:47 +02:00
Check that the following declarations inside a generate block generate an error: * module, program or interface * specparam * specify block * timeunit Signed-off-by: Lars-Peter Clausen <[email protected]>
17 lines
239 B
Verilog
17 lines
239 B
Verilog
// Check that declaring a module inside a generate block is an error
|
|
|
|
module test #(
|
|
parameter A = 1
|
|
);
|
|
|
|
generate
|
|
if (A) begin
|
|
// Error
|
|
module inner;
|
|
initial $display("FAILED");
|
|
endmodule
|
|
end
|
|
endgenerate
|
|
|
|
endmodule
|