iverilog/ivtest/ivltests/module_nonansi_time2.v

17 lines
326 B
Verilog

// Check that it is possible to declare the data type for a time type module
// port before the direction for non-ANSI style port declarations.
module test(x);
time x;
output x;
initial begin
if ($bits(x) == 64) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule