riscv / riscv-opcodes

RISC-V Opcodes
https://riscv.org/
BSD 3-Clause "New" or "Revised" License
681 stars 298 forks source link

Change constant.py to constant.json #164

Open sequencer opened 1 year ago

sequencer commented 1 year ago

The background is in the RocketChip, we need metadatas for instruction decoding, rather than instruction name and bitpat only. For downstreams like us, which need to parse instruction metadata from riscv-opcodes. I think it might be good to change constant.py to parse the constant.json(or some structural text file) to make other projects being able to directly use these constant to generate metadatas.

Shehrozkashif commented 1 month ago

interested to solve this issue assign it to me please