When I am running Magic with following command I g...
# magic
a
When I am running Magic with following command I get following error:
Magic 8.3 revision 227 - Compiled on Կրկ 14 Նմբ 2021 04:12:41  +04.
Starting magic under Tcl interpreter
Using Tk console window
Using TrueColor, VisualID 0x23 depth 24
Repainting console in magic layout window colors
Processing system .magicrc file
Sourcing design .magicrc for technology sky130A ...
2 Magic internal units = 1 Lambda
Input style sky130(vendor): scaleFactor=2, multiplier=2
Scaled tech values by 2 / 1 to match internal grid scaling
Error parsing "/opt/pdk_root/sky130A/libs.tech/magic/sky130A.magicrc": can't read "Opts(scale)": no such element in array
Bad local startup file "/opt/pdk_root/sky130A/libs.tech/magic/sky130A.magicrc", continuing without.
Loading "../scripts/magic_drc.tcl" from command line.
Sourcing design .magicrc for technology sky130A ...
Input style sky130(vendor): scaleFactor=2, multiplier=2
Scaled tech values by 2 / 1 to match internal grid scaling
Error parsing "../scripts/magic_drc.tcl": can't read "Opts(scale)": no such element in array
Using technology "sky130A", version 1.0.203-0-g13e0611
Main console display active (Tcl8.6.11 / Tk8.6.11)
%
Command: magic -rcfile /opt/pdk_root/sky130A/libs.tech/magic/sky130A.magicrc ../scripts/magic_drc.tcl magic_drc.tcl is empty. The error does not happen if I don't specify the magic_drc.tcl, however if I source it after running the command without the .tcl then sourcing it works fine
t
Weird. I'm looking into it. . .
a
Found workaround: -dnull -noconsole makes it work properly!
(Though I still have to source magic::drc_save_report for it to work, but if I am not running it inside the script (by sourcing it) it works fine
t
Good, but somehow specifying the 2nd script is causing the wrapper code not to run, which is why -noconsole -dnull works. But I have not yet figured out why. I can't see why it's faulting on "Opts(scale)", either, because I can't find any reference to "Opts(scale)" in the sky130A startup files. Anyway, I have a vague idea where the error must be located.
a
The Opts(scale) is used in the magic .tcl files, not in .rcfile
I would bet, that if I specify empty rcfile, it will faile with the same error, becuase in magic's own source code Opts(scale) is not set anywhere