mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 06:03:11 +02:00
Check that it is possible to declare the type separately from the direction for non-ANSI integer, time and atom2 ports. Check that it is possible to both declare the type before and after the direction. For integer, time and atom2 types the range specification on the port direction declaration should be empty, rather than the implicit packed dimension of the integer type. Signed-off-by: Lars-Peter Clausen <[email protected]>
18 lines
371 B
Verilog
18 lines
371 B
Verilog
// Check that it is possible to declare the data type for an integer type module
|
|
// port separately from the direction for non-ANSI style port declarations.
|
|
// declarations.
|
|
|
|
module test(x);
|
|
output x;
|
|
integer x;
|
|
|
|
initial begin
|
|
if ($bits(x) == $bits(integer)) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
end
|
|
|
|
endmodule
|