support converting interfaces with parameters

This commit is contained in:
Zachary Snow
2019-10-20 15:58:37 -04:00
parent 5843ef3879
commit 06411d70f1
4 changed files with 49 additions and 20 deletions
+12 -3
View File
@@ -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