You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: ports mentioned in verilog file are taken as declaration. #135
In ast output this is what i get:
Description
ModuleDef (name: module_name)
Paramlist
Portlist
Port (name: in1)
Port (name: in2)
Port (name: out1)
Decl
Input (name: in1)
Decl
Input (name: in2)
Decl
Output (name: out1)
Now, I am working on some project in which i need to extract the port name and its direction. I have used the portlist class to find its direction (input or output or inout). So FIRST method works fine for me. But in SECOND case, i get the port names but not the direction. Direction is mentioned in the Decl class not in the Portlist class. So, my code is breaking. I have done a workaround in my project but i strongly feel that information about ports should be in Portlist class instead of Decl class. That's why i am opening this issue. If there is something that i am understanding wrong then please let me know.
Activity