Delete existing .mag file in magic folder and impo...
# analog-design
v
Delete existing .mag file in magic folder and import .spice netlist again in magic. This worked for me.
e
It's still not working. This time, there's no port issue. It's not not able to read the cells.
v
Try deleting everything .mag inside directory and then import .spice in magic.
e
Okay, thank you. I'd try that. You know the GF180.magicrc rcfile that's in the installation directory. Do you think I should copy it into my working directory? Whenever I want to do a layout, I usually navigate to the installation directory where the rcfile is to open magic with the gf180 tech.
v
For sky130, I create a link for
sky130A.magicrc
file before invoking magic for sky130 integration. Try doing same with GF180.
ln -s $PDK_ROOT/$PDK/libs.tech/magic/sky130A.magicrc   .magicrc
e
Thank you. But am I suppose to type this on terminal while starting magic.
v
This link command is one time step to integrate PDK (sky130) with magic. In
open_pdks
setup same should work for GF180 pdk also.
image.png
e
Yes, I was able to link it. Thank you.
But the import is still not successful.
t
@Emmanuel Innocent: What version of magic are you using?
FYI, I just made a couple of changes to the toolkit code (magic new version 8.3.437) to mitigate this problem. The import routine will now recognize cells that do not exist on disk and will regenerate them. It will not preserve the position or any parameters that were not in the netlist, but it will at least prevent the cells from showing up as empty placeholders.
@vks: The update/fix to magic means that next time you shouldn't have to delete the existing .mag file. Note that the SPICE import routine is re-entrant. You can add a device to the netlist and re-import, and the new device will get added to the existing layout without otherwise affecting the layout.
👍 2
e
@Tim Edwards, thank you very much. Please, how do I get this update ?
t
e
@Tim Edwards I've updated my magic version but I still can't import spice successfully.
@Tim Edwards Please here is the error I got when I tried importing spice.
Also, I get this error in the command console whenever I open Magic.
t
@Emmanuel Innocent: Your version of magic is up-to-date, but your version of the GF tech file is not; you have version 1.0.406 (which comes from the open_pdks version number), while the current version of open_pdks is 1.0.469. The version difference definitely accounts for the tech file parsing error on startup. It most likely also accounts for the failure to import SPICE. I suggest updating your PDK version and trying again.
e
Okay. Thank you very much. I'd try that out.
@Tim Edwards thank you very much. I updated my Magic version. Spice import now works well on Magic. Thank you very much.