I am trying to set up a make system that has magic...
# magic
w
I am trying to set up a make system that has magic generate some layouts from commands in a tcl file but am having some issues. If I launch magic and then run the file with
Copy code
source pmos_waffle_8_gen.tcl
it runs fine. But if I try to launch magic with
Copy code
magic -T sky130A pmos_waffle_8_gen.tcl
I get some errors. Can anyone advise me on how to get this working?
Copy code
Processing system .magicrc file
Loading "pmos_waffle_8_gen.tcl" from command line.
Root cell box:
           width x height  (   llx,  lly  ), (   urx,  ury  )

microns:   0.000 x 0.000   ( 0.000,  0.000), ( 0.000,  0.000)
lambda:        0 x 0       (     0,  0    ), (     0,  0    )
File temp.mag couldn't be read
No such file or directory
Creating new cell
Error parsing "pmos_waffle_8_gen.tcl": invalid command name "..titlebar.caption"
Using technology "sky130A", version 1.0.310-0-gd7faec2
Main console display active (Tcl8.6.10 / Tk8.6.10)
%
๐Ÿ‘€ 1
t
References to "titlebar.caption" refer to the window, and it may have something to do with the script being read before the window is generated. You can try several different things. . . One would be to run
magic -dnull -noconsole
to make sure it doesn't expect a window. I assume you are running this in "batch mode", as otherwise you could just do what you did originally, typing the
source
command at the command prompt. There are other possibilities that I can tell you about if the solution above doesn't match your use case.
๐Ÿ‘ 2
j
@aquiles viza @Kevin Pizarro check this out
w
Sweet, thanks!
Copy code
magic -T sky130A -dnull pmos_waffle_8_gen.tcl
worked. My generation is only parameterized in terms of the grid size (not pitch) but I am hoping to split out the waffle fet generation from my project and nicely package it up. Two of the layouts are even tested via tapeout, so it should be pretty useful
๐Ÿ™‚ 1