Why does the RISC-V ISA documentation *NOT* show encoding?

71 views
Skip to first unread message

Mark Manning

unread,
Jan 25, 2022, 10:04:11 AM1/25/22
to RISC-V ISA Dev
I will be writing a Forth compiler for RISC-V.  Its kind of a hobby of mine but a useful one, it allows me to develop quality software and never have to go anywhere near any GNU development tools (horrible tools ick)

Stage one is to write a RISC-V assembler (in forth using an already existing forth compiler of mine).   The instruction set is so tiny I should be able to do the entire assembler in a few short hours but nope, we have a major problem here with documentation from the RISC-V consortium.

Why is there absolutely no documentation giving the opcode encodings for ***ANY*** opcode?  Yes.. the ISA documentation shows the opcode format for each opcode, it does NOT give the encoding... WNHY?????????

One clean table stating the opcode mnemonic its opcode type, its bit-field format, the binary content of each bit-field and a description of what said opcode does.  Why is this so difficult to produce?



Rishiyur Nikhil

unread,
Jan 25, 2022, 10:13:01 AM1/25/22
to Mark Manning, RISC-V ISA Dev
>    Yes.. the ISA documentation shows the opcode format for each opcode, it does NOT give the encoding.

Not sure what you mean.

Chapter 25 (pages 129-136 of "Volume I: RISC-V Unprivileged ISA
V20190608-Base-Ratified" contains tables showing the bit-encondings of
the standard RV32I and RV64I ISAs, and standard extensions M, A, F, D.

Section 16.8 provides full bit-encondings of the C extension.

Or are you referring to some other issue?

Nikhil

Mark Manning

unread,
Jan 25, 2022, 10:17:37 AM1/25/22
to RISC-V ISA Dev, nikhil, RISC-V ISA Dev, Mark Manning
aha i been up and down that docuement getting more and more frustrated by the minute looking for that lol
however, it would be nice if that table showd then opcode type specifer such as R, I, B, J, S etc

ty for the pointer :/

Neel Gala

unread,
Jan 25, 2022, 10:52:43 AM1/25/22
to Mark Manning, RISC-V ISA Dev, nikhil
The riscv-opcodes repo : https://github.com/riscv/riscv-opcodes is also where the encodings could be found (for the ratified and unratified extensions). They are in a more parse-able format. Might be useful.

Connect with us!

Save the Date! May 4-6, 2022 | https://int-bio.com/airborne-conference/

This e-mail and any files transmitted with it are the property of International Biomedical, Ltd. and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately.  Any other use, retention, dissemination,  forwarding, printing, or copying of this e-mail is strictly prohibited.

--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/a21933c6-01d1-4f76-862f-cc2661d69635n%40groups.riscv.org.


--
Neel Gala

Reply all
Reply to author
Forward
0 new messages