-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JSON] slli
has incorrect information
#18
Comments
Hiii @ThinkOpenly can i work on this? |
@vishisht-dubey: @snapdgn posted a comment in Slack that he might have an idea about this. If you are interested, could you ask on #team-sailing-downstream Slack channel on the RVI Slack workspace? |
Hiii @ThinkOpenly can i work on this?
yeah sure, thanks |
I believe, the core issue lies with the way the Taking an example of the "Shift Immediate", it is represented in the
which is then parsed and stored in the
And while printing the json, they get randomly associated with either I think we need some sort of extra marker in the |
Hmm. Thanks for explaining the problem so clearly. So, we have overloaded One thought is to determine the types of the parameters to the encdec mapping's left-side, then look for whichever one is an enum and use that as the actual identifier of the Perhaps we need to adjust the encodings table to allow for some indirection. Instead of each value in the table being a list, maybe it is instead a list of lists. (Brainstorming here.) In the example above,
"normal" instructions could use a null string or the primary key as the secondary key:
Although, when we are emitting JSON, we have the primary key and the mnemonic, but we don't get the full set of mnemonics until after we're done parsing. Maybe we need to explode the mnemonics earlier? The mnemonic is the ultimate unique key. |
The second option appears quite reasonable to me. I'll go ahead and experiment on it. |
The RISC-V Instruction Set Manual Volume I: Unprivileged ISA Document Version 20191213 shows SLLI opcode fields as:
Yet, the JSON produced today has:
Note that the first field should be
0b000000
, and the 4th field should be0b001
.The text was updated successfully, but these errors were encountered: