Pass the sram design to lib instead of the sram wrapper

This commit is contained in:
Matt Guthaus 2018-07-18 11:51:42 -07:00
parent f43d4cc98f
commit b88947ef5c
4 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ class lib:
def __init__(self, out_dir, sram, sp_file, use_model=OPTS.analytical_delay):
self.out_dir = out_dir
self.sram = sram.s
self.sram = sram
self.sp_file = sp_file
self.use_model = use_model

View File

@ -28,7 +28,7 @@ class lib_test(openram_test):
tempspice = OPTS.openram_temp + "temp.sp"
s.sp_write(tempspice)
lib(out_dir=OPTS.openram_temp, sram=s, sp_file=tempspice, use_model=True)
lib(out_dir=OPTS.openram_temp, sram=s.s, sp_file=tempspice, use_model=True)
# get all of the .lib files generated
files = os.listdir(OPTS.openram_temp)

View File

@ -37,7 +37,7 @@ class lib_test(openram_test):
tempspice = OPTS.openram_temp + "temp.sp"
s.sp_write(tempspice)
lib(out_dir=OPTS.openram_temp, sram=s, sp_file=tempspice, use_model=False)
lib(out_dir=OPTS.openram_temp, sram=s.s, sp_file=tempspice, use_model=False)
# get all of the .lib files generated
files = os.listdir(OPTS.openram_temp)

View File

@ -37,7 +37,7 @@ class lib_test(openram_test):
tempspice = OPTS.openram_temp + "temp.sp"
s.sp_write(tempspice)
lib(out_dir=OPTS.openram_temp, sram=s, sp_file=tempspice, use_model=False)
lib(out_dir=OPTS.openram_temp, sram=s.s, sp_file=tempspice, use_model=False)
# get all of the .lib files generated
files = os.listdir(OPTS.openram_temp)