Closed flaviens closed 1 year ago
Hi,
Yes, you will have to enable supervisor. Here is an instance of supervisor Csr config : https://github.com/SpinalHDL/VexRiscv/blob/master/src/main/scala/vexriscv/plugin/CsrPlugin.scala#L100
Cool thanks! It worked!
Another quick question: what is pipelineCsrRead
intended to do? I see that it is false by default everywhere.
Cool ^^ I would say, pipelineCsrRead is deprecated. It was implementing CSRRW instruction in two cycles in order to get better timings.
Thanks!
Yet another question: I noticed that accesses to hpmcountern
, mhpmcountern
and mhpmeventn
are triggering exceptions, but I cannot see where to change the config to get them.
The rv priv spec 1.10 says:
All counters should be implemented, but a legal implementation is to hard-wire both the counter and its corresponding event selector to 0.
Is this another problem of my config?
About hpm, basicaly there were not implemented at all, until the recent commit : https://github.com/SpinalHDL/VexRiscv/commit/051080e060ecf3feb84adf46e7e3759c281ebb93
Did you had it in when you tested it ?
Great! I'm testing on master. I cherry-picked the commit and I confirm that https://github.com/SpinalHDL/VexRiscv/commit/051080e060ecf3feb84adf46e7e3759c281ebb93 looks like it makes it compliant. Thanks!
Ahhh, master is quite a bit behind some recent fixes ^^ normaly, you can merge dev into master, it should be fine, you only need to preserve the build.sbt file, i think
Hi!
I'm trying to access
medeleg
andmideleg
but I get exceptions despite trying to authorize them in the configuration. Should I do anything else in the configuration?Configuration
Example snippet
This snippet behaves unexpectedly by throwing an exception when reading
medeleg
.Thanks!