aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run_mode.makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2022-10-22 18:34:54 -0400
committerGravatar Peter McGoron 2022-10-22 18:34:54 -0400
commit758daa5996639447be8a8eeeaec80eb7c3032f98 (patch)
tree652f4269e26c8a624b9bd52519b12d789c9237c8 /tests/run_mode.makefile
parentv0.1 (diff)
rewrite entire test harness
Diffstat (limited to 'tests/run_mode.makefile')
-rw-r--r--tests/run_mode.makefile24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/run_mode.makefile b/tests/run_mode.makefile
deleted file mode 100644
index 2b48053..0000000
--- a/tests/run_mode.makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# (c) Peter McGoron 2022
-# This Source Code Form is subject to the terms of the Mozilla Public
-# 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=${PREFIX}mode${MODE}
-AUXFILES=../spi_master${MASTER_TYPE}.v ../spi_slave${SLAVE_TYPE}.v
-
-CPP_TESTBENCH=${TESTBENCH_BASE}.cpp
-WAVEFILE=${TESTBENCH_BASE}.vcd
-
-FILES=${TESTBENCH_BASE}.v ${AUXFILES} ${CPP_TESTBENCH}
-
-${WAVEFILE}: obj_dir/V${TESTBENCH_BASE}
- ./obj_dir/V${TESTBENCH_BASE}
-
-obj_dir/V${TESTBENCH_BASE}.mk: ${FILES}
- 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" ${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" ${PREFIX}mode_template.cpp > ${TESTBENCH_BASE}.cpp