Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Nested interface reference not found due to inline optimization #1250
Author Name: Arjen Roodselaar
Original Assignee: Wilson Snyder (@wsnyder)
When a parent module instantiates an interface (or passes an interface from its parent) to a child module, nested interface references are not found if the child and parent modules do not use the same port name for the interface reference. The following is a somewhat minimal reproduction of the problem:
This results in the following error:
Compilation succeeds if the offending line is commented out, or if all occurrences of "foo" in mod1 are replaced with if2_0. Please advice if this is expected and I am simply trying to do something that is not supported.
Original Redmine Comment
This was a bug in the inliner, thanks for the example.
Fixed in git towards 3.917.
This is illegal syntax. I fixed Verilator to error out on this (it was ignored by mistake.)