More refinements on xcircuit setup for sky130_fd_pr.
diff --git a/sky130/xcircuit/sky130.xcircuitrc b/sky130/xcircuit/sky130.xcircuitrc index a329697..b61cbc5 100644 --- a/sky130/xcircuit/sky130.xcircuitrc +++ b/sky130/xcircuit/sky130.xcircuitrc
@@ -43,15 +43,6 @@ # Procedures used with sky130_fd_pr library #----------------------------------------------- -proc limit_low {value limit} { - if {$value < $limit} { - set rval $limit - } else { - set rval $value - } - return [format "%1.3f" $rval] -} - # Return MiM cap capacitance value in fF proc get_mim_value {l w mult} { return [* $l $w $mult]
diff --git a/sky130/xcircuit/sky130_fd_pr.lps b/sky130/xcircuit/sky130_fd_pr.lps index a4bb081..f6d8a6f 100644 --- a/sky130/xcircuit/sky130_fd_pr.lps +++ b/sky130/xcircuit/sky130_fd_pr.lps
@@ -362,7 +362,7 @@ } def /sky130_fd_pr::MiMCap { -<</@mult 1 /@model (m3_1) (lindex {m3_1 m3_2} 0) pop /@length (1) /@width (1) /p_yps2 +<</@mult 1 /@model (m3_1) (lindex {m3_1 m3_2} 0) pop /@length (2) /@width (2) /p_yps2 -24 /p_xps2 48 /p_yps1 8 /p_xps1 48 /p_yps 72 /p_xps 48 /p_rot 0 /@class (X) /@value (1) (get_mim_value @length @width @mult) pop /@index (?) /p_jst 20 >> begingate