mirror of https://github.com/VLSIDA/OpenRAM.git
Make some common lib memory sizes. Update Makefile to auto build and char them all.
This commit is contained in:
parent
636099c5e1
commit
e210d3d49a
|
|
@ -173,10 +173,11 @@ def read_config(config_file, is_unit_test=True):
|
|||
|
||||
# If config didn't set output name, make a reasonable default.
|
||||
if (OPTS.output_name == ""):
|
||||
OPTS.output_name = "sram_{0}_{1}_{2}_{3}".format(OPTS.word_size,
|
||||
OPTS.num_words,
|
||||
OPTS.num_banks,
|
||||
OPTS.OPTS.tech_name)
|
||||
OPTS.output_name = "sram_{0}rw_{1}b_{2}w_{3}bank_{4}".format(OPTS.rw_ports,
|
||||
OPTS.word_size,
|
||||
OPTS.num_words,
|
||||
OPTS.num_banks,
|
||||
OPTS.tech_name)
|
||||
|
||||
# Don't delete the output dir, it may have other files!
|
||||
# make the directory if it doesn't exist
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
CUR_DIR = $(shell pwd)
|
||||
TEST_DIR = ${CUR_DIR}/tests
|
||||
|
||||
MAKEFLAGS += -j 2
|
||||
|
||||
CONFIG_DIR = configs
|
||||
OUT_DIRS = sp lib lef gds
|
||||
$(shell mkdir -p $(OUT_DIRS))
|
||||
|
||||
SRCS=$(wildcard $(CONFIG_DIR)/*.py)
|
||||
SPICES=$(SRCS:.py=.sp)
|
||||
all : $(SPICES)
|
||||
|
||||
%.sp : %.py
|
||||
openram.py -c $<
|
||||
mv ($basename $<).lef lef
|
||||
mv ($basename $<).sp sp
|
||||
mv ($basename $<).gds gds
|
||||
mv ($basename $<)\*.lib lib
|
||||
|
||||
clean:
|
||||
find . -name \*.pyc -exec rm {} \;
|
||||
find . -name \*~ -exec rm {} \;
|
||||
find . -name \*.lef -exec rm {} \;
|
||||
find . -name \*.lib -exec rm {} \;
|
||||
find . -name \*.sp -exec rm {} \;
|
||||
find . -name \*.gds -exec rm {} \;
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
word_size = 128
|
||||
num_words = 1024
|
||||
num_banks = 1
|
||||
|
||||
tech_name = "freepdk45"
|
||||
|
|
@ -3,7 +3,3 @@ num_words = 1024
|
|||
num_banks = 1
|
||||
|
||||
tech_name = "freepdk45"
|
||||
|
||||
output_path = "sram_1rw_32b_1k_freepdk45"
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
word_size = 32
|
||||
num_words = 2048
|
||||
num_banks = 1
|
||||
|
||||
tech_name = "freepdk45"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
word_size = 8
|
||||
num_words = 1024
|
||||
num_banks = 4
|
||||
|
||||
tech_name = "freepdk45"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
word_size = 8
|
||||
num_words = 256
|
||||
num_banks = 1
|
||||
|
||||
tech_name = "freepdk45"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
word_size = 8
|
||||
num_words = 512
|
||||
num_banks = 4
|
||||
|
||||
tech_name = "freepdk45"
|
||||
Loading…
Reference in New Issue