mirror of https://github.com/zachjs/sv2v.git
18 lines
334 B
Systemverilog
18 lines
334 B
Systemverilog
task foo;
|
|
$display("task foo() called");
|
|
endtask
|
|
function bar;
|
|
input [2:0] n;
|
|
bar = baz(n + 1);
|
|
endfunction
|
|
function baz;
|
|
input [2:0] n;
|
|
baz = n * 2;
|
|
endfunction
|
|
localparam PARAM = 37;
|
|
module top;
|
|
initial foo();
|
|
initial $display("bar(0) = %d", bar(0));
|
|
initial $display("PARAM = %d", PARAM);
|
|
endmodule
|