mirror of https://github.com/VLSIDA/OpenRAM.git
moved DRC and LVS error reports to datasheet.info from datasheet.py
This commit is contained in:
parent
4a5c18b6cc
commit
cc27736a45
|
|
@ -533,6 +533,17 @@ class lib:
|
||||||
git_id
|
git_id
|
||||||
))
|
))
|
||||||
|
|
||||||
|
# information of checks
|
||||||
|
from hierarchy_design import total_drc_errors
|
||||||
|
from hierarchy_design import total_lvs_errors
|
||||||
|
DRC = 'skipped'
|
||||||
|
LVS = 'skipped'
|
||||||
|
if OPTS.check_lvsdrc:
|
||||||
|
DRC = str(total_drc_errors)
|
||||||
|
LVS = str(total_lvs_errors)
|
||||||
|
|
||||||
|
datasheet.write("{0},{1},".format(DRC, LVS))
|
||||||
|
|
||||||
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:
|
||||||
|
|
@ -629,6 +640,9 @@ class lib:
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
datasheet.write("END\n")
|
datasheet.write("END\n")
|
||||||
datasheet.close()
|
datasheet.close()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ from characterization_corners import *
|
||||||
from deliverables import *
|
from deliverables import *
|
||||||
from timing_and_current_data import *
|
from timing_and_current_data import *
|
||||||
from in_out import *
|
from in_out import *
|
||||||
from hierarchy_design import total_drc_errors
|
|
||||||
from hierarchy_design import total_lvs_errors
|
|
||||||
import os
|
import os
|
||||||
import csv
|
import csv
|
||||||
import base64
|
import base64
|
||||||
|
|
@ -33,15 +31,6 @@ class datasheet():
|
||||||
#css styling is kept in a seperate file
|
#css styling is kept in a seperate file
|
||||||
self.html += datasheet_css.read()
|
self.html += datasheet_css.read()
|
||||||
|
|
||||||
if OPTS.check_lvsdrc:
|
|
||||||
|
|
||||||
DRC = str(total_drc_errors) + ' errors'
|
|
||||||
LVS = str(total_lvs_errors) + ' errors'
|
|
||||||
PEX = 'n/a'
|
|
||||||
else:
|
|
||||||
DRC = 'skipped'
|
|
||||||
LVS = 'skipped'
|
|
||||||
PEX = 'skipped'
|
|
||||||
|
|
||||||
with open(OPTS.openram_temp + "/datasheet.info") as info:
|
with open(OPTS.openram_temp + "/datasheet.info") as info:
|
||||||
self.html += '<!--'
|
self.html += '<!--'
|
||||||
|
|
@ -65,8 +54,8 @@ class datasheet():
|
||||||
|
|
||||||
|
|
||||||
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ self.name + '.html' + '</p>'
|
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ self.name + '.html' + '</p>'
|
||||||
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ 'DRC: ' + str(DRC) + '</p>'
|
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ 'DRC: ' + str(self.DRC) + '</p>'
|
||||||
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ 'LVS: ' + str(LVS) + '</p>'
|
self.html +='<p style="font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">'+ 'LVS: ' + str(self.LVS) + '</p>'
|
||||||
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: 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 +='<p style="font-size: 26px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">Ports and Configuration (DEBUG)</p>'
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,11 @@ def parse_characterizer_csv(sram,f,pages):
|
||||||
ORIGIN_ID = row[col]
|
ORIGIN_ID = row[col]
|
||||||
col += 1
|
col += 1
|
||||||
|
|
||||||
|
DRC = row[col]
|
||||||
|
col += 1
|
||||||
|
|
||||||
|
LVS = row[col]
|
||||||
|
col += 1
|
||||||
|
|
||||||
for sheet in pages:
|
for sheet in pages:
|
||||||
|
|
||||||
|
|
@ -336,6 +341,9 @@ def parse_characterizer_csv(sram,f,pages):
|
||||||
col += 2
|
col += 2
|
||||||
|
|
||||||
col += 1
|
col += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
@ -351,6 +359,9 @@ def parse_characterizer_csv(sram,f,pages):
|
||||||
pages.append(new_sheet)
|
pages.append(new_sheet)
|
||||||
|
|
||||||
new_sheet.git_id = ORIGIN_ID
|
new_sheet.git_id = ORIGIN_ID
|
||||||
|
new_sheet.DRC = DRC
|
||||||
|
new_sheet.LVS = LVS
|
||||||
|
|
||||||
|
|
||||||
new_sheet.corners.append(characterization_corners_item(PROC,process_name(PROC),VOLT,TEMP,LIB_NAME.replace(OUT_DIR,'').replace(NAME,'')))
|
new_sheet.corners.append(characterization_corners_item(PROC,process_name(PROC),VOLT,TEMP,LIB_NAME.replace(OUT_DIR,'').replace(NAME,'')))
|
||||||
|
|
||||||
|
|
@ -476,6 +487,7 @@ def parse_characterizer_csv(sram,f,pages):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class datasheet_gen():
|
class datasheet_gen():
|
||||||
def datasheet_write(sram,name):
|
def datasheet_write(sram,name):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,19 @@
|
||||||
class deliverable:
|
from flask_table import *
|
||||||
def __init__(self, name, file_type, path, size):
|
|
||||||
self.name = name
|
|
||||||
self.file_type = file_type
|
|
||||||
self.path = path
|
|
||||||
self.size = size
|
|
||||||
|
|
||||||
|
class deliverables(Table):
|
||||||
|
"""
|
||||||
|
Set up delivarables table columns and title information
|
||||||
|
"""
|
||||||
|
typ = Col('Type')
|
||||||
|
description = Col('Description')
|
||||||
|
link = Col('Link')
|
||||||
|
|
||||||
|
|
||||||
|
class deliverables_item(object):
|
||||||
|
"""
|
||||||
|
Define deliverables table row elemenent information
|
||||||
|
"""
|
||||||
|
def __init__(self, typ, description,link):
|
||||||
|
self.typ = typ
|
||||||
|
self.description = description
|
||||||
|
self.link = link
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,3 @@ class filelist:
|
||||||
out_file.write('{}/{}\n'.format(root,file))
|
out_file.write('{}/{}\n'.format(root,file))
|
||||||
#print('{}/{}'.format(root,file))
|
#print('{}/{}'.format(root,file))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue