mirror of https://github.com/VLSIDA/OpenRAM.git
Merge remote-tracking branch 'origin' into supply_routing
This commit is contained in:
commit
3f1fbc3d90
|
|
@ -1,93 +1,45 @@
|
||||||
|
TECH = scn4m_subm
|
||||||
CUR_DIR = $(shell pwd)
|
CUR_DIR = $(shell pwd)
|
||||||
TEST_DIR = ${CUR_DIR}/tests
|
TEST_DIR = ${CUR_DIR}/tests
|
||||||
|
|
||||||
MAKEFLAGS += -j 2
|
MAKEFLAGS += -j 1
|
||||||
|
|
||||||
# Library test
|
# Library test
|
||||||
LIBRARY_TESTS = \
|
LIBRARY_TESTS = $(shell find ${TEST_DIR} -name 0[1-2]*_test.py)
|
||||||
01_library_drc_test.py \
|
|
||||||
02_library_lvs_test.py
|
|
||||||
|
|
||||||
# Technology and DRC tests (along with ptx)
|
# Technology and DRC tests (along with ptx)
|
||||||
TECH_TESTS = \
|
TECH_TESTS = $(shell find ${TEST_DIR} -name 03*_test.py)
|
||||||
03_contact_test.py \
|
|
||||||
03_ptx_1finger_pmos_test.py \
|
|
||||||
03_ptx_4finger_nmos_test.py \
|
|
||||||
03_path_test.py \
|
|
||||||
03_ptx_3finger_nmos_test.py \
|
|
||||||
03_ptx_4finger_pmos_test.py \
|
|
||||||
03_ptx_1finger_nmos_test.py \
|
|
||||||
03_ptx_3finger_pmos_test.py \
|
|
||||||
03_wire_test.py
|
|
||||||
|
|
||||||
# Parameterized cells
|
# Parameterized cells
|
||||||
PCELLS_TESTS = \
|
CELL_TESTS = $(shell find ${TEST_DIR} -name 04*_test.py)
|
||||||
04_pinv_1x_test.py \
|
|
||||||
04_pinv_1x_beta_test.py \
|
|
||||||
04_pinv_2x_test.py \
|
|
||||||
04_pinv_10x_test.py \
|
|
||||||
04_pnand2_test.py \
|
|
||||||
04_pnor2_test.py \
|
|
||||||
04_pnand3_test.py\
|
|
||||||
04_wordline_driver_test.py \
|
|
||||||
04_precharge_test.py
|
|
||||||
|
|
||||||
# Dynamically generated modules and arrays
|
# Dynamically generated modules and arrays
|
||||||
MODULE_TESTS = \
|
MODULE_TESTS = $(shell find ${TEST_DIR} -name 0[5-9]*_test.py)\
|
||||||
05_bitcell_array_test.py \
|
$(shell find ${TEST_DIR} -name 1*_test.py)
|
||||||
06_hierarchical_decoder_test.py \
|
|
||||||
06_hierarchical_predecode2x4_test.py \
|
|
||||||
06_hierarchical_predecode3x8_test.py \
|
|
||||||
07_single_level_column_mux_array_test.py \
|
|
||||||
08_precharge_array_test.py \
|
|
||||||
09_sense_amp_array_test.py \
|
|
||||||
10_write_driver_array_test.py \
|
|
||||||
11_ms_flop_array_test.py \
|
|
||||||
12_tri_gate_array_test.py \
|
|
||||||
13_delay_chain_test.py \
|
|
||||||
14_replica_bitline_test.py \
|
|
||||||
16_control_logic_test.py
|
|
||||||
|
|
||||||
# Top-level SRAM configurations
|
# Top-level SRAM configurations
|
||||||
TOP_TESTS = \
|
TOP_TESTS = $(shell find ${TEST_DIR} -name 20*_test.py)
|
||||||
19_multi_bank_test.py \
|
|
||||||
19_single_bank_test.py \
|
|
||||||
20_sram_1bank_test.py \
|
|
||||||
20_sram_2bank_test.py \
|
|
||||||
20_sram_4bank_test.py
|
|
||||||
|
|
||||||
# All simulation tests.
|
# All simulation tests.
|
||||||
CHAR_TESTS = \
|
CHAR_TESTS = $(shell find ${TEST_DIR} -name 2[1-2]*_test.py)
|
||||||
21_hspice_delay_test.py \
|
|
||||||
21_ngspice_delay_test.py \
|
|
||||||
21_ngspice_setuphold_test.py \
|
|
||||||
21_hspice_setuphold_test.py \
|
|
||||||
22_sram_func_test.py \
|
|
||||||
22_pex_func_test_with_pinv.py \
|
|
||||||
23_lib_sram_prune_test.py \
|
|
||||||
23_lib_sram_test.py
|
|
||||||
|
|
||||||
# Keep the model lib test here since it is fast
|
# Keep the model lib test here since it is fast
|
||||||
# and doesn't need simulation.
|
# and doesn't need simulation.
|
||||||
USAGE_TESTS = \
|
USAGE_TESTS = $(shell find ${TEST_DIR} -name 2[3-9]*_test.py)\
|
||||||
23_lib_sram_model_test.py \
|
$(shell find ${TEST_DIR} -name 30*_test.py)
|
||||||
24_lef_sram_test.py \
|
|
||||||
25_verilog_sram_test.py
|
|
||||||
|
|
||||||
ALL_FILES = \
|
ALL_TESTS = \
|
||||||
${LIBRARY_TESTS} \
|
${LIBRARY_TESTS} \
|
||||||
${TECH_TESTS} \
|
${TECH_TESTS} \
|
||||||
${PCELLS_TESTS} \
|
${CELL_TESTS} \
|
||||||
${MODULES_TESTS} \
|
${MODULE_TESTS} \
|
||||||
${TOP_TESTS} \
|
${TOP_TESTS} \
|
||||||
${CHAR_TESTS} \
|
${CHAR_TESTS} \
|
||||||
${USAGE_TESTS}
|
${USAGE_TESTS}
|
||||||
|
|
||||||
default all:
|
.PHONY: ${ALL_TESTS}
|
||||||
|
|
||||||
$(ALL_FILES):
|
all: ${ALL_TESTS}
|
||||||
python ${TEST_DIR}/$@ -t freepdk45
|
|
||||||
python ${TEST_DIR}/$@ -t scn3me_subm
|
|
||||||
|
|
||||||
# Library tests
|
# Library tests
|
||||||
lib: ${LIBRARY_TESTS}
|
lib: ${LIBRARY_TESTS}
|
||||||
|
|
@ -96,10 +48,10 @@ lib: ${LIBRARY_TESTS}
|
||||||
tech: ${TECH_TESTS}
|
tech: ${TECH_TESTS}
|
||||||
|
|
||||||
# Dynamically generated cells
|
# Dynamically generated cells
|
||||||
pcells: ${PCELLS_TESTS}
|
cell: ${CELL_TESTS}
|
||||||
|
|
||||||
# Dynamically generated modules
|
# Dynamically generated modules
|
||||||
modules: ${MODULES_TESTS}
|
module: ${MODULE_TESTS}
|
||||||
|
|
||||||
# Top level SRAM tests
|
# Top level SRAM tests
|
||||||
top: ${TOP_TESTS}
|
top: ${TOP_TESTS}
|
||||||
|
|
@ -110,6 +62,9 @@ char: ${CHAR_TESTS}
|
||||||
# Usage and file generation
|
# Usage and file generation
|
||||||
usage: ${USAGE_TESTS}
|
usage: ${USAGE_TESTS}
|
||||||
|
|
||||||
|
$(ALL_TESTS):
|
||||||
|
python3 $@ -t ${TECH}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -name \*.pyc -exec rm {} \;
|
find . -name \*.pyc -exec rm {} \;
|
||||||
find . -name \*~ -exec rm {} \;
|
find . -name \*~ -exec rm {} \;
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ def parse_args():
|
||||||
# This may be overridden when we read a config file though...
|
# This may be overridden when we read a config file though...
|
||||||
if OPTS.tech_name == "":
|
if OPTS.tech_name == "":
|
||||||
OPTS.tech_name = "scmos"
|
OPTS.tech_name = "scmos"
|
||||||
# Alias SCMOS to AMI 0.5um
|
# Alias SCMOS to 180nm
|
||||||
if OPTS.tech_name == "scmos":
|
if OPTS.tech_name == "scmos":
|
||||||
OPTS.tech_name = "scn4m_subm"
|
OPTS.tech_name = "scn4m_subm"
|
||||||
|
|
||||||
|
|
@ -89,6 +89,7 @@ def print_banner():
|
||||||
print("|=========" + dev_info.center(60) + "=========|")
|
print("|=========" + dev_info.center(60) + "=========|")
|
||||||
temp_info = "Temp dir: {}".format(OPTS.openram_temp)
|
temp_info = "Temp dir: {}".format(OPTS.openram_temp)
|
||||||
print("|=========" + temp_info.center(60) + "=========|")
|
print("|=========" + temp_info.center(60) + "=========|")
|
||||||
|
print("|=========" + "See LICENSE for license info".center(60) + "=========|")
|
||||||
print("|==============================================================================|")
|
print("|==============================================================================|")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue