Processor Interface: Testrig - Fromhost Imem - Req - Addr Imem - Req - Val Testrig - Tohost CLK Reset
Processor Interface: Testrig - Fromhost Imem - Req - Addr Imem - Req - Val Testrig - Tohost CLK Reset
riscvTestHarness
Cpu
testrig_fromhost
imem.req_addr
imem.req_val
testrig_tohost
clk
reset
Instruction
Memory
Data
Memory
imem.resp_data
dmem.req_rw
dmem.req_addr
dmem.req_wdata
dmem.req_val
dmem.resp_data clk
clk
Test Harness
There are two test harnesses: one for the Chisel-generated emulator, and another
for the Chiselgenerated Verilog. You should design your processor such that it passes the
emulator testbench
_rst. Then, when you are ready to synthesize your design, you should run the Verilog
testbench to
ensure that there are no bugs in the Chisel verilog generator.
We are providing a test harness to connect to your processor model. The test
harness is identical
to the one described in Tutorial 4: Simulating Verilog RTL using Synopsys VCS and
Tutorial 5:
RTL-to-Gates Synthesis using Synopsys Design Compiler. The test harness loads a
RISC-V binary
into the memory. The provided make_le can load both assembly tests as well as C
benchmarks
to run on your processor. The test harness will clock the simulation until it sees a
non-zero value
coming back on the testrig tohost register, signifying that your processor has
completed a test
program. The testr