Added analyical model test which compares measured delay to model delay.

This commit is contained in:
Hunter Nichols
2019-04-03 16:26:20 -07:00
parent f6eefc1728
commit cc5b347f42
11 changed files with 71 additions and 170 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ import utils
from globals import OPTS
from .simulation import simulation
from .measurements import *
import logical_effort
class delay(simulation):
"""Functions to measure the delay and power of an SRAM at a given address and
@@ -904,8 +905,9 @@ class delay(simulation):
self.create_measurement_names()
power = self.analytical_power(slews, loads)
port_data = self.get_empty_measure_data_dict()
relative_loads = [logical_effort.convert_farad_to_relative_c(c_farad) for c_farad in loads]
for slew in slews:
for load in loads:
for load in relative_loads:
self.set_load_slew(load,slew)
bank_delay = self.sram.analytical_delay(self.corner, self.slew,self.load)
for port in self.all_ports:
+4
View File
@@ -67,4 +67,8 @@ def calculate_relative_rise_fall_delays(stage_effort_list):
else:
total_fall_delay += stage.get_stage_delay()
return total_rise_delay, total_fall_delay
def convert_farad_to_relative_c(c_farad):
"""Converts capacitance in Femto-Farads to relative capacitance."""
return c_farad*parameter['cap_relative_per_ff']