Added some power functions.

This commit is contained in:
Hunter Nichols
2018-02-20 18:22:23 -08:00
parent 8ea384a761
commit 179a27b0e3
14 changed files with 12835 additions and 8 deletions
+2 -2
View File
@@ -196,8 +196,8 @@ class bitcell_array(design.design):
#Calculate the bitcell power which can include leakage as well as bitline dynamic
cell_power = self.cell.analytical_power(slew, cell_load, swing = bl_swing)
#we do not consider the delay over the wire for now
return cell_power
#calculate power for entire array based off a single cell
return cell_power * self.column_size * self.row_size
def gen_wl_wire(self):
wl_wire = self.generate_rc_net(int(self.column_size), self.width, drc["minwidth_metal1"])