Hi <@U016EM8L91B> I seem to be experiencing a stra...
# magic
e
Hi @Tim Edwards I seem to be experiencing a strange bug with Magic (8.3 revision 404). When I open my top level .mag file, more often than not, I am getting errors from magic when it tries to load cell instances. The design has about 20 cells instanced and its always random which ones, and how many, will throw up the error message. Deleting and replacing the cell is the only thing that works. It looks like Magic is doing something odd, and naming/saving the Instances with a '#' in the path for their file names - which its then unable to read when it tries to load them later? None of the actual .mag files have any such characters or spaces in them
m
@Ellen Wood The
#0
suffix is added to cell names when magic detects a cell in what it thinks is a different location than the one it has in memory. You can open your
.mag
files in a text editor and check the first
use
statement for each cell. Normally, these should not contain absolute path names. Loading a cell with the
-dereference
option, may also fix the problem. This ignores the locations specified in the
.mag
file and instead searches the
search path
.
e
Right, thank you for that information, I've had at look at the .mag file and its a complete mess. Some with absolute paths are working fine; some without aren't working and have the
#0
suffix. Should I delete all absolute paths and delete the
#0
on all the instances?
image.png
I'm not even sure why some have absolute paths and others dont, all the transistors live in the same directory
t
Yes, I would suggest editing the names so that the absolute paths are removed and replaced with the relative paths that are the same as the other working entries, and removing any
#
suffixes that got into the output. I'm not sure how they got that way, but it appears to have to do with referencing a
/root/
directory that might be caused by running in Docker (?). It works best if all design files (as opposed to PDK files) are in your own home path somewhere. Preferably be in the topmost directory with the design files when you launch magic.
e
Okay great, I will do that then. At least there was an easy explanation for this issue! Thank you both.