summaryrefslogtreecommitdiff
path: root/rtl/core/arm810.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-09-25 19:55:29 -0600
committerAlejandro Soto <alejandro@34project.org>2022-09-25 19:55:29 -0600
commitfa370016708149976c748c14eadad1f89cf5a8ea (patch)
tree785ca92bebaef645e15f26a97d4892ef2ba2dad9 /rtl/core/arm810.sv
parent3aa075cf009d9aa8c602389853cc3ea78cda8701 (diff)
Refactor CPSR and uarch.sv
Diffstat (limited to 'rtl/core/arm810.sv')
-rw-r--r--rtl/core/arm810.sv9
1 files changed, 7 insertions, 2 deletions
diff --git a/rtl/core/arm810.sv b/rtl/core/arm810.sv
index 9a99168..b37057d 100644
--- a/rtl/core/arm810.sv
+++ b/rtl/core/arm810.sv
@@ -1,4 +1,3 @@
-`include "core/psr.sv"
`include "core/uarch.sv"
module arm810
@@ -52,7 +51,6 @@ module arm810
ptr branch_target;
psr_mode reg_mode;
alu_op data_op;
- psr_flags flags, next_flags;
core_cycles cycles
(
@@ -60,6 +58,13 @@ module arm810
.*
);
+ psr_flags flags, next_flags;
+
+ core_psr psr
+ (
+ .*
+ );
+
logic wr_pc;
word wr_value, rd_value_a, rd_value_b;