Fixed run.bat and patches

This commit is contained in:
Aquiles Viza 2023-09-27 17:41:25 -03:00
parent 8861a8ca58
commit 72910a3d5b
2 changed files with 23 additions and 13 deletions

View File

@ -12,9 +12,11 @@ SET CALL=call
IF /I ""%~1""==""-h"" GOTO documentation IF /I ""%~1""==""-h"" GOTO documentation
IF /I ""%~1""==""--dry"" ( SET "CALL=echo" ) IF /I ""%~1""==""--dry"" ( SET "CALL=echo" )
IF /I ""%~1""==""-s"" ( 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""==""--vnc"" ( SET "ENABLE_VNC=" )
IF /I ""%~1""==""--path"" ( SET "DESIGNS=%~2" && SHIFT ) IF /I ""%~1""==""--path"" ( SET "DESIGNS=%~2" && SHIFT )
IF /I ""%~1""==""-p"" ( 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 ) IF /I ""%~1""==""--pdk"" ( SET "PDK=%~2" && SHIFT )
SHIFT SHIFT
GOTO parse GOTO parse
@ -26,10 +28,10 @@ SET CALL=call
echo -h --help Show usage information echo -h --help Show usage information
echo -s --dry See the commands to be executed echo -s --dry See the commands to be executed
echo -p --path PATH Link to a directory 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 If vnc is not working, execute:
echo $ xfce4-session --display=:1 & echo ^$ xfce4-session --display=:1 ^&
echo --pdk PDK Set the PDK to be used (gf180mcuC | sky130A) echo -k --pdk PDK Set the PDK to be used: gf180mcuC ^| sky130A
echo By default: gf180mcuC echo By default: gf180mcuC
GOTO end GOTO end

View File

@ -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 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 # 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 wget -O $KLAYOUT_HOME/drc/$PRECHECK_SKY_FILE $PRECHECK_REPO/$PRECHECK_SKY_FILE
} }
gf180_patch_xschemrc function sky130_patch() {
gf180_patch_klayout_pcells sky130_patch_reduced_models
gf180_patch_klayout_dropdown sky130_patch_klayout_lyt
gf180_patch_klayout_precheck_drc # sky130_patch_klayout_lym # TODO: The file disappears
sky130_patch_reduced_models # sky130_patch_klayout_pcells # TODO: Before fixing lym, this explodes
sky130_patch_klayout_lyt sky130_patch_klayout_precheck_drc
sky130_patch_klayout_lym }
sky130_patch_klayout_pcells
sky130_patch_klayout_precheck_drc
aur-install gedit xterm gvim gf180_patch
sky130_patch
sudo aur-install gedit xterm gvim