https://open-source-silicon.dev logo
#magic
Title
# magic
p

Philipp Gühring

04/12/2023, 10:00 PM
@Tim Edwards I have an issue with the drc engine of magic, at least since version Magic 8.3 revision 368: When I run it with "magic -dnull -rcfile magic-commands.tcl -noconsole -T $tech " it works. But when I run it with "cat magic-commands.tcl |magic -dnull -noconsole -T $tech" the DRC engine does not find any DRC errors. The commands I am doing: select top cell drc on drc check drc catchup drc listall catchup drc count total
m

Mitch Bailey

04/13/2023, 2:23 AM
@Philipp Gühring This may not be much help, but in the second version, you are not specifying an rcfile, so I’m guessing magic tries to read a default magicrc file. Does
Copy code
cat magic-commands.tcl | magic -dnull -noconsole -norcfile -T $tech"
give the same results? There might be a (slightly) helpful message if you compare the output logs. In your first (working) version, do you have to manually exit magic after DRC finishes?
🌍 1
p

Philipp Gühring

04/13/2023, 7:07 PM
The -norcfile does not help.
🙁 1
t

Tim Edwards

04/14/2023, 3:29 PM
Did you try adding a semicolon and backslash to each line, making it effectively a one-line command?
Copy code
drc on ;\
drc check ;\
drc catchup ;\
drc listall catchup ;\
drc count total
p

Philipp Gühring

04/14/2023, 3:37 PM
Just tried that, semicolons don't help, and even having it all just in one line doesn't help