Skip to content

Commit

Permalink
Another change in support of future work: Modified the device
Browse files Browse the repository at this point in the history
generator scripts in magic so that parameters other than ones
recognized by SPICE can be passed to the device generator on a
gencell call with "-spice" and will be copied unmodified.  That
allows a script to mix SPICE parameters and layout parameters
in the same gencell call.  This change has no effect on current
PDK usage by any tool.
  • Loading branch information
RTimothyEdwards committed Jul 25, 2024
1 parent 2056e90 commit 81b8d68
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.489
1.0.490
20 changes: 20 additions & 0 deletions gf180mcu/magic/gf180mcu.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ proc gf180mcu::diode_convert {parameters} {
# Convert m to ny
dict set pdkparams ny $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -1132,6 +1136,10 @@ proc gf180mcu::cap_convert {parameters} {
# Convert m to ny
dict set pdkparams ny $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -1959,6 +1967,10 @@ proc gf180mcu::res_convert {parameters} {
set value [magic::3digitpastdecimal $value]
dict set pdkparams [string tolower $canonkey] $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -3358,6 +3370,10 @@ proc gf180mcu::mos_convert {parameters} {
dict set pdkparams [string tolower $key] $value
}
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -4662,6 +4678,10 @@ proc gf180mcu::fixed_convert {parameters} {
m {
dict set pdkparams nx $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down
20 changes: 20 additions & 0 deletions sky130/magic/sky130.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,10 @@ proc sky130::diode_convert {parameters} {
# Convert m to ny
dict set pdkparams ny $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -2021,6 +2025,10 @@ proc sky130::cap_convert {parameters} {
# Convert m to ny
dict set pdkparams ny $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -3006,6 +3014,10 @@ proc sky130::res_convert {parameters} {
set value [magic::3digitpastdecimal $value]
dict set pdkparams [string tolower $key] $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down Expand Up @@ -5404,6 +5416,10 @@ proc sky130::mos_convert {parameters} {
# Adjustment ot W will be handled below
dict set pdkparams [string tolower $key] $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}

Expand Down Expand Up @@ -7433,6 +7449,10 @@ proc sky130::fixed_convert {parameters} {
m {
dict set pdkparams nx $value
}
default {
# Allow unrecognized parameters to be passed unmodified
dict set pdkparams $key $value
}
}
}
return $pdkparams
Expand Down

0 comments on commit 81b8d68

Please sign in to comment.