Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

A failure when running Verilog simulate testbench #17

Open
JianNingZhang opened this issue Dec 10, 2018 · 3 comments
Open

A failure when running Verilog simulate testbench #17

JianNingZhang opened this issue Dec 10, 2018 · 3 comments

Comments

@JianNingZhang
Copy link

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
Copy link

I have the same problem in Ubuntu 18.10.

@JianNingZhang
Copy link
Author

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants