Comments (5)
Hmm, this might be a problem with Questa support. At lowRISC, we don't currently have Questa access so it's rather hard for us to help.
Can you reproduce the problem with another simulator (Xcelium / VCS / Verilator) as well? If not, I think you might have to do a bit more digging to figure out what's coming unstuck.
from ibex.
Unfortunately, I can't run using another simulator at the time.
I have pinpointed the issue location to this code section.
vendor/google_riscv-dv/src/riscv_asm_program_gen.sv
if (riscv_instr_pkg::support_pmp) begin
str = {indent, "j main"};
instr_stream.push_back(str);
end
If I comment it out the test passes.
Any ideas here about what does this code section do or what can be a possible cause here?
from ibex.
Another follow-up is that the traces between ISS and RTL are erroring out at only the last instruction where on ISS it is giving the instruction "wfi" while on the RTL side, it is not giving anything the last instruction is the one before it.
trace_core | rtl_trace |
---|---|
8000353c 58dd c.li x17,-9 x17=0xfffffff7 | 8000353c,c.li,a7:fffffff7,,58dd,,"c.li x17,-9","a7,-9" |
8000353e 0199c2b3 xor x5,x19,x25 x19:0x5dba8bcc x25:0x0000000e x5=0x5dba8bc2 | 8000353e,xor,t0:5dba8bc2,,0199c2b3,,"xor x5,x19,x25","t0,s3,s9" |
80003542 10500073 wfi | --- |
from ibex.
The code you've pinpointed is part of riscv-dv
: a random instruction generator that we use as a dependency. Looking at it briefly, this seems to tell the generated binary to branch to "main" at the start. We probably won't do anything interesting if that's commented out :-)
Your note about the traces makes sense. I suspect that this means the "there was a WFI instruction" message isn't getting to the DV code properly. @GregAC knows lots more about this area. Greg: any ideas?
from ibex.
All tests mentioned don't generate the "WFI" instructions in the rtl_trace.
from ibex.
Related Issues (20)
- Cosim verification seed and randomization dependency. HOT 1
- edn_pkg does not exist HOT 1
- Upgrade Verilator dependency
- docs/readthedocs.org:ibex-core CI step keeps failing HOT 1
- Upgrade verilator HOT 1
- Endless illegal instructions when running elf executables HOT 5
- ERROR: Conflicting requirements:o Ibex HOT 1
- Replacement of Xcelium HOT 4
- Error in Simple system VCS+Verdi simulation, Failed to find the Verdi database HOT 3
- Security vulnerability: Ibex leaks data when multiplication is aborted HOT 2
- Floating-point support (software) HOT 1
- File not found HOT 1
- File not found
- Installation Issue: FuseSoC build doesn't work HOT 2
- Exception occuring when calling cryptographic function
- Compilation issue in ibex bring-up
- Is it possible to support Verilator as the RTL simulator for cosim?
- x0 is not zero HOT 1
- Trap Return with activated Branch Prediction results in an unintended instruction retire
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibex.