mirror of https://github.com/zachjs/sv2v.git
19 lines
294 B
Verilog
19 lines
294 B
Verilog
|
|
module top;
|
||
|
|
task foo;
|
||
|
|
integer x;
|
||
|
|
begin
|
||
|
|
x = 2;
|
||
|
|
$display(x * x);
|
||
|
|
end
|
||
|
|
endtask
|
||
|
|
task bar;
|
||
|
|
integer y;
|
||
|
|
begin
|
||
|
|
y = 3;
|
||
|
|
$display(y * y);
|
||
|
|
end
|
||
|
|
endtask
|
||
|
|
initial foo;
|
||
|
|
initial bar;
|
||
|
|
endmodule
|