Skip to content

Commit 378f55b

Browse files
committed
Modify yield cycle & Check mill result
1 parent 2b16095 commit 378f55b

File tree

7 files changed

+4662
-4654
lines changed

7 files changed

+4662
-4654
lines changed
0 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.

bin/custom-output/interrupt-test/amtest-interrupt-test.txt

Lines changed: 2327 additions & 2328 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.

bin/custom-output/yield-test/amtest-yield-test.txt

Lines changed: 2317 additions & 2318 deletions
Large diffs are not rendered by default.

build.sh

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION="1.18"
3+
VERSION="1.19"
44

55
help() {
66
echo "Version v"$VERSION
@@ -54,7 +54,7 @@ compile_dramsim3() {
5454
cmake -D COSIM=1 ..
5555
make
5656
if [ $? -ne 0 ]; then
57-
echo "Failed to build dramsim3!!!"
57+
echo "Failed to compile dramsim3!!!"
5858
exit 1
5959
fi
6060
cd $OSCPU_PATH
@@ -67,7 +67,7 @@ compile_nemu() {
6767
make riscv64-ysyx-ref_defconfig
6868
make
6969
if [ $? -ne 0 ]; then
70-
echo "Failed to build nemu!!!"
70+
echo "Failed to compile nemu!!!"
7171
exit 1
7272
fi
7373
cd $OSCPU_PATH
@@ -84,6 +84,10 @@ compile_chisel() {
8484
cd $PROJECT_PATH
8585
mkdir vsrc 1>/dev/null 2>&1
8686
mill -i oscpu.runMain TopMain -td vsrc
87+
if [ $? -ne 0 ]; then
88+
echo "Failed to compile chisel!!!"
89+
exit 1
90+
fi
8791
cd $OSCPU_PATH
8892
fi
8993
}
@@ -92,7 +96,7 @@ compile_difftest() {
9296
cd $DIFFTEST_HOME
9397
make DESIGN_DIR=$PROJECT_PATH $DIFFTEST_PARAM
9498
if [ $? -ne 0 ]; then
95-
echo "Failed to build difftest!!!"
99+
echo "Failed to compile difftest!!!"
96100
exit 1
97101
fi
98102
cd $OSCPU_PATH
@@ -260,11 +264,17 @@ fi
260264
# Check waveform
261265
if [[ "$CHECK_WAVE" == "true" ]]; then
262266
cd $BUILD_PATH
263-
gtkwave `ls -t | grep .vcd | head -n 1`
264-
if [ $? -ne 0 ]; then
265-
echo "Failed to run gtkwave!!!"
266-
exit 1
267+
WAVE_FILE=`ls -t | grep .vcd | head -n 1`
268+
if [ -n "$WAVE_FILE" ]; then
269+
gtkwave $WAVE_FILE
270+
if [ $? -ne 0 ]; then
271+
echo "Failed to run gtkwave!!!"
272+
exit 1
273+
fi
274+
else
275+
echo "*.vcd file does not exist!!!"
267276
fi
277+
268278
cd $OSCPU_PATH
269279
fi
270280

0 commit comments

Comments
 (0)