diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-01-21 06:23:46 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-02-20 11:11:17 -0600 |
| commit | f3b18ead59ae02f95dabbf0a1dea40873a816975 (patch) | |
| tree | 8979e50f2a37f66a4cd27e937b480efe60d72cf7 /rtl/core/core_decode_ldst_exclusive.sv | |
| parent | a8bc5a353ea997f73209b39377ee15a73e471237 (diff) | |
rtl: refactor filenames and directory hierarchy
Diffstat (limited to 'rtl/core/core_decode_ldst_exclusive.sv')
| -rw-r--r-- | rtl/core/core_decode_ldst_exclusive.sv | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rtl/core/core_decode_ldst_exclusive.sv b/rtl/core/core_decode_ldst_exclusive.sv new file mode 100644 index 0000000..f45cbfa --- /dev/null +++ b/rtl/core/core_decode_ldst_exclusive.sv @@ -0,0 +1,27 @@ +`include "core/isa.sv" +`include "core/uarch.sv" + +module core_decode_ldst_exclusive +( + input word insn, + + output ldst_decode decode, + output reg_num snd_r +); + + assign snd_r = insn `FIELD_LDST_EX_R_OK; + + assign decode.rn = insn `FIELD_LDST_EX_RN; + assign decode.rd = insn `FIELD_LDST_EX_RD; + assign decode.size = LDST_WORD; + assign decode.load = insn `FIELD_LDST_EX_LD; + assign decode.increment = 0; + assign decode.writeback = 0; + assign decode.exclusive = 1; + assign decode.sign_extend = 0; + assign decode.pre_indexed = 0; + assign decode.unprivileged = 0; + assign decode.user_regs = 0; + assign decode.regs = 16'b0; + +endmodule |
