Comments (3)
divide by 0 is legal in RISC-V :D
So let's say you fetch a illegal instruction => exception.
CsrPlugin_exceptionPortCtrl is containing all the logic which on each stage will aggregate new exceptions requests, and pipeline the exception downward.
CsrPlugin_exceptionPortCtrl_exceptionContext_code is the signal which is at the end of the pipeline and specify the nature of the exception (if one happened, which is specify by the last element of exceptionValids)
from vexriscv.
divide by 0 is legal in RISC-V :D So let's say you fetch a illegal instruction => exception.
CsrPlugin_exceptionPortCtrl is containing all the logic which on each stage will aggregate new exceptions requests, and pipeline the exception downward. CsrPlugin_exceptionPortCtrl_exceptionContext_code is the signal which is at the end of the pipeline and specify the nature of the exception (if one happened, which is specify by the last element of exceptionValids)
So If I want to detect all the exception event, can I use "CsrPlugin_exceptionPortCtrl_exceptionContext_code" as a detector like
if code=="xxx" then event==exception? @Dolu1990
from vexriscv.
No you can't because the value the code is undefined when there is no exception.
Instead you can use
if(CsrPlugin_hadException)then event = CsrPlugin_exceptionPortCtrl_exceptionContext_code
from vexriscv.
Related Issues (20)
- Instructions to save/restore register to stack is taking 2 clock each HOT 12
- DE0-Nano Board with VexRiscV: IO and Fit Design Issues Including Specific Command Used HOT 3
- Adding VexRiscV as a dependency HOT 2
- Data Stream in/out SoC <-> FPGA HOT 6
- FPU plugin to GenFull.scala HOT 3
- EU Funding HOT 3
- Compile C code and run bare metal cycle accurate simulation HOT 3
- Debug instructions executed twice HOT 5
- Exit cycle accurate simulation HOT 1
- Problems with adding FPU in Briey HOT 5
- Problem about how to compile the software that can be used in Vexriscv with FPU HOT 10
- How to use printf function? HOT 10
- About the Csr registers in Vexriscv HOT 2
- How to only modify certain one reset kind of specific Reg in vex core. HOT 1
- How to only modify certain one reset kind of specific Reg in vex core.
- AxiCrossBar with Standard Axi4 Interface in Briey HOT 15
- VexRiscV shift bus fail HOT 3
- rdcycle and rdinstret instructions not working HOT 2
- default bus doesn't expose write mask
- Help for custom instruction HOT 4
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 vexriscv.