diff --git a/Makefile b/Makefile index b85f5336..f13aadca 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ SRAM_LIB_GIT_COMMIT ?= main OPEN_PDKS_DIR ?= $(PDK_ROOT)/open_pdks OPEN_PDKS_GIT_REPO ?= https://github.com/RTimothyEdwards/open_pdks.git OPEN_PDKS_GIT_COMMIT ?= 1.0.156 -SKY130_PDK ?= $(PDK_ROOT)/share/pdk/sky130A +SKY130_PDK ?= $(PDK_ROOT)/sky130A # Create lists of all the files to copy/link GDS_FILES := $(sort $(wildcard $(SRAM_LIB_DIR)/cells/*/*.gds)) @@ -47,10 +47,12 @@ $(OPEN_PDKS_DIR): $(SKY130_PDK): $(OPEN_PDKS_DIR) @echo "Installing open_pdks..." cd $(OPEN_PDKS_DIR) &&\ - ./configure --prefix=$(PDK_ROOT) --enable-sky130-pdk \ - --disable-openlane --disable-irsim --disable-xschem --disable-qflow - @sleep 5 - make -C $(OPEN_PDKS_DIR) install + ./configure --enable-sky130-pdk=$(PDK_ROOT)/skywater-pdk/libraries \ + --disable-openlane --disable-irsim --disable-xschem --disable-qflow &&\ + cd sky130 && \ + make veryclean && \ + make && \ + make SHARED_PDKS_PATH=$(PDK_ROOT) install install: $(SRAM_LIB_DIR) $(SKY130_PDK) $(INSTALL_DIRS) @echo "Installing sky130 SRAM PDK..." @@ -171,7 +173,7 @@ uninstall: clean wipe: uninstall @echo "Wiping PDK repos in 5 sec... (ctrl-c to quit)" @sleep 5 - @rm -rf $(SKY130_PDK) - @rm -rf $(SRAM_LIB_DIR) - @rm -rf $(OPEN_PDKS_DIR) + rm -rf $(SKY130_PDK) + rm -rf $(SRAM_LIB_DIR) + rm -rf $(OPEN_PDKS_DIR) .PHONY: wipe diff --git a/technology/sky130/__init__.py b/technology/sky130/__init__.py index c17c62d8..3df3f555 100644 --- a/technology/sky130/__init__.py +++ b/technology/sky130/__init__.py @@ -21,7 +21,7 @@ os.environ["MGC_TMPDIR"] = "/tmp" # OpenPDK needed for magicrc, tech file and spice models of transistors if 'PDK_ROOT' in os.environ: - open_pdks = os.path.join(os.environ['PDK_ROOT'], 'share', 'pdk', 'sky130A', 'libs.tech') + open_pdks = os.path.join(os.environ['PDK_ROOT'], 'sky130A', 'libs.tech') else: raise SystemError("Unable to find open_pdks tech file. Set PDK_ROOT.")