Files

19 lines
819 B
Plaintext
Raw Permalink Normal View History

2022-10-25 14:36:05 -07:00
# Check if the openram package is installed. If so, append that path to $OPENRAM_TECH.
# If $OPENRAM_TECH isn't defined and the package is installed, use the package directory.
set openramhome [exec echo -e "import os\ntry:\n import openram\n print(os.path.dirname(openram.__file__))\nexcept:\n print(\"notinstalled\")" | python3 -]
set openramtech "${openramhome}/technology/scn4m_subm/tech"
if { [info exists ::env(OPENRAM_TECH)] && ($openramhome != "notinstalled") } {
set ::env(OPENRAM_TECH) $env(OPENRAM_TECH):$openramtech
} elseif { $openramhome != "notinstalled" } {
set ::env(OPENRAM_TECH) $openramtech
}
2019-10-24 13:17:33 -07:00
set openram_paths [split $::env(OPENRAM_TECH) ":"]
foreach p $openram_paths {
path sys +$p/scn4m_subm/tech
}
2018-09-13 12:53:35 -07:00
tech load SCN4M_SUBM.20 -noprompt
scalegrid 1 4
set GND gnd
set VDD vdd
set SUB gnd