diff --git a/run.bat b/run.bat index 732c3d3..db1b222 100644 --- a/run.bat +++ b/run.bat @@ -12,9 +12,11 @@ SET CALL=call IF /I ""%~1""==""-h"" GOTO documentation IF /I ""%~1""==""--dry"" ( SET "CALL=echo" ) IF /I ""%~1""==""-s"" ( SET "CALL=echo" ) + IF /I ""%~1""==""-v"" ( SET "ENABLE_VNC=" ) IF /I ""%~1""==""--vnc"" ( SET "ENABLE_VNC=" ) IF /I ""%~1""==""--path"" ( SET "DESIGNS=%~2" && SHIFT ) IF /I ""%~1""==""-p"" ( SET "DESIGNS=%~2" && SHIFT ) + IF /I ""%~1""==""-k"" ( SET "PDK=%~2" && SHIFT ) IF /I ""%~1""==""--pdk"" ( SET "PDK=%~2" && SHIFT ) SHIFT GOTO parse @@ -26,10 +28,10 @@ SET CALL=call echo -h --help Show usage information echo -s --dry See the commands to be executed echo -p --path PATH Link to a directory - echo --vnc Enable the vnc in port "https:\\localhost:8444" + echo -v --vnc Enable the vnc in port "https:\\localhost:8444" echo If vnc is not working, execute: - echo $ xfce4-session --display=:1 & - echo --pdk PDK Set the PDK to be used (gf180mcuC | sky130A) + echo ^$ xfce4-session --display=:1 ^& + echo -k --pdk PDK Set the PDK to be used: gf180mcuC ^| sky130A echo By default: gf180mcuC GOTO end diff --git a/stacks/analog-tools/scripts/patch-open-pdks.sh b/stacks/analog-tools/scripts/patch-open-pdks.sh index a06d0da..f1c7311 100644 --- a/stacks/analog-tools/scripts/patch-open-pdks.sh +++ b/stacks/analog-tools/scripts/patch-open-pdks.sh @@ -68,6 +68,13 @@ function gf180_patch_klayout_precheck_drc() { wget -O $KLAYOUT_HOME/drc/rule_decks/$PRECHECK_GF_FILE $PRECHECK_REPO/$PRECHECK_GF_FILE } +function gf180_patch() { + gf180_patch_xschemrc + gf180_patch_klayout_pcells + gf180_patch_klayout_dropdown + gf180_patch_klayout_precheck_drc +} + #################### # PATCH SKY130 PDK #################### @@ -118,14 +125,15 @@ function sky130_patch_klayout_precheck_drc() { wget -O $KLAYOUT_HOME/drc/$PRECHECK_SKY_FILE $PRECHECK_REPO/$PRECHECK_SKY_FILE } -gf180_patch_xschemrc -gf180_patch_klayout_pcells -gf180_patch_klayout_dropdown -gf180_patch_klayout_precheck_drc -sky130_patch_reduced_models -sky130_patch_klayout_lyt -sky130_patch_klayout_lym -sky130_patch_klayout_pcells -sky130_patch_klayout_precheck_drc +function sky130_patch() { + sky130_patch_reduced_models + sky130_patch_klayout_lyt + # sky130_patch_klayout_lym # TODO: The file disappears + # sky130_patch_klayout_pcells # TODO: Before fixing lym, this explodes + sky130_patch_klayout_precheck_drc +} -aur-install gedit xterm gvim \ No newline at end of file +gf180_patch +sky130_patch + +sudo aur-install gedit xterm gvim \ No newline at end of file