call create() function from sram/__init__

This commit is contained in:
samuelkcrow 2022-03-02 16:38:39 -08:00
parent 910980328c
commit 1acc6be3ce
5 changed files with 4 additions and 8 deletions

View File

@ -49,7 +49,6 @@ c = sram_config(word_size=OPTS.word_size,
# Initialize and create the sram object
from sram import sram
s = sram(name=OPTS.output_name, sram_config=c)
s.create()
# Characterize the design
start_time = datetime.datetime.now()

View File

@ -54,7 +54,6 @@ c = sram_config(word_size=OPTS.word_size,
# Initialize and create the sram object
from sram import sram
s = sram(name=OPTS.output_name, sram_config=c)
s.create()
# Generate stimulus and run functional simulation on the design
start_time = datetime.datetime.now()

View File

@ -60,7 +60,6 @@ OPTS.openram_temp = OPTS.output_path
from sram import sram
s = sram(name=OPTS.output_name, sram_config=c)
s.create()
from characterizer import delay
import tech

View File

@ -72,13 +72,10 @@ debug.print_raw("Output files are: ")
for path in output_files:
debug.print_raw(path)
# Initialize the SRAM
s = sram(name=OPTS.output_name, sram_config=c)
# Actually build the SRAM
s.create()
# Output the files for the resulting SRAM
# Generate and output the files for the resulting SRAM
s.save()
# Delete temp files etc.

View File

@ -40,6 +40,8 @@ class sram():
from design import design
design.name_map=[]
self.create()
def create(self):
debug.info(2, "create sram of size {0} with {1} num of words {2} banks".format(self.word_size,
self.num_words,