Comments (5)
Hi,
Personnaly, i reversed engineered them from various software drivers out there in the wild XD
Bit a paine in the ass.
They are in the SpinalHDL repository
from vexriscv.
https://github.com/SpinalHDL/SpinalHDL/blob/645e03f21326f9baffe49ac4c59cff2ea6e86cd3/lib/src/main/scala/spinal/lib/misc/plic/PlicMapper.scala#L37
https://github.com/SpinalHDL/SpinalHDL/blob/645e03f21326f9baffe49ac4c59cff2ea6e86cd3/lib/src/main/scala/spinal/lib/misc/Clint.scala#L49
from vexriscv.
https://github.com/SpinalHDL/SaxonSoc/blob/dev-0.3/software/standalone/driver/plic.h
https://github.com/SpinalHDL/SaxonSoc/blob/dev-0.3/software/standalone/driver/clint.h
from vexriscv.
Hi,
Are we ablle to set the MTIME FREQ, in the CLINT?
From looking at the Scala, it seems the MTIMER counter increments every clock cycle. Would it be possible to define in the VexRiscv Scala file that the internal timer frequency is 100 KHz? Therefore, the MTIMER counter would only increment every CLK_FREQ / MTIME_FREQ
clock cycles.
from vexriscv.
Hi,
would need to modify the clint implemention, would not be complicated
from vexriscv.
Related Issues (20)
- RiscV Counters HOT 1
- compiling verilog code in verilator by Verilator 4.216 2021-12-05 rev v4.216 HOT 1
- VexRiscvAxi4LinuxPlicClint not respecting the AXI protocol HOT 20
- Unsupported compressed instruction on VexRiscvAxi4LinuxPlicClint.scala HOT 3
- sbt fail: [error] error while loading <root>, Error accessing... scalactic_2.11-3.2.5.jar HOT 4
- Read speed: dcache width impact 32bit vs 64bit HOT 10
- MAC custom instruction implementation HOT 1
- Interface BSCAN2 with VexRiscv's JTAG HOT 3
- Assertion when tracing the elaboration issue HOT 5
- Adding FPU to AHBLite3 config file HOT 8
- Scratchpad memory with cached IBUS and DBUS? HOT 15
- Combinatorial loop with AhbLite3Decoder HOT 1
- Transfer data double times HOT 1
- Murax XIP compile issue HOT 11
- EmbeddedRiscvJtag synthesis issue HOT 1
- CPU exception signal HOT 3
- Regarding the result of dhrystone with TCM HOT 6
- debug HOT 1
- Fetch dosen't performed correctly in the simulation of Murax SOC.(+Custom instructions are executed in unexpected time.) HOT 1
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.