summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-12 13:19:18 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:29:10 -0600
commit397245139af754af07e61a10a91fdc9b9e72153f (patch)
tree01d8fb00667911b39ebd909d65f392e6e76d3bcf
parent7c38613cff247fbc7715064291b74426b4ef5b40 (diff)
Fix sysctrl register dump
Diffstat (limited to '')
-rw-r--r--rtl/core/cp15/syscfg.sv4
-rw-r--r--tb/top/conspiracion.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/rtl/core/cp15/syscfg.sv b/rtl/core/cp15/syscfg.sv
index f7fc1a5..5bd2530 100644
--- a/rtl/core/cp15/syscfg.sv
+++ b/rtl/core/cp15/syscfg.sv
@@ -11,14 +11,14 @@ module core_cp15_syscfg
input cp_opcode op2,
input word write,
- output word read /*verilator public*/,
+ output word read,
output logic high_vectors,
mmu_enable
);
logic dcache_enable, icache_enable;
- cp15_syscfg_ctrl ctrl, write_ctrl;
+ cp15_syscfg_ctrl ctrl /*verilator public*/, write_ctrl;
assign write_ctrl = write;
diff --git a/tb/top/conspiracion.cpp b/tb/top/conspiracion.cpp
index 11516b6..f0cfaa2 100644
--- a/tb/top/conspiracion.cpp
+++ b/tb/top/conspiracion.cpp
@@ -439,7 +439,7 @@ int main(int argc, char **argv)
std::fprintf(ctrl, "%08x spsr_und\n", core.psr->spsr_und_word);
std::fprintf(ctrl, "%08x spsr_fiq\n", core.psr->spsr_fiq_word);
std::fprintf(ctrl, "%08x spsr_irq\n", core.psr->spsr_irq_word);
- std::fprintf(ctrl, "%08x sysctrl\n", core.cp15->syscfg->read);
+ std::fprintf(ctrl, "%08x sysctrl\n", core.cp15->syscfg->ctrl);
std::fprintf(ctrl, "%08x ttbr\n", core.cp15->ttbr->read);
std::fprintf(ctrl, "%08x far\n", core.cp15->far_->read);
std::fprintf(ctrl, "%08x fsr\n", core.cp15->fsr->read);