Make some common lib memory sizes. Update Makefile to auto build and char them all.

This commit is contained in:
mguthaus
2018-02-12 12:00:59 -08:00
parent 636099c5e1
commit e210d3d49a
8 changed files with 58 additions and 8 deletions
+28
View File
@@ -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"