From 2eccc5148ec8103e0beb13117262fac53bdefaea Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Thu, 17 Dec 2020 13:58:07 +0000 Subject: [PATCH] Move bus memory from rtl to testbench folder --- test/test_mips_cpu_bus.sh | 4 ++-- {rtl => testbench}/mips_cpu_bus_memory.v | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename {rtl => testbench}/mips_cpu_bus_memory.v (100%) diff --git a/test/test_mips_cpu_bus.sh b/test/test_mips_cpu_bus.sh index 1b90fe7..a24afa6 100755 --- a/test/test_mips_cpu_bus.sh +++ b/test/test_mips_cpu_bus.sh @@ -25,7 +25,7 @@ then -s mips_cpu_bus_tb \ -P mips_cpu_bus_tb.INSTR_INIT_FILE=\"inputs/${DIR}/${TESTCASE}.txt\" \ -P mips_cpu_bus_tb.DATA_INIT_FILE=\"inputs/${DIR}/${TESTCASE}.data.txt\" \ - -o exec/mips_cpu_bus_tb_${TESTCASE} testbench/mips_cpu_bus_tb.v \ + -o exec/mips_cpu_bus_tb_${TESTCASE} testbench/mips_cpu_bus_tb.v testbench/mips_bus_cpu_memory.v \ ${SRC} 2> /dev/null ./exec/mips_cpu_bus_tb_${TESTCASE} &> ./inputs/${DIR}/${TESTCASE}.log.txt; # log file for debugging (contains $display) echo "$(tail -1 ./inputs/${DIR}/${TESTCASE}.log.txt)" > ./inputs/${DIR}/${TESTCASE}.out.txt; # register v0 output to compare with reference @@ -46,7 +46,7 @@ else -s mips_cpu_bus_tb \ -P mips_cpu_bus_tb.INSTR_INIT_FILE=\"inputs/${INSTR}/${TESTCASE}.txt\" \ -P mips_cpu_bus_tb.DATA_INIT_FILE=\"inputs/${INSTR}/${TESTCASE}.data.txt\" \ - -o exec/mips_cpu_bus_tb_${TESTCASE} testbench/mips_cpu_bus_tb.v \ + -o exec/mips_cpu_bus_tb_${TESTCASE} testbench/mips_cpu_bus_tb.v testbench/mips_cpu_bus_memory.v \ ${SRC} 2> /dev/null ./exec/mips_cpu_bus_tb_${TESTCASE} &> ./inputs/${INSTR}/${TESTCASE}.log.txt; # log file for debugging (contains $display) echo "$(tail -1 ./inputs/${INSTR}/${TESTCASE}.log.txt)" > ./inputs/${INSTR}/${TESTCASE}.out.txt; # register v0 output to compare with reference diff --git a/rtl/mips_cpu_bus_memory.v b/testbench/mips_cpu_bus_memory.v similarity index 100% rename from rtl/mips_cpu_bus_memory.v rename to testbench/mips_cpu_bus_memory.v