RISC-V on Tejas

58 views
Skip to first unread message

Hrishikesh Nair

unread,
Aug 3, 2022, 3:40:48 AM8/3/22
to Tejas
Hi, 
I've been trying to set up RISC-V on Tejas 1.4.1 and have been facing difficulty with the spikeTrace.patch.
Has the patch been updated for this version of Tejas?
Thank you
Tejas.png

Shubhankar Singh

unread,
Aug 4, 2022, 12:15:34 AM8/4/22
to teja...@googlegroups.com
Hi,

Please follow the following instructions:

1) Find the complete riscv-tools here: https://github.com/riscv/riscv-tools
Download and build all the tools.

2)
a) Download riscv-isa-sim from here: https://github.com/riscv/riscv-isa-sim/tree/d48f107dba6a96fb827cb47fdf290261feadeb35
b) Extract and rename the folder to riscv-isa-sim
c) Copy the patch spikeTrace.patch to the folder containing riscv-isa-sim
d) cd riscv-tools: Apply patch to riscv-isa-sim using: patch -p0 -R < spikeTrace.patch

3) Set the environment using the commands in the file setEnv

4) Building: ./build.sh

5) Cross-compile a C program using riscv64-unkonown-elf-gcc

6) Run: ./runSpike <benchmark> <args>
In the file runSpike.sh you can set the -t option to take the traces and -N<n> to generate a trace of n million instructions

Note: The spike proxy-kernel is only configured to take single-core traces.

--
You received this message because you are subscribed to the Google Groups "Tejas" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tejas_sim+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tejas_sim/e2c33b18-29da-4140-b88b-a3a46f829fdan%40googlegroups.com.

Hrishikesh Nair

unread,
Aug 4, 2022, 4:51:33 AM8/4/22
to Tejas
Hi, 

I followed the same steps and attached my error after following step 2.d) below.
Could the patch be outdated?

Thanks


T2.png
T1.png

Shubhankar Singh

unread,
Aug 4, 2022, 7:15:42 AM8/4/22
to teja...@googlegroups.com
Hi,

Download the code of the given version. The patch will work on it.

Regards,
Shubhankar

Reply all
Reply to author
Forward
0 new messages