@@ -52,17 +52,19 @@ link_cmos5l_klayout_dependencies() {
5252 ln -s " sg13g2/ihp-sg13g2" " $upstream_layout "
5353}
5454
55- link_missing_public_gds () {
56- [[ ! -d " $public_pdk /gds " || ! -d " $technology " ]] && return 0
55+ link_missing_public_collateral () {
56+ [[ ! -d " $public_pdk " || ! -d " $technology " ]] && return 0
5757 [[ " $( realpath -m " $technology " ) " == " $( realpath -m " $public_pdk " ) " ]] && return 0
5858
59- mkdir -p " $technology /gds"
60- for public_gds in " $public_pdk " /gds/* .gds; do
61- [[ -f " $public_gds " ]] || continue
59+ for collateral_dir in lib lef verilog gds; do
60+ mkdir -p " $technology /$collateral_dir "
61+ for public_file in " $public_pdk " /" $collateral_dir " /* ; do
62+ [[ -f " $public_file " ]] || continue
6263
63- gds_name=" $( basename " $public_gds " ) "
64- [[ -e " $technology /gds/$gds_name " || -L " $technology /gds/$gds_name " ]] && continue
65- ln -s " ../../ihp13/pdk/gds/$gds_name " " $technology /gds/$gds_name "
64+ file_name=" $( basename " $public_file " ) "
65+ [[ -e " $technology /$collateral_dir /$file_name " || -L " $technology /$collateral_dir /$file_name " ]] && continue
66+ ln -s " ../../ihp13/pdk/$collateral_dir /$file_name " " $technology /$collateral_dir /$file_name "
67+ done
6668 done
6769}
6870
@@ -105,7 +107,7 @@ if [[ ! -f "$public_pdk/verilog/sg13g2_stdcell.v" ]]; then
105107fi
106108
107109if [[ -e " $technology " ]]; then
108- link_missing_public_gds
110+ link_missing_public_collateral
109111 log " [INFO] Active technology view: $technology "
110112 if [[ " $( realpath -m " $technology " ) " == " $( realpath -m " $public_pdk " ) " ]]; then
111113 log " [INFO] Source: public mirror ihp13/pdk"
0 commit comments