-
Notifications
You must be signed in to change notification settings - Fork 7
Not able to run RV32E Variant #21
Comments
Could you please provide the elf file that is failing? |
Hi @jstraus59 , |
By adding --trace to the riscvOVPsim command line I see the following:
The problem is that the toolchain is generating code using the ilp32e ABI, which is not supported by riscvOVPsim. This ABI has not been standardized yet (The gcc RISC-V Oprions documentation states: There is also the ‘ilp32e’ ABI that can only be used with the ‘rv32e’ architecture. This ABI is not well specified at present, and is subject to change.) I have confirmed it is possible to run this example using the full OVPsim simulator with the following command line:
This works because the riscv32Newlib semihost selected here intercepts the _fstat function call, rather than supporting the Risc-V Proxy Kernel ecall convention. Using OVPsim requires registering on the OVPsim website, obtaining a license for OVPsim (free for educational or evaluation purposes) and downloading and installing the OVPsim package. |
Hi @jstraus59 , |
Does the Ibex dv setup use C programs or just assembly? If just assembly then the ABI is not an issue. If that is the case then you should be able to use riscvOVPsim. |
ibex dv setup is using a dv instruction generator which generates assembly but in our thesis we are using c programs which will compile to assembly and then later the .bin is putting into ibex core and OVPsim. Does the OVPsim simualtor you mentioned for the fix "iss.exe" is same as the one in the repository here, because I am not able to find iss.exe in the OVPsim slone here. |
Not sure I understand your question. riscvOVPsim is a free, unlicensed standalone RiscV-only ISS - but it does not include the iss.exe program I referenced. iss.exe is part of the OVPsim product from Imperas, which requires registration and a license, and includes many capabilities and features not available in the free riscvOVPsim. Imperas has a university program to make their full tools available at no charge for research purposes. |
Thank you for the reply @jstraus59 Do you mean the iss.exe is a part of OVPsim or it it part of separate simulaotr of Imperas which is named as ISS(https://www.imperas.com/iss-imperas-instruction-set-simulator) or is it OVPsim plus? |
Hi,
I am not able to run RV32E variant of my sample test case with OVPSim simulator.
I tried building the riscv elf tool chain with the following command:
Then creating the executable file with the command :
riscv32-unknown-elf-gcc -o hello_world hello_world.c
FInally when running the OVPsim with the sample script given as below:
The error is as below:
Could anyone please help me on this
The text was updated successfully, but these errors were encountered: