Gate vector expansion suddenly not working #1120
Replies: 1 comment 2 replies
-
In a compound module the same gates (including vector gates) are visible both from the inside and the outside of the module. As the network is built from top-down the size of a vector gate is determined by the outside world (i.e. how many connections you add to a vector). Once that is determined, inside the module, you should take care that all of the gates in the vector are connected also inside. The Here the code clearly uses the ++ syntax inside a module to set the gate sizes and this can cause inconsistencies with the outside world (which was already set up because of the top-down setup). Long story short, if you see something like |
Beta Was this translation helpful? Give feedback.
-
Hi all,
This is kind of a multi-part question. Again, I have inherited a project and am working to dockerize it. It turns out that there are some version differences between the codebase as I have found it and the versions of inet/omnet distributed in the official Docker images (for example, the codebase originally reference
EtherLink
s as opposed to the more recentEthernetLink
). As such, I am porting the code. The error I'm stuck on is this:Now, this makes sense. The gate S is part of an unsized array in a top-level module, which documentation says shouldn't work. However, I know for a fact that this code works under some environment because I have run in it on a remote server. What I would like to figure out is why this code ever ran in the first place and what the best approach is for patching it. The relevant excerpt is:
Where
rack.g
is defined asand the other gates are
Beta Was this translation helpful? Give feedback.
All reactions