Adding script for Power Distribution Network. Taken from Professor's repo
diff --git a/openlane/openram_testchip/pdn.tcl b/openlane/openram_testchip/pdn.tcl new file mode 100644 index 0000000..4ce71c4 --- /dev/null +++ b/openlane/openram_testchip/pdn.tcl
@@ -0,0 +1,34 @@ +# Power nets +set ::power_nets $::env(VDD_PIN) +set ::ground_nets $::env(GND_PIN) + +set ::macro_blockage_layer_list "li1 met1 met2 met3 met4 met5" + +pdngen::specify_grid stdcell { + name grid + rails { + met1 {width 0.48 pitch $::env(PLACE_SITE_HEIGHT) offset 0} + } + straps { + met4 {width 1.6 pitch $::env(FP_PDN_VPITCH) offset $::env(FP_PDN_VOFFSET)} + met5 {width 1.6 pitch $::env(FP_PDN_HPITCH) offset $::env(FP_PDN_HOFFSET)} + } + connect {{met1 met4} {met4 met5}} +} + +pdngen::specify_grid macro { + power_pins "VPWR VDD vdd" + ground_pins "VGND VSS gnd" + blockages "li1 met1 met2 met3 met4" + straps { + } + connect {{met4_PIN_ver met5} {met3_PIN_hor met5}} +} + +set ::halo $::env(FP_HORIZONTAL_HALO) + +# POWER or GROUND #Std. cell rails starting with power or ground rails at the bottom of the core area +set ::rails_start_with "POWER" ; + +# POWER or GROUND #Upper metal stripes starting with power or ground rails at the left/bottom of the core area +set ::stripes_start_with "POWER" ; \ No newline at end of file