Allow yosys to skip libraries if they are expected but not present in the schema.
@@ -19,15 +19,19 @@ set stat_libs ""
foreach item $sc_scenarios {
set libcorner [dict get $sc_cfg mcmm $item libcorner]
foreach lib $sc_targetlibs {
+ if [dict exists dict get $sc_cfg library $lib $sc_delaymodel $libcorner lib] {
set lib_file [dict get $sc_cfg library $lib $sc_delaymodel $libcorner lib]
yosys read_liberty -lib $lib_file
}
+ }
foreach lib $sc_macrolibs {
+ if [dict exists dict get $sc_cfg library $lib $sc_delaymodel $libcorner lib] {
set lib_file [dict get $sc_cfg library $lib $sc_delaymodel $libcorner lib]
yosys read_liberty -lib $lib_file
append stat_libs "-liberty $lib_file "
}
}
+}
########################################################
# Synthesis
