riscv-fesvr | RISC-V Frontend Server
kandi X-RAY | riscv-fesvr Summary
kandi X-RAY | riscv-fesvr Summary
RISC-V Frontend Server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of riscv-fesvr
riscv-fesvr Key Features
riscv-fesvr Examples and Code Snippets
Community Discussions
Trending Discussions on riscv-fesvr
QUESTION
I installed riscv,riscv-gnu-toolchain and riscv-tools and want to get riscv-sodor. To do that i followed the steps from https://github.com/librecores/riscv-sodor , succesfully installed verilator and front-end server but after that i have to build sodor emulators and on first step by doing make command i got this error
...ANSWER
Answered 2019-Sep-30 at 14:19That specific error is due to verilator
not being installed and on your $PATH
.
QUESTION
The following two code snippets differ only the value loaded into the x23
register, but the minstret
instruction counts (reported by a Verilator
simulation of the Rocket chip) differ substantially. Is this a bug, or am I
doing something wrong?
The read_csr()
function is from the RISC-V Frontend Server Library (https://github.com/riscv/riscv-fesvr/blob/master/fesvr/encoding.h), and the rest of the code [syscalls.c, crt.S, test.ld] is similar to the RISC-V benchmarks
(https://github.com/riscv/riscv-tests/tree/master/benchmarks/common).
I have checked that the compiled binaries contain the exact same instructions, except for the difference in the operands.
Dividing 0x0fffffff by 0xff, repeating 1024 times: 3260 instructions.
...ANSWER
Answered 2018-Jun-14 at 19:58The problem was resolved at https://github.com/freechipsproject/rocket-chip/issues/1495.
Servicing the debug interrupt, which is apparently used by the simulation to know whether the benchmark has finished executing, caused the differences in the instruction count. The verbose log produced by Verilator shows the debug address range (0x800 onwards) being injected at different points during the execution.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install riscv-fesvr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page