mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
major interface conversion update
- module instances with modport bindings are now inlined - support for modports in generate loops - support for generic interfaces - implied modport instance propagation - add error message for interface instances missing port list
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
module top;
|
||||
wire x, f_x;
|
||||
wire f_a_x, f_b_x;
|
||||
assign x = 1;
|
||||
assign f_x = x;
|
||||
assign f_a_x = x;
|
||||
assign f_b_x = ~x;
|
||||
|
||||
initial begin
|
||||
$display("bar got %b", f_a_x);
|
||||
$display("bar got %b", f_b_x);
|
||||
end
|
||||
wire x = 1;
|
||||
generate
|
||||
begin : f
|
||||
wire x;
|
||||
begin : a
|
||||
wire x;
|
||||
initial begin
|
||||
$display("bar got %b", x);
|
||||
end
|
||||
end
|
||||
assign a.x = x;
|
||||
begin : b
|
||||
wire x;
|
||||
initial begin
|
||||
$display("bar got %b", x);
|
||||
end
|
||||
end
|
||||
assign b.x = ~x;
|
||||
end
|
||||
assign f.x = x;
|
||||
endgenerate
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user