Jeff DiCorpo | bd9a62c | 2022-12-12 23:47:08 -0800 | [diff] [blame] | 1 | puts stdout "Sourcing design .magicrc for technology gf180mcuC ..." |
| 2 | |
| 3 | # Put internal grid on 0.005 pitch. This is important to match vendor file |
| 4 | # input (as opposed to SCMOS-style layout. The default lambda grid is 0.05um). |
| 5 | |
| 6 | set scalefac [tech lambda] |
| 7 | if {[lindex $scalefac 1] < 10} { |
| 8 | scalegrid 1 10 |
| 9 | } |
| 10 | |
| 11 | # drc off |
| 12 | drc euclidean on |
| 13 | # Change this to a fixed number for repeatable behavior with GDS writes |
| 14 | # e.g., "random seed 12345" |
| 15 | catch {random seed} |
| 16 | |
| 17 | # Allow override of PDK path from environment variable PDK_ROOT |
| 18 | # "file nativename" guards against a local PDK_ROOT with "~" in the name |
| 19 | if {[catch {set PDK_ROOT [file nativename $env(PDK_ROOT)]}]} { |
| 20 | set PDK_ROOT /usr/local/pdk/volare/gf180mcu/build/b8c6129fb60851c452a3136c2b8c603bb92cb180 |
| 21 | } |
| 22 | |
| 23 | # loading technology |
| 24 | tech load $PDK_ROOT/gf180mcuC/libs.tech/magic/gf180mcuC.tech |
| 25 | |
| 26 | # load device generator |
| 27 | source $PDK_ROOT/gf180mcuC/libs.tech/magic/gf180mcuC.tcl |
| 28 | |
| 29 | # load bind keys |
| 30 | # source $PDK_ROOT/gf180mcuC/libs.tech/magic/gf180mcuC-BindKeys |
| 31 | |
| 32 | # set units to lambda grid |
| 33 | snap lambda |
| 34 | |
| 35 | # set gf180mcu standard power, ground, and substrate names |
| 36 | set VDD VDD |
| 37 | set GND VSS |
| 38 | set SUB VSUBS |
| 39 | |
| 40 | # Allow override of type of magic library views used, "mag" or "maglef", |
| 41 | # from environment variable MAGTYPE |
| 42 | |
| 43 | if {[catch {set MAGTYPE $env(MAGTYPE)}]} { |
| 44 | set MAGTYPE mag |
| 45 | } |
| 46 | |
| 47 | # add path to reference cells |
| 48 | if {[file isdir ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}]} { |
| 49 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}/gf180mcu_fd_pr |
| 50 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}/gf180mcu_mcu7t5v0 |
| 51 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}/gf180mcu_mcu9t5v0 |
| 52 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}/gf180mcu_fd_io |
| 53 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/${MAGTYPE}/gf180mcu_fd_ip_sram |
| 54 | } else { |
| 55 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/gf180mcu_fd_pr/${MAGTYPE} |
| 56 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/gf180mcu_fd_sc_mcu7t5v0/${MAGTYPE} |
| 57 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/gf180mcu_fd_sc_mcu9t5v0/${MAGTYPE} |
| 58 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/gf180mcu_fd_io/${MAGTYPE} |
| 59 | addpath ${PDK_ROOT}/gf180mcuC/libs.ref/gf180mcu_fd_ip_sram/${MAGTYPE} |
| 60 | } |
| 61 | |
| 62 | # add path to IP from catalog. This procedure defined in the PDK script. |
| 63 | catch {magic::query_mylib_ip} |
| 64 | # add path to local IP from user design space. Defined in the PDK script. |
| 65 | catch {magic::query_my_projects} |