Compare riscv-unified-db schema for CSRs to riscv-config #197
Replies: 3 comments 1 reply
|
I don't think I've ever seen the schema for CSRs - where is it?
…On Fri, Oct 4, 2024 at 8:08 AM dhower-qc ***@***.***> wrote:
Assigned #66
<#66> to
@allenjbaum <https://github.com/allenjbaum>.
—
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJVEQ3MCF26CZ6F6BQLZZ2VQPAVCNFSM6AAAAABPI2MJSSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGUZDANZTGMZTONI>
.
You are receiving this because you were assigned.Message ID:
<riscv-software-src/riscv-unified-db/issue/66/issue_event/14520733375@
github.com>
|
|
The enforced schema is here: https://github.com/riscv-software-src/riscv-unified-db/blob/main/schemas/csr_schema.json Examples are under arch/csr: https://github.com/riscv-software-src/riscv-unified-db/tree/main/arch/csr |
|
If you're looking to compare the two formats, the key references are:
The two projects have different goals, which is why their schemas are not identical:
Because of that, there isn't necessarily a one-to-one mapping between the two schemas. UDB is modeling the specification itself, whereas RISCV-Config is modeling a concrete processor configuration against that specification. If the goal of this discussion is interoperability, it would be useful to identify:
That kind of comparison could help determine whether compatibility or conversion tooling would be valuable without forcing either project to adopt the other's schema wholesale. If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
See https://riscv-config.readthedocs.io/en/latest/yaml-specs.html#csr-template
All reactions