Nawras Ahamed
02/27/2025, 5:34 PMTim Edwards
02/27/2025, 6:10 PM# Set default PDK_ROOT
if { ![info exists env(PDK_ROOT)] } {
puts stderr "Warning: PDK_ROOT env. var. not found or empty, trying to find an open_pdks install"
if {[file isdir /usr/share/pdk]} {set ::env(PDK_ROOT) /usr/share/pdk
} elseif {[file isdir /usr/local/share/pdk]} {set ::env(PDK_ROOT) /usr/local/share/pdk
} elseif {[file isdir $env(HOME)/share/pdk]} {set ::env(PDK_ROOT) $env(HOME)/share/pdk
} elseif {[file isdir $env(HOME)/.volare]} {set ::env(PDK_ROOT) $env(HOME)/.volare
} else {
puts stderr {No open_pdks installation found, set PDK_ROOT env. var. and restart xschem}
}
}
# Set default PDK
if { ![info exists env(PDK)] } {
set ::env(PDK) sky130A
}
# Source the PDK xschemrc file
if {![info exists PDK]} {
source $env(PDK_ROOT)/$env(PDK)/libs.tech/xschem/xschemrc
}
# Add current directory to xschem library path
append XSCHEM_LIBRARY_PATH :[file dirname [info script]]
# Source the dependencies xschemrc files
foreach rcfile [glob -nocomplain [file dirname [info script]]/../ip/*/xschem/xschemrc] {
puts "sourcing $rcfile"
source $rcfile
}
This script is taken from https://github.com/efabless/sky130_ef_ip__adc3v_8bit and was developed by Leo Moser. The main thing you need from it is the line that sources the PDK xschemrc file and then adds the current directory to the search path.Leo Moser
02/27/2025, 6:27 PMToni Tejada
03/06/2025, 11:52 AManalog_tool_installer.sh
? I've been looking for it but with no success.Tim Edwards
03/06/2025, 2:50 PMToni Tejada
03/06/2025, 3:06 PM