How should I do to link a port declaration using SV interface to the actual interface ? #1648
|
Hi there ! In the context of my Language server, I started trying to handle scoped references. module my_mod (
my_itf.mport sif_foo
);
assign sif_foo.bar = 1'b0;
endmoduleMy approach would be to handle the interface port in the same way as I would for a proper instance, that is:
However the What would be the consistent/reliable way to get the Best regards ! |
Replies: 1 comment 1 reply
|
You can get to the instance by looking at what the port connects to outside the module. If there's no connection then there's no instance, which is why SV makes it illegal to have top-level modules with interface ports. |
You can get to the instance by looking at what the port connects to outside the module. If there's no connection then there's no instance, which is why SV makes it illegal to have top-level modules with interface ports.