You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works fine, but I was thinking it would be really cool if I can also show the Sail code and wavedrom diagram for the decoded instruction. That information is in the JSON docs output, but I'm not sure how to figure out which clause matched.
I guess I would need some generated function like encdec_match_index which would return an integer corresponding to the clause that matched which can be used to look up the clause in the JSON file? Does that seem like a good idea?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a simple disassembler based on the RISC-V model:
Works fine, but I was thinking it would be really cool if I can also show the Sail code and wavedrom diagram for the decoded instruction. That information is in the JSON docs output, but I'm not sure how to figure out which clause matched.
I guess I would need some generated function like
encdec_match_index
which would return an integer corresponding to the clause that matched which can be used to look up the clause in the JSON file? Does that seem like a good idea?Beta Was this translation helpful? Give feedback.
All reactions