19 lines
354 B
Verilog
19 lines
354 B
Verilog
// Check that it is possible to declare the data type for a string type task
|
|
// port separately from the direction for non-ANSI style port declarations.
|
|
|
|
module test;
|
|
|
|
task t;
|
|
input x;
|
|
string x;
|
|
if (x == "TEST") begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
endtask
|
|
|
|
initial t("TEST");
|
|
|
|
endmodule
|