Skip to content

Commit 8df0721

Browse files
committed
change sky130 mos folding threshold to 90um
Was previously 100um.
1 parent fa30e3e commit 8df0721

File tree

1 file changed

+4
-3
lines changed
  • pdks/sky130_commercial_pdk/src

1 file changed

+4
-3
lines changed

pdks/sky130_commercial_pdk/src/mos.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,21 @@ impl Sky130CommercialPdk {
4444
// larger transistors into several 100um segments plus one smaller segment containing
4545
// the leftover width.
4646
let mut spice = String::new();
47-
let n_extra = params.w / 100_000;
47+
const MAX_WIDTH: i64 = 90_000;
48+
let n_extra = params.w / MAX_WIDTH;
4849
let l = params.l as f64 / 1_000.0;
4950
let nf = params.nf;
5051
let m = params.m;
5152

5253
for i in 1..=n_extra {
5354
writeln!(
5455
&mut spice,
55-
"M{i} d g s b {name} w=100.0 l={l:.3} nf={nf} mult={m}"
56+
"M{i} d g s b {name} w=90.0 l={l:.3} nf={nf} mult={m}"
5657
)
5758
.expect("failed to write to string");
5859
}
5960

60-
let w = (params.w % 100_000) as f64 / 1_000.0;
61+
let w = (params.w % MAX_WIDTH) as f64 / 1_000.0;
6162
writeln!(
6263
&mut spice,
6364
"M0 d g s b {name} w={w:.3} l={l:.3} nf={nf} mult={m}"

0 commit comments

Comments
 (0)