Skip to content
David Metz edited this page Apr 20, 2020 · 4 revisions

export SPEC_DIR=~/git/spec2006v1.2 cd $SPEC_DIR/

own everything in spec folder - lock symbols before

chown -R $USER . chmod -R 777 . ./install.sh cd ~/git/Speckle/ source ~/git/chipyard/env.sh ./gen_binaries.sh --compile --copy

segmentation fault on hmmer/h264ref - in qemu

seems to work on fpga

changed compiler options in riscv.cfg

fixed h264ref- hmmer still broken

running gcc on pk:

scp gcc cccp.in [email protected]:~/

on arm linux:

./fesvr-zynq pk -s gcc cccp.in -o cccp.s

running (some of) SPEC using the pk

copy to arm linux

cd /git/Speckle scp -r riscv-spec-test/ [email protected]:/

run in background

cd ~/riscv-spec-test

run in background and redirect output to riscv-spec-test/nohup.out - https://unix.stackexchange.com/questions/3886/difference-between-nohup-disown-and

nohup ./run.sh &

to quit: top -> kill ppid -> kill pid

#flash and run:

#program fpga from arm linux:
cat rocketchip_wrapper.bit >/dev/xdevcfg
# if programming was successful this should be 1
cat /sys/class/xdevcfg/xdevcfg/device/prog_done
# test with simple program
./fesvr-zynq pk hello
# go to spec folder
cd ~/riscv-spec-test
# remove old output
rm -rf output/
# run in background and redirect output to riscv-spec-test/nohup.out - https://unix.stackexchange.com/questions/3886/difference-between-nohup-disown-and
nohup ./run.sh &
tail -f nohup.out

update run.sh

scp -r riscv-spec-test/run.sh [email protected]:~/riscv-spec-test/run.sh

copy back results

scp -r [email protected]:~/riscv-spec-test/output/ ./output-small/

pk libquantum: Assertion failed: L1DCache failed too many SCs in a row at dcache.scala:669 assert(debug_sc_fail_cnt < 100.U, "L1DCache failed too many SCs in a row")

approximate runtimes: (ls --full-time -tr) - under fpga risc-v linux

-rw-r--r-- 1 root root   171 1970-01-01 00:00:48.216000000 +0000 perlbench.0.out
-rw-r--r-- 1 root root   279 1970-01-01 00:00:48.632000000 +0000 perlbench.1.out
-rw-r--r-- 1 root root  4346 1970-01-01 00:00:56.764000000 +0000 perlbench.2.out
-rw-r--r-- 1 root root 66927 1970-01-01 00:01:07.364000000 +0000 perlbench.3.out
-rw-r--r-- 1 root root   117 1970-01-01 00:01:07.568000000 +0000 perlbench.4.out
-rw-r--r-- 1 root root   568 1970-01-01 00:01:07.800000000 +0000 perlbench.5.out
-rw-r--r-- 1 root root   201 1970-01-01 00:01:08.156000000 +0000 perlbench.6.out
-rw-r--r-- 1 root root  6423 1970-01-01 00:02:22.820000000 +0000 perlbench.7.out
-rw-r--r-- 1 root root   597 1970-01-01 00:06:02.060000000 +0000 bzip2.0.out
-rw-r--r-- 1 root root   672 1970-01-01 00:12:53.260000000 +0000 bzip2.1.out
-rw-r--r-- 1 root root     0 1970-01-01 00:12:53.400000000 +0000 gcc.0.out
-rw-r--r-- 1 root root   541 1970-01-01 00:19:00.496000000 +0000 mcf.0.out
-rw-r--r-- 1 root root   308 1970-01-01 00:19:12.312000000 +0000 gobmk.0.out
-rw-r--r-- 1 root root  1456 1970-01-01 00:21:01.536000000 +0000 gobmk.1.out
-rw-r--r-- 1 root root    40 1970-01-01 00:21:05.592000000 +0000 gobmk.2.out
-rw-r--r-- 1 root root  1049 1970-01-01 00:29:00.704000000 +0000 gobmk.3.out
-rw-r--r-- 1 root root    24 1970-01-01 00:29:05.516000000 +0000 gobmk.4.out
-rw-r--r-- 1 root root   144 1970-01-01 00:29:29.712000000 +0000 gobmk.5.out
-rw-r--r-- 1 root root   132 1970-01-01 00:50:27.924000000 +0000 gobmk.6.out
-rw-r--r-- 1 root root   622 1970-01-01 00:57:53.624000000 +0000 hmmer.0.out
-rw-r--r-- 1 root root  3839 1970-01-01 01:05:40.384000000 +0000 sjeng.0.out
-rw-r--r-- 1 root root   175 1970-01-01 01:05:46.432000000 +0000 libquantum.0.out
-rw-r--r-- 1 root root  4619 1970-01-01 01:36:12.284000000 +0000 h264ref.0.out
-rw-r--r-- 1 root root  1472 1970-01-01 01:37:17.496000000 +0000 omnetpp.0.out
-rw-r--r-- 1 root root   779 1970-01-01 01:50:36.668000000 +0000 astar.0.out
-rw-r--r-- 1 root root 34699 1970-01-01 01:50:48.704000000 +0000 Xalan.0.out