removed tabs and fixed bug in which datasheets generated without the characterizer running

This commit is contained in:
Jesse Cirimelli-Low 2018-10-11 11:18:40 -07:00
parent 49268b025f
commit bc54bc238f
3 changed files with 77 additions and 88 deletions

View File

@ -64,6 +64,7 @@ s = sram(sram_config=c,
s.save()
# generate datasheet from characterization of created SRAM
if not OPTS.analytical_delay:
p = parser.parse(OPTS.openram_temp,os.environ.get('OPENRAM_HOME')+"/datasheets")
# Delete temp files etc.

View File

@ -221,16 +221,3 @@ class parse():
with open(out_dir + "/" + sheets.name + ".html", 'w+') as f:
with contextlib.redirect_stdout(f):
sheets.print()

View File

@ -63,8 +63,9 @@ class openram_test(openram_test):
files = glob.glob('{0}/*.lib'.format(out_path))
self.assertTrue(len(files)>0)
# Make sure there is any .html file
datasheets = glob.glob('{0}/{1}/*html'.format(OPENRAM_HOME,datasheets))
# Make sure there is any .html file if characterizer was ran
if not OPTS.analytical_delay:
datasheets = glob.glob('{0}/{1}/*html'.format(OPENRAM_HOME,'datasheets'))
self.assertTrue(len(datasheets)>0)
# grep any errors from the output