Commit 8df0721 1 parent fa30e3e commit 8df0721 Copy full SHA for 8df0721
File tree 1 file changed +4
-3
lines changed
pdks/sky130_commercial_pdk/src
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,20 +44,21 @@ impl Sky130CommercialPdk {
44
44
// larger transistors into several 100um segments plus one smaller segment containing
45
45
// the leftover width.
46
46
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 ;
48
49
let l = params. l as f64 / 1_000.0 ;
49
50
let nf = params. nf ;
50
51
let m = params. m ;
51
52
52
53
for i in 1 ..=n_extra {
53
54
writeln ! (
54
55
& 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}"
56
57
)
57
58
. expect ( "failed to write to string" ) ;
58
59
}
59
60
60
- let w = ( params. w % 100_000 ) as f64 / 1_000.0 ;
61
+ let w = ( params. w % MAX_WIDTH ) as f64 / 1_000.0 ;
61
62
writeln ! (
62
63
& mut spice,
63
64
"M0 d g s b {name} w={w:.3} l={l:.3} nf={nf} mult={m}"
You can’t perform that action at this time.
0 commit comments