Is there a way to get the code in open_pdks to onl...
# open_pdks
a
Is there a way to get the code in open_pdks to only install Analog library and not to install the digital libraries? All analog related items in the PDK to make the installation faster?
t
Yes. You can do
cd sky130 ; make tools-a ; make primitive-a ; sudo make install
.
a
@Tim Edwards Do I need to do anything in the main folder first?
Hi @Tim Edwards Do I need to run ./configure as well?
t
Yes, run
configure
first, then the above. The point is that there are specific targets in the sky130/Makefile that will just build specific parts of the PDK, like the primitive devices, the I/O, the digital standard cells, etc.
make tools-a
builds out the environment setup for magic that is used by the rest of the builds, so that's mandatory (but takes only a few seconds to run).
a
Thanks @Tim Edwards
One last question, If I need the IOs as well?
t
Then
make io-a
.
a
inside sky130
?
t
Yes.
cd sky130 ; make tools-a ; make primitive-a ; make io-a ; sudo make install
.
a
Thanks @Tim Edwards Appreciate it.
@Tim Edwards I got some errors with make primitive-a
Copy code
# Fix up the PNP model file before running the next modification
head -15 /home/atorkmabrains/mabrains/open_pdks/sky130/sky130A/libs.ref/sky130_fd_pr/spice/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice > /home/atorkmabrains/mabrains/open_pdks/sky130/sky130A/libs.ref/sky130_fd_pr/spice/temp
head: cannot open '/home/atorkmabrains/mabrains/open_pdks/sky130/sky130A/libs.ref/sky130_fd_pr/spice/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice' for reading: No such file or directory
make: *** [Makefile:841: primitive-a] Error 1
@Tim Edwards any ideas?
t
In the log file, is there any indication of an error before this? There was at least one patch file that should have modified the same file that the above error claims is missing.
a
I'll dump the output to a file and send it on gist
one sec
@Tim Edwards would that help.
?
t
All the patches are failing. Not sure why. I'm looking into it.
What were your
configure
options?
a
`./configure --prefix=
readlink -f ..
--enable-sky130-pdk`
t
Ah, if you do it that way, you would need to do
cd sky130 ; make prerequisites ; make tools-a ; make primitive-a ; ...
. But that will have the problem that
make prerequisites
will download the whole skywater-pdk repository, pull all of the libraries, and build them all. What you want to do is to clone the skywater-pdk separately and then just initialize the submodules you need, which is
sky130_fd_pr
for the primitives, and
sky130_fd_io
for the I/O libraries. There should be no need to do a
make timing
in the skywater-pdk repo because that only applies to digital standard cells. Then when you run
configure
for open_pdks, use
--enable-sky130-pdk=<path>
and give it the path to your skywater-pdk installation.
If you already have a clone of skywater-pdk somewhere, then just point to it.
a
Let me try that.