Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust paths for klayout restructuring #458

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions sky130/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -1221,23 +1221,30 @@ klayout-%: ${KLAYOUT_PATH}
rm -rf ${KLAYOUT_STAGING_$*} ; \
mkdir -p ${KLAYOUT_STAGING_$*} ; \
mkdir -p ${KLAYOUT_STAGING_$*}/tech ; \
mkdir -p ${KLAYOUT_STAGING_$*}/tech/xsect ; \
mkdir -p ${KLAYOUT_STAGING_$*}/d25 ; \
mkdir -p ${KLAYOUT_STAGING_$*}/drc ; \
mkdir -p ${KLAYOUT_STAGING_$*}/lvs ; \
mkdir -p ${KLAYOUT_STAGING_$*}/scripts ; \
mkdir -p ${KLAYOUT_STAGING_$*}/macros ; \
mkdir -p ${KLAYOUT_STAGING_$*}/pymacros ; \
mkdir -p ${KLAYOUT_STAGING_$*}/python ; \
fi
# Copy lvs and pymacro directories from the repository. Other files
# are rearranged to the preferred structure. Do not recursively copy
# the lvs/ directory, as the subdirectory testing/ is huge and
# nonessential.
# Additionally, replace "sky130.lyp" with the pdk variant.
if test "x${KLAYOUT_PATH}" != "x" ; then \
cp -p ${KLAYOUT_PATH}/sky130_tech/tech/sky130/lvs/* ${KLAYOUT_STAGING_$*}/lvs/ ; \
cp -rp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/pymacros/* ${KLAYOUT_STAGING_$*}/pymacros/ ; \
cp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/${TECH}.lyp ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyp ; \
cp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/${TECH}.lyt ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyt ; \
cp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/${TECH}.map ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.map ; \
cp ${KLAYOUT_PATH}/tech/sky130/${TECH}.lyp ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyp ; \
cp ${KLAYOUT_PATH}/tech/sky130/${TECH}.lyt ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyt ; \
cp ${KLAYOUT_PATH}/tech/sky130/${TECH}.map ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.map ; \
${SED} -i "s/sky130.lyp/${SKY130$*}.lyp/g" ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyt ; \
cp -p ${KLAYOUT_PATH}/tech/sky130/d25/* ${KLAYOUT_STAGING_$*}/d25/ ; \
cp -p ${KLAYOUT_PATH}/tech/sky130/lvs/* ${KLAYOUT_STAGING_$*}/lvs/ ; \
cp -p ${KLAYOUT_PATH}/tech/sky130/macros/* ${KLAYOUT_STAGING_$*}/macros/ ; \
cp -p ${KLAYOUT_PATH}/tech/sky130/pymacros/* ${KLAYOUT_STAGING_$*}/pymacros/ ; \
cp -rp ${KLAYOUT_PATH}/tech/sky130/python/* ${KLAYOUT_STAGING_$*}/python/ ; \
cp -p ${KLAYOUT_PATH}/tech/sky130/xsect/* ${KLAYOUT_STAGING_$*}/tech/xsect/ ; \
fi
# Copy original DRC deck from open_pdks (is this useful?)
cp klayout/sky130.lydrc ${KLAYOUT_STAGING_$*}/drc/${SKY130$*}.lydrc
Expand Down
2 changes: 1 addition & 1 deletion sky130/sky130.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"sky130_fd_pr_reram": "d6d2a3c6960aac0a0b12fc21221c31777bbf284d",
"sky130_ml_xx_hd": "6eb3b0718552b034f1bf1870285ff135e3fb2dcb",
"xschem_sky130": "0597d6cd26ad460d3f4d689f9e6a11f33dc262ff",
"klayout_sky130": "44068ad98afa18001487177515cac16f3e61094a",
"klayout_sky130": "68b8aa87c129191f642da662d348e9ca6930581b",
"precheck_sky130": "a1a22717e5618f8df329e0c714b43c08fd003543"
}
}
Loading