<@U040UQCCDPZ> I am working through your most rece...
# analog-design
a
@carsten I am working through your most recent tutorial for your course. I have everything working fine locally but, the git hub actions fail for gds and lvs Anyone have any ideas what is happening here. I am new to using GitHub Actions so I am sure I am doing something stupid but, I can't see the error. gds log: Run cd work :note: Found Layout ../design/JNW_EX_SKY130A/JNW_EX.mag Run export PDK_ROOT=/opt/pdk/share/pdk test -d gds || mkdir gds echo "load ../design/JNW_EX_SKY130A/JNW_EX.mag\ncalma write gds/JNW_EX.gds \nquit" > gds/JNW_EX.tcl magic -noconsole -dnull gds/JNW_EX.tcl > gds/JNW_EX.log 2>&1 total 8 -rw-r--r-- 1 root root 0 Oct 26 21:34 JNW_EX.gds -rw-r--r-- 1 root root 1037 Oct 26 21:34 JNW_EX.log -rw-r--r-- 1 root root 74 Oct 26 21:34 JNW_EX.tcl Error: Process completed with exit code 1. lvs log: magic -noconsole -dnull lvs/JNW_EX_spi.tcl > lvs/JNW_EX_spi.log 2>&1 netgen -batch lvs "lvs/JNW_EX.spi JNW_EX" "cdl/JNW_EX.spice JNW_EX" /opt/pdk/share/pdk/sky130A/libs.tech/netgen/sky130A_setup.tcl lvs/JNW_EX_lvs.log > lvs/JNW_EX_netgen_lvs.log Error in SPICE file read: No file lvs/JNW_EX.spi cat lvs/JNW_EX_lvs.log | ../tech/script/checklvs JNW_EX cat: lvs/JNW_EX_lvs.log: No such file or directory ################################## # _ _ # # x x # # INCORRECT | # # _ # # # ################################## Warning: Circuits do not match Warning: Check log for details make: * [../tech/make/core.make173 xlvs] Error 1 Error: Process completed with exit code 2. https://github.com/asheldon44/jnw_ex_sky130a
t
Running the example manually, the problem is that the layout
JNW_EX.mag
instantiates a cell called
JNWATR_NCH_4C5F0
which is not in the repository.
a
There should be that cell in design/JNW_ATR_SKY130A which gets pulled from Carsten's git at the beginning of the workflow. But, thanks for the lead. I think there must be something with how/where that is downloaded.
@Tim Edwards I figured it out based on your lead. The reference to this cell in the mag file was absolute instead of relative so it could find it only on my local machine. Anyway to make magic use relative paths by default?
t
There are various ways. If the cell was loaded originally with a relative path then it would have ended up with a relative path in the .mag file. If you need to change it from absolute to relative, then you can set up the search path with the
addpath
command and use
load ... -dereference
(this will affect all cells in the design). From inside an already-loaded layout, you can change a single cell's path with
cellname filepath ...
followed by
flush
.
a
Thanks Tim! I manually modified in a text editor for this layout. So I will add this library to my magicrc file with a relative path and then future designs should automatically be relative.
c
Great that you figured it out, yup, it's the cell references. I should probably have added the log dumps to the action if it fails. I usually end up fixing the references manually in a text editor ref https://github.com/wulffern/jnw_ex_sky130a/blob/main/design/JNW_EX_SKY130A/JNW_EX.mag
@Alex Sheldon I've also added https://github.com/wulffern/aic2025/issues/3 Feel free to add more issues if you encounter more problems.
a
Thank you Carsten! I appreciate all the work you have done on this! So far that was the only issue with the tutorial. Now to design my own thing. I did have other issues with jpeg missing while installing Xschem. But, I got those solved and they are likely more to do with my set up. Do you use an Intel Mac or a apple silicon one?
👍 1
c
I have a 5 year old Intel MacBook Pro