https://open-source-silicon.dev logo
#openlane
Title
# openlane
w

Wajeh ul hasan

10/24/2020, 11:47 AM
Hello, Is there a way I can incorporate a hand written script into the flow. For example I want it to read my script during synthesis for yosys rather than the originally defined script. Just like we have the option to configure where if we define a variable in our
config.tcl
script and it is given the priority. Is the same thing possible with the flow scripts.
a

aryap

10/24/2020, 7:16 PM
you can modify scripts/tcl_commands/synthesis.tcl maybe?
w

Wajeh ul hasan

10/25/2020, 1:56 PM
I was wondering if they already included such option. for example
synthesis.tcl
reads
scripts/synth.tcl
for runing YOSYS. I was thinking along the lines that if I place a file with
synth_top_priority.tcl
in the
scripts
directory, the flow reads the top priority script.
I know I can modify the script and make such priorities but I want to avoid making changes to the original flow as much as ppossible.
a

Amr Gouhar

10/27/2020, 7:52 PM
@Wajeh ul hasan: you're probably looking for $::env(SYNTH_SCRIPT)
w

Wajeh ul hasan

10/29/2020, 11:53 AM
@Amr Gouhar Yes exactly. Thanks