I'd like to make my Yosys scripts more DRY by factoring out common parameters, such as in the following example:
read_liberty -lib /long/path/to/lib/file
...
dfflibmap -liberty /long/path/to/lib/file
...
abc -liberty /long/path/to/lib/file
I haven't found a way to declare or de-reference variables, is there any way like in TCL (set lib_file /long/path/to/lib/file
) or Bash (export lib_file=/long/path/to/lib/file
)?