aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run_mode.makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2022-07-21 13:51:55 -0400
committerGravatar Peter McGoron 2022-07-21 13:52:51 -0400
commit34bb170241e1c2643cc8b6f3d5a2fee59d1226f2 (patch)
treeeea9ee1ec48e60084eabcb2d31b2b29aedf6b07f /tests/run_mode.makefile
parentautogenerate mode tests (diff)
add read only master with tests
Diffstat (limited to 'tests/run_mode.makefile')
-rw-r--r--tests/run_mode.makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run_mode.makefile b/tests/run_mode.makefile
index 96fd05f..2b48053 100644
--- a/tests/run_mode.makefile
+++ b/tests/run_mode.makefile
@@ -3,8 +3,8 @@
# License, v.2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
-TESTBENCH_BASE=mode${MODE}
-AUXFILES=../spi_master.v ../spi_slave.v
+TESTBENCH_BASE=${PREFIX}mode${MODE}
+AUXFILES=../spi_master${MASTER_TYPE}.v ../spi_slave${SLAVE_TYPE}.v
CPP_TESTBENCH=${TESTBENCH_BASE}.cpp
WAVEFILE=${TESTBENCH_BASE}.vcd
@@ -15,10 +15,10 @@ ${WAVEFILE}: obj_dir/V${TESTBENCH_BASE}
./obj_dir/V${TESTBENCH_BASE}
obj_dir/V${TESTBENCH_BASE}.mk: ${FILES}
- verilator -CFLAGS -Wall -Wno-unused -Wpedantic --trace --cc --exe ${FILES} --top ${TESTBENCH_BASE}
+ verilator -I.. -Wall -Wno-unused -Wpedantic --trace --cc --exe ${FILES} --top ${TESTBENCH_BASE}
obj_dir/V${TESTBENCH_BASE}: obj_dir/V${TESTBENCH_BASE}.mk
make -C obj_dir -f V${TESTBENCH_BASE}.mk
${TESTBENCH_BASE}.v: mode_template.v
- sed "s/@PHASE@/`echo ${MODE} | cut -c 2`/g; s/@POLARITY@/`echo ${MODE} | cut -c 1`/g; s/@MODE@/${MODE}/g" mode_template.v > ${TESTBENCH_BASE}.v
+ sed "s/@PHASE@/`echo ${MODE} | cut -c 2`/g; s/@POLARITY@/`echo ${MODE} | cut -c 1`/g; s/@MODE@/${MODE}/g" ${PREFIX}mode_template.v > ${TESTBENCH_BASE}.v
${TESTBENCH_BASE}.cpp: mode_template.cpp
- sed "s/@PHASE@/`echo ${MODE} | cut -c 2`/g; s/@POLARITY@/`echo ${MODE} | cut -c 1`/g; s/@MODE@/${MODE}/g" mode_template.cpp > ${TESTBENCH_BASE}.cpp
+ sed "s/@PHASE@/`echo ${MODE} | cut -c 2`/g; s/@POLARITY@/`echo ${MODE} | cut -c 1`/g; s/@MODE@/${MODE}/g" ${PREFIX}mode_template.cpp > ${TESTBENCH_BASE}.cpp