mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-02 11:08:01 +02:00
Added corner paramters to power functions. This commit does not compile (sorry)
This commit is contained in:
@@ -121,10 +121,10 @@ class design(hierarchy_spice.spice, hierarchy_layout.layout):
|
||||
text+=str(i)+",\n"
|
||||
return text
|
||||
|
||||
def analytical_power(self, slew, load):
|
||||
def analytical_power(self, vdd, temp, load):
|
||||
""" Get total power of a module """
|
||||
#print "Getting power for ",self.name," module"
|
||||
total_module_power = 0
|
||||
for inst in self.insts:
|
||||
total_module_power += inst.mod.analytical_power(slew, load)
|
||||
total_module_power = self.return_power()
|
||||
# for inst in self.insts:
|
||||
# total_module_power += self.return_power()#inst.mod.analytical_power(vdd, temp, load)
|
||||
return total_module_power
|
||||
|
||||
@@ -215,7 +215,7 @@ class spice(verilog.verilog):
|
||||
def generate_rc_net(self,lump_num, wire_length, wire_width):
|
||||
return wire_spice_model(lump_num, wire_length, wire_width)
|
||||
|
||||
def return_power(self, dynamic, leakage):
|
||||
def return_power(self, dynamic=0.0, leakage=0.0):
|
||||
return power_data(dynamic, leakage)
|
||||
|
||||
class delay_data:
|
||||
|
||||
Reference in New Issue
Block a user