Skip to content

parsing IOs of a module from Python #740

Answered by MikePopoloski
muzafferkal asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@muzafferkal
Comment options

@MikePopoloski
Comment options

@apsarras
Comment options

@suzizecat
Comment options

Answer selected by MikePopoloski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants