diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-02 11:15:34 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-02 23:29:46 -0600 |
| commit | fbe3ab39675d338eb6d5388b7deacf98a3a8ae2d (patch) | |
| tree | 6a3a8479031d1434a18af4385713dd48207d3814 /rtl/core/decode/isa.sv | |
| parent | 70d7dc9489f4d5b91d8138e0a341eec4ad7f15b0 (diff) | |
rtl/core: implement ldrex/strex decode
Diffstat (limited to 'rtl/core/decode/isa.sv')
| -rw-r--r-- | rtl/core/decode/isa.sv | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/rtl/core/decode/isa.sv b/rtl/core/decode/isa.sv index 2ad5b40..6784eca 100644 --- a/rtl/core/decode/isa.sv +++ b/rtl/core/decode/isa.sv @@ -162,7 +162,18 @@ `define FIELD_LDST_MULT_RN [19:16] `define FIELD_LDST_MULT_LIST [15:0] -// Instrucciones atómicas de intercambio registro-memoria +// Instrucciones para operaciones atómicas optimistas (monitor exclusivo) + +`define INSN_LDREX 28'b0001100_1_????_????_1111_1001_1111 +`define INSN_STREX 28'b0001100_0_????_????_1111_1001_???? +`define GROUP_LDST_EX `INSN_LDREX, `INSN_STREX + +`define FIELD_LDST_EX_LD [20] +`define FIELD_LDST_EX_RN [19:16] +`define FIELD_LDST_EX_RD [15:12] +`define FIELD_LDST_EX_R_OK [3:0] + +// Instrucciones atómicas de intercambio registro-memoria (deprecadas) `define INSN_SWP 28'b00010000_????_????_0000_1001_???? `define INSN_SWPB 28'b00010100_????_????_0000_1001_???? |
