image.png
# magic
t
image.png
It looks like it is only happy when everything is in the same folder does that sound right?
j
It seems you are trying to load a cell with the exact same name as a previously loaded cell (see the third line above your command, next to the last name in that line)
t
the issue seems to be to do with the fact that if the cell isn't in the same folder then magic generates a full path for it, then when you try and get the cell again (same cell but using the relative path again) magic seems to think it's a different cell with the same name because one has the absolute path and the other has a relative path
t
@Tom: There may be several issues/misconceptions going on here. Magic assumes that your own design and design files are in your current working directory and descendants thereof; files from PDK libraries are assumed to be in an absolute path, although they can be made portable by setting the Tcl variable PDKPATH (if you run magic with the -magicrc argument, this is done automatically). Generally, when creating a design, you want to use "addpath" to create the search path for cells in the right order (again, with -magicrc this is done automatically). After that, adding a cell is just a matter of doing "getcell <name>" with the name of the cell, not the name of the file. If you want to get a cell from a place that has not been added to the set of search paths, then you can use "getcell" with the full path for the file; then the cell is associated with that path. Once the cell is associated with the path, you should not do "getcell" with another path name for the same cell---that's an error, since the same cell cannot exist in two places at the same time.
The immediate solution to your problem is that since you are using "getcell" with a cell that you already used at least once, you should just do "getcell <name>", or in your case "getcell dac_cscelltpmos".