parsing IOs of a module from Python #740
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, slang can be used for this. The AST provides full type information for the whole design, so you can walk the modules and collect all ports and their internal connections. Whether something is a clock or a reset or whatever isn't identified directly by the language so it'll be up to your particular set of heuristics or project conventions to find them though. |
Beta Was this translation helpful? Give feedback.
Yes, slang can be used for this. The AST provides full type information for the whole design, so you can walk the modules and collect all ports and their internal connections. Whether something is a clock or a reset or whatever isn't identified directly by the language so it'll be up to your particular set of heuristics or project conventions to find them though.