mirror of https://github.com/VLSIDA/OpenRAM.git
stable, but incomplete flaskless table gen rewrite
This commit is contained in:
parent
19a986c35c
commit
6033cc604d
|
|
@ -1,3 +1,4 @@
|
|||
from table_gen import *
|
||||
from flask_table import *
|
||||
from operating_conditions import *
|
||||
from characterization_corners import *
|
||||
|
|
@ -63,8 +64,8 @@ class datasheet():
|
|||
self.html += '<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ 'Git commit id: ' + str(self.git_id) + '</p>'
|
||||
|
||||
self.html +='<p style="font-size: 26px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">Ports and Configuration (DEBUG)</p>'
|
||||
self.html += in_out(self.io,table_id='data').__html__().replace('<','<').replace('"','"').replace('>',">")
|
||||
|
||||
#self.html += in_out(self.io,table_id='data').__html__().replace('<','<').replace('"','"').replace('>',">")
|
||||
self.html += self.io_table.to_html()
|
||||
# for row in self.io_table.rows:
|
||||
# print(row)
|
||||
|
||||
|
|
|
|||
|
|
@ -145,8 +145,33 @@ def parse_characterizer_csv(sram,f,pages):
|
|||
item.max = str(math.floor(1000/float(MIN_PERIOD)))
|
||||
except Exception:
|
||||
pass
|
||||
#
|
||||
for item in sheet.operating_table.rows:
|
||||
#check if the new corner data is worse than the previous worse corner data
|
||||
|
||||
if item[0] == 'Operating Temperature':
|
||||
if float(TEMP) > float(ite[3]):
|
||||
item[2] = item[3]
|
||||
item[3] = TEMP
|
||||
if float(TEMP) < float(item[1]):
|
||||
item[2] = item[1]
|
||||
item[1] = TEMP
|
||||
|
||||
if item[0] == 'Power supply (VDD) range':
|
||||
if float(VOLT) > float(item[3]):
|
||||
item[2] = item[3]
|
||||
item[3] = VOLT
|
||||
if float(VOLT) < float(item[1]):
|
||||
item[2] = item[1]
|
||||
item[1] = VOLT
|
||||
|
||||
if item.parameter == 'Operating Frequncy (F)':
|
||||
try:
|
||||
if float(math.floor(1000/float(MIN_PERIOD)) < float(item[3])):
|
||||
item[3] = str(math.floor(1000/float(MIN_PERIOD)))
|
||||
except Exception:
|
||||
pass
|
||||
#
|
||||
|
||||
while(True):
|
||||
if(row[col].startswith('DIN')):
|
||||
|
|
|
|||
Loading…
Reference in New Issue