Skip to content

How to route input of $assert cell to newly created port #3701

Answered by jix
Topi-ab asked this question in Q&A
Discussion options

You must be logged in to vote

The expose -evert command can in fact do that, and I think the following yosys script using it might do what you're asking for:

# Flatten the hierarchy, so we don't need to route new signals through multiple
# hierarchy levels
flatten

# Ensure that the formal cells have a public name, required for the expose command
rename -enumerate -pattern unnamed_assert_% t:$assert
rename -enumerate -pattern unnamed_assume_% t:$assume
rename -enumerate -pattern unnamed_cover_% t:$cover
# ... and $fair, $live if required

# Turn inputs to formal cells into output ports of the containing module
expose -evert t:$assert t:$assume t:$cover

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Topi-ab
Comment options

Answer selected by jix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants