From b39e656f9a3d8a94fcdde3edd884572e605159b6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 7 Apr 2021 12:49:55 +0100 Subject: [PATCH] add verilator cocotb runner --- ls180/pre_pnr/run_verilator_wb_ls180.sh | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 ls180/pre_pnr/run_verilator_wb_ls180.sh diff --git a/ls180/pre_pnr/run_verilator_wb_ls180.sh b/ls180/pre_pnr/run_verilator_wb_ls180.sh new file mode 100755 index 0000000..c5d882b --- /dev/null +++ b/ls180/pre_pnr/run_verilator_wb_ls180.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# create dummy memory files +yes 0 | head -128 > mem_1.init +yes 0 | head -32 > mem_1.init +touch mem.init mem_1.init mem_2.init mem_3.init mem_4.init + +# Only run test in reset state as running CPU takes too much time to simulate +make \ + SIM=verilator \ + TOPLEVEL=ls180 \ + COCOTB_RESULTS_FILE=results_iverilog_ls180_wb.xml \ + COCOTB_HDL_TIMEUNIT=100ps \ + TESTCASE="wishbone_basic" \ + VERILATOR_TRACE="1" \ + NOTUSEDCOMPILE_ARGS="--unroll-count 256 \ + --output-split 5000 \ + --output-split-cfuncs 500 \ + --output-split-ctrace 500 \ + -Wno-fatal \ + -Wno-BLKANDNBLK \ + -Wno-WIDTH" \ + MODULE="testwb" \ + SIM_BUILD=sim_build_iverilator_wb_ls180 + + + -- 2.30.2