i also need a facility for overriding top-level verilog module parameters when invoking the flow. i’ve added this to
scripts/synth_top.tcl
; i didn’t see an existing solution. is there a better way?
Copy code
if { [info exists ::env(SYNTH_PARAMETERS) ] } {
foreach define $::env(SYNTH_PARAMETERS) {
set param_and_value [split $define "="]
lassign $param_and_value param value
chparam -set $param $value $vtop
}
}
aryap
05/14/2022, 8:57 PM
though i should probably have added it to
synth.tcl
m
Matt Liberty
05/14/2022, 10:10 PM
I don't see one in OL either. In ORFS we just use a dict:
if {[info exist ::env(VERILOG_TOP_PARAMS)]} {
dict for {key value} $::env(VERILOG_TOP_PARAMS) {
chparam -set $key $value $::env(DESIGN_NAME)
}
}
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.