blob: d1fc484bc86a395b623d0a88ab263ddcf0f922e7 [file] [log] [blame]
Jeff DiCorpobd9a62c2022-12-12 23:47:08 -08001puts 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
6set scalefac [tech lambda]
7if {[lindex $scalefac 1] < 10} {
8 scalegrid 1 10
9}
10
11# drc off
12drc euclidean on
13# Change this to a fixed number for repeatable behavior with GDS writes
14# e.g., "random seed 12345"
15catch {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
19if {[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
24tech load $PDK_ROOT/gf180mcuC/libs.tech/magic/gf180mcuC.tech
25
26# load device generator
27source $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
33snap lambda
34
35# set gf180mcu standard power, ground, and substrate names
36set VDD VDD
37set GND VSS
38set SUB VSUBS
39
40# Allow override of type of magic library views used, "mag" or "maglef",
41# from environment variable MAGTYPE
42
43if {[catch {set MAGTYPE $env(MAGTYPE)}]} {
44 set MAGTYPE mag
45}
46
47# add path to reference cells
48if {[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.
63catch {magic::query_mylib_ip}
64# add path to local IP from user design space. Defined in the PDK script.
65catch {magic::query_my_projects}