mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 09:28:12 +02:00
support converting interfaces with parameters
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
module top;
|
||||
function bar;
|
||||
localparam MULTIPLIER_1 = 7;
|
||||
localparam MULTIPLIER_2 = 8;
|
||||
function integer bar_1;
|
||||
input integer x;
|
||||
bar = x * x;
|
||||
bar_1 = x * x * MULTIPLIER_1;
|
||||
endfunction
|
||||
initial $display(bar(3));
|
||||
function integer bar_2;
|
||||
input integer x;
|
||||
bar_2 = x * x * MULTIPLIER_2;
|
||||
endfunction
|
||||
initial begin
|
||||
$display(bar_1(3));
|
||||
$display(bar_2(3));
|
||||
end
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user