From f3b18ead59ae02f95dabbf0a1dea40873a816975 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 21 Jan 2024 06:23:46 -0600 Subject: rtl: refactor filenames and directory hierarchy --- rtl/core/core_decode_mrs.sv | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rtl/core/core_decode_mrs.sv (limited to 'rtl/core/core_decode_mrs.sv') diff --git a/rtl/core/core_decode_mrs.sv b/rtl/core/core_decode_mrs.sv new file mode 100644 index 0000000..8e4b19b --- /dev/null +++ b/rtl/core/core_decode_mrs.sv @@ -0,0 +1,15 @@ +`include "core/isa.sv" +`include "core/uarch.sv" + +module core_decode_mrs +( + input word insn, + + output reg_num rd, + output logic spsr +); + + assign rd = insn `FIELD_MRS_RD; + assign spsr = insn `FIELD_MRS_R; + +endmodule -- cgit v1.2.3