riscv-software-src / riscv-unified-db

Machine-readable database of the RISC-V specification, and tools to generate various views
Other
6 stars 8 forks source link

Compare riscv-unified-db schema for CSRs to riscv-config #66

Open james-ball-qualcomm opened 2 weeks ago

james-ball-qualcomm commented 2 weeks ago

See https://riscv-config.readthedocs.io/en/latest/yaml-specs.html#csr-template

allenjbaum commented 1 week ago

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 https://github.com/riscv-software-src/riscv-unified-db/issues/66 to @allenjbaum https://github.com/allenjbaum.

— Reply to this email directly, view it on GitHub https://github.com/riscv-software-src/riscv-unified-db/issues/66#event-14520733375, 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>

dhower-qc commented 1 week ago

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