Skip to content

Commit

Permalink
fix synthesis chparam issue (The-OpenROAD-Project#1981)
Browse files Browse the repository at this point in the history
~ rename top level module to retain the name after synth params applied
  • Loading branch information
kareefardi authored Sep 10, 2023
1 parent 0e8827e commit 7e5a2e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/yosys/elaborate.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ show -format dot -prefix $::env(synthesis_tmpfiles)/hierarchy
select -clear

hierarchy -check -top $vtop
yosys rename -top $vtop
if { $::env(SYNTH_FLAT_TOP) } {
flatten
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/yosys/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,13 @@ if { [info exists ::env(SYNTH_PARAMETERS) ] } {
}
}


select -module $vtop
show -format dot -prefix $::env(synthesis_tmpfiles)/hierarchy
select -clear

hierarchy -check -top $vtop
yosys rename -top $vtop

# Infer tri-state buffers.
set tbuf_map false
Expand Down

0 comments on commit 7e5a2e9

Please sign in to comment.