diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-06 19:43:51 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-06 19:43:56 -0600 |
| commit | 3576202083fb46fb755ceaefb5efe228afa9e2de (patch) | |
| tree | b629a968d588908d1629f8db0268c1cf229fac2a /rtl/core/decode/msr.sv | |
| parent | 177c8a0f0cff07010d01ead3f072777d94ebd97d (diff) | |
Implement decode for mrs, msr
Diffstat (limited to 'rtl/core/decode/msr.sv')
| -rw-r--r-- | rtl/core/decode/msr.sv | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rtl/core/decode/msr.sv b/rtl/core/decode/msr.sv new file mode 100644 index 0000000..c3f0e3d --- /dev/null +++ b/rtl/core/decode/msr.sv @@ -0,0 +1,17 @@ +`include "core/decode/isa.sv" +`include "core/uarch.sv" + +module core_decode_msr +( + input word insn, + + output msr_mask fields, + output logic spsr, + snd_is_imm +); + + assign spsr = insn `FIELD_MSR_R; + assign fields = insn `FIELD_MSR_MASK; + assign snd_is_imm = insn `FIELD_MSR_I; + +endmodule |
