e200_opensource icon indicating copy to clipboard operation
e200_opensource copied to clipboard

A failure when running Verilog simulate testbench

Open JianNingZhang opened this issue 6 years ago • 3 comments

Hello, I am running Verilog simulate testbench according to Chapter 17 of the book, but a fault occurred that

$make run_test
...
cd rv32ui-p-add; echo "Test Result Summary: PASS"  +DUMPWAVE=1 +TESTCASE=MY_WORKSPACE_DIR/e200_opensource-master/vsim/run/../../riscv-tools/riscv-tests/isa/generated/rv32ui-p-add |& tee rv32ui-p-add.log; cd MY_WORKSPACE_DIR/e200_opensource-master/vsim/run; 
/bin/sh: 1: Syntax error: "&" unexpected

My environment is Ubuntu 16.04 with all essential software installed.

JianNingZhang avatar Dec 10 '18 09:12 JianNingZhang

I have the same problem in Ubuntu 18.10.

zhuzhizhan avatar Mar 31 '19 10:03 zhuzhizhan

I have the same problem in Ubuntu 18.10. brabect1's pull request use verilator to simulate testbench and it works well. Hope it helps.

JianNingZhang avatar Apr 02 '19 02:04 JianNingZhang

Add SHELL = bash to vsim/bin/run.makefile:

diff --git a/vsim/bin/run.makefile b/vsim/bin/run.makefile index 46a917e..f8fd886 100644 --- a/vsim/bin/run.makefile +++ b/vsim/bin/run.makefile @@ -1,3 +1,4 @@ +SHELL = bash RUN_DIR := ${PWD}

TESTCASE := ${RUN_DIR}/../../riscv-tools/riscv-tests/isa/generated/rv32ui-p-addi

howard0su avatar Sep 01 '19 14:09 howard0su