mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-07 03:43:04 +02:00
expanded support for interfaces with parameters
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
module M(data);
|
||||
parameter A = 1;
|
||||
parameter WIDTH = 32;
|
||||
parameter B = 2;
|
||||
input wire [WIDTH-1:0] data;
|
||||
initial begin
|
||||
$display("A %b", A);
|
||||
$display("I.P %b", data);
|
||||
$display("B %b", B);
|
||||
end
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
wire [31:0] x_data = 0;
|
||||
wire [9:0] y_data = 0;
|
||||
M #(.WIDTH(32)) a(x_data);
|
||||
M #(.WIDTH(10)) b(y_data);
|
||||
M #(3, 32, 4) c(x_data);
|
||||
M #(5, 10, 6) d(y_data);
|
||||
endmodule
|
||||
Reference in New Issue
Block a user