html datasheet no longer dependeds on sram

This commit is contained in:
Jesse Cirimelli-Low 2019-01-16 14:52:01 -08:00
parent 192c615a38
commit 0556b86424
3 changed files with 10 additions and 8 deletions

View File

@ -555,7 +555,7 @@ class lib:
LVS = str(total_lvs_errors) LVS = str(total_lvs_errors)
datasheet.write("{0},{1},".format(DRC, LVS)) datasheet.write("{0},{1},".format(DRC, LVS))
datasheet.write(str(self.sram.width * self.sram.height)+',')
for port in self.all_ports: for port in self.all_ports:
#DIN timings #DIN timings
if port in self.write_ports: if port in self.write_ports:

View File

@ -4,7 +4,7 @@ This is a script to load data from the characterization and layout processes int
a web friendly html datasheet. a web friendly html datasheet.
""" """
# TODO: # TODO:
# include log file # include power
# Diagram generation # Diagram generation
# Improve css # Improve css
@ -31,7 +31,7 @@ def process_name(corner):
return "custom" return "custom"
def parse_characterizer_csv(sram, f, pages): def parse_characterizer_csv(f, pages):
""" """
Parses output data of the Liberty file generator in order to construct the timing and Parses output data of the Liberty file generator in order to construct the timing and
current table current table
@ -98,6 +98,8 @@ def parse_characterizer_csv(sram, f, pages):
LVS = row[col] LVS = row[col]
col += 1 col += 1
AREA = row[col]
col += 1
for sheet in pages: for sheet in pages:
if sheet.name == NAME: if sheet.name == NAME:
@ -529,11 +531,11 @@ def parse_characterizer_csv(sram, f, pages):
new_sheet.io_table.add_row(['NUM_RW_PORTS', NUM_RW_PORTS]) new_sheet.io_table.add_row(['NUM_RW_PORTS', NUM_RW_PORTS])
new_sheet.io_table.add_row(['NUM_R_PORTS', NUM_R_PORTS]) new_sheet.io_table.add_row(['NUM_R_PORTS', NUM_R_PORTS])
new_sheet.io_table.add_row(['NUM_W_PORTS', NUM_W_PORTS]) new_sheet.io_table.add_row(['NUM_W_PORTS', NUM_W_PORTS])
new_sheet.io_table.add_row(['Area', sram.width * sram.height]) new_sheet.io_table.add_row(['Area', AREA])
class datasheet_gen(): class datasheet_gen():
def datasheet_write(sram, name): def datasheet_write(name):
in_dir = OPTS.openram_temp in_dir = OPTS.openram_temp
@ -541,7 +543,7 @@ class datasheet_gen():
os.mkdir(in_dir) os.mkdir(in_dir)
datasheets = [] datasheets = []
parse_characterizer_csv(sram, in_dir + "/datasheet.info", datasheets) parse_characterizer_csv(in_dir + "/datasheet.info", datasheets)
for sheets in datasheets: for sheets in datasheets:
with open(name, 'w+') as f: with open(name, 'w+') as f:

View File

@ -122,7 +122,7 @@ class sram():
from datasheet_gen import datasheet_gen from datasheet_gen import datasheet_gen
dname = OPTS.output_path + self.s.name + ".html" dname = OPTS.output_path + self.s.name + ".html"
debug.print_raw("Datasheet: Writing to {0}".format(dname)) debug.print_raw("Datasheet: Writing to {0}".format(dname))
datasheet_gen.datasheet_write(self.s,dname) datasheet_gen.datasheet_write(dname)
print_time("Datasheet", datetime.datetime.now(), start_time) print_time("Datasheet", datetime.datetime.now(), start_time)
# Write a verilog model # Write a verilog model