Skip to content

Commit

Permalink
Fix encoding of C.FSD instruction (#537)
Browse files Browse the repository at this point in the history
The encoding diagram for `C.FSD` was completely wrong, it seem to have
been a bad copy paste from `C.FSDSP`

Co-authored-by: Tom Aird <[email protected]>
Co-authored-by: Tariq Kurd <[email protected]>
  • Loading branch information
3 people authored Feb 17, 2025
1 parent 0c25896 commit ab9e636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/insns/wavedrom/c-sp-store-css-fp-dp-sprel.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//c-sp load and store, css format--is this correct?
//c-sp load and store, css format

[wavedrom, ,svg]
....
Expand Down
8 changes: 5 additions & 3 deletions src/insns/wavedrom/c-sp-store-css-fp-dp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
{bits: 2, name: 'op', type: 8, attr: ['2','C0=00']},
{bits: 5, name: 'rs2', type: 4, attr: ['5','src']},
{bits: 6, name: 'imm', type: 3, attr: ['6','offset[5:3|8:6]']},
{bits: 2, name: 'op', type: 8, attr: ['2', 'C0=00']},
{bits: 3, name: 'rs2\'', type: 3, attr: ['3', 'src']},
{bits: 2, name: 'uimm', type: 2, attr: ['2', 'offset[7:6]']},
{bits: 3, name: 'rs1\'', type: 3, attr: ['3', 'base']},
{bits: 3, name: 'uimm', types:3, attr: ['3', 'offset[5:3]']},
{bits: 3, name: 'funct3', type: 8, attr: ['3', 'int C.FSD=101', 'cap rv32: C.FSD=101']},
], config: {bits: 16}}
....

0 comments on commit ab9e636

Please sign in to comment.