-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Basic decoder Closes #10 Decoder something like skeleton. I added opcodes from basic commands: RV32I and RV64I acording to pages 130-131 (148-149) of [RISCV ISA specification](https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf)
- Loading branch information
1 parent
febc047
commit 13c0569
Showing
9 changed files
with
1,791 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include "operations-matrix.hpp" | ||
#include <cstdint> | ||
|
||
namespace besm::dec { | ||
|
||
// @todo #10:90m Generate this file with matrix instead of copypaste from the | ||
// current raw generator. | ||
|
||
constexpr static uint8_t OPCODE2FORMAT[128] = { | ||
ILLEGAL, ILLEGAL, ILLEGAL, I, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, I, | ||
ILLEGAL, ILLEGAL, ILLEGAL, I, ILLEGAL, ILLEGAL, ILLEGAL, U, | ||
ILLEGAL, ILLEGAL, ILLEGAL, I, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, S, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, R, ILLEGAL, ILLEGAL, ILLEGAL, U, | ||
ILLEGAL, ILLEGAL, ILLEGAL, R, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, B, ILLEGAL, ILLEGAL, ILLEGAL, I, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, J, | ||
ILLEGAL, ILLEGAL, ILLEGAL, I, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, | ||
ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL}; | ||
|
||
} // namespace besm::dec |
Oops, something went wrong.
13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
10-a8e04775
discovered ininclude/besm-666/autogen/opcodes-to-format.hpp
) and submitted as #37. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
10-bbd9bfd5
discovered ininclude/besm-666/autogen/operations-matrix.hpp
) and submitted as #38. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
1ILLEGAL-994f1784
discovered ininclude/besm-666/decoder/decoder.hpp
) and submitted as #39. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
1ILLEGAL-85d23a2b
discovered ininclude/besm-666/decoder/decoder.hpp
) and submitted as #40. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
1ILLEGAL-459ddeca
discovered ininclude/besm-666/decoder/decoder.hpp
) and submitted as #41. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.13c0569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to retrieve PDD puzzles from the code base and submit them to github. If you think that it's a bug on our side, please submit it to yegor256/0pdd:
Please, copy and paste this stack trace to GitHub: