Jim Wilson
unread,Feb 27, 2018, 10:28:49 AM2/27/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Alex Bradbury, Paulo Matos, Bruce Hoult, RISC-V ISA Dev
On Tue, Feb 27, 2018 at 6:48 AM, Alex Bradbury <
a...@asbradbury.org> wrote:
> On 27 February 2018 at 14:32, 'Paulo Matos' via RISC-V ISA Dev
> <
isa...@groups.riscv.org> wrote:
>> Yes, but the question persists. There's a different opcode but ISA also
>> shows bit 30 being different. What differentiates between SRAI and SRLI?
>> Is it different opcode or bit 30 being set? It seems to be both. My
>> question is: why do we need a different opcode _and_ bit 30 set?
I assume you are looking at page 14, and reading it a bit too
literally. The func3 column lists SRLI and SRAI on separate lines,
but this is not an encoding, it is just a description of the
instructions. The instruction name has to appear somewhere on the
line, and they just put it in the func3 column instead of having a
separate possibly redundant column for the instruction name.
For the encoding, see Chapter 19, page 104, as Alex mentioned, and it
shows that SRLI and SRAI in the func 3 column have the same encoding.
Jim