Hello everyone, I'm trying to simulate an inverter...
# sky130
n
Hello everyone, I'm trying to simulate an inverter I drew in Magic, but when I try to run its spice file (after being extracted) I get an error saying that a file called
corners/tt.spice
wasn't found. I suppose I should not import the file
libs.tech/ngspice/sky130.lib.spice
but then, could anyone guide me which is the file I should add to work with the transistors I drew
sky130_fd_pr__nfet_01v8
? Thanks in advance Note: I installed my tools using open_pdks and my installation root is a folder in my home called
cad
. What I understand of this error is that the file
sky130.lib.spice
is calling another file called
corners/tt.spice
but that file isn't located in that same folder where the first is.
t
So is there a folder named
/home/nelson/cad/share/pdk/sky130A/libs.tech/ngspice/corners/
? I'm suspicious that the open_pdks installation is somehow incomplete.
n
Hi Tim, nothing, only these files
t
Do you have the install log from building open_pdks? Also, if you didn't do
make clean
in open_pdks, is the folder in the staging directory, which would be in the open_pdks source in the directory
sky130/sky130A/libs.tech/ngspice/corners/
? That is, did the error occur during
make
or during
make install
?
n
Hi Tim. I was looking for, but I didn't have it. I'll repeat the installation, but to be sure, to generate that file I need to do this right?:`make install >file.txt 2>&1`
Ok Tim, I solved it. I cloned again the PDK and initialize only I/O, primitives, hd and hvl libraries. Then I cloned
open_pdks
and install doing
Copy code
./configure --enable-sky130-pdk=~/gits/skywater-pdk --prefix=/home/nelson/cad 
make > log_make.txt 2>&1
make install > log_make_install.txt 2>&1
make clean
Then I checked the folder and
corners
folder appeared, so, good (fig 1). I have some doubts about Step 5. (fig 2) apparently log files exists by default once I launch
make
and
make install
, and doing a redirection is not necessary (as I did). Tim, could you indicate me, where are those files? And one more question, in the future, if I want to update my repository, I only need to enter within
open_pdks
folder and run
make update
. To allow this, did I have to specify the installation to make symbolic links back to the repository sources (as it's said in step 5)?
t
make update
will update the source repositories; you would then need to rebuild the PDK with
make
and
make install
. The log files are in open_pdks under
sky130/sky130A_make.log
and
sky130/sky130A_install.log
(with two similar files for
sky130B
). I generally don't make symbolic links back to the repository sources; there are not many sources that aren't changed in some way, although the .lib files alone might save a lot of space that way. I just dealt with the problem by getting a whopping large disk so I don't have to worry about having multiple copies of the PDK lying around. : )