SI-RISCV / e200_opensource

Deprecated, please go to next generation Ultra-Low Power RISC-V Core https://github.com/riscv-mcu/e203_hbirdv2
https://github.com/riscv-mcu/e203_hbirdv2
Apache License 2.0
2.6k stars 1k forks source link

A failure when running Verilog simulate testbench #17

Open JianNingZhang opened 5 years ago

JianNingZhang commented 5 years ago

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.

zhuzhizhan commented 5 years ago

I have the same problem in Ubuntu 18.10.

JianNingZhang commented 5 years ago

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.

howard0su commented 5 years ago

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