mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
interface and instance array support
- support for interface instance arrays - support for interface-using module instance arrays - support for modport array bindings - fix modport bindings shadowed in nested instances
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
module top;
|
||||
genvar i;
|
||||
generate
|
||||
|
||||
initial #1;
|
||||
|
||||
`define PRINT(X, offset) \
|
||||
for (i = 4; i <= 8; i = i + 1) \
|
||||
initial begin \
|
||||
$display(`"Module``X got %0d`", i ** 2 + offset); \
|
||||
$display("ModuleN got %0d", i ** 2 + offset); \
|
||||
end
|
||||
|
||||
`PRINT(A, 0)
|
||||
`PRINT(A, 1)
|
||||
`PRINT(A, 2)
|
||||
|
||||
`PRINT(B, 1)
|
||||
`PRINT(B, 1)
|
||||
|
||||
`PRINT(C, 2)
|
||||
`PRINT(C, 2)
|
||||
|
||||
endgenerate
|
||||
endmodule
|
||||
Reference in New Issue
Block a user