summaryrefslogtreecommitdiff
path: root/rtl/core/cp15/ttbr.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-10 19:56:19 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-10 19:56:19 -0600
commit6b163a88179ac3073d22622be4991f332529c8bd (patch)
tree5333acb096d9af9a95a40c1b7703bc087134e3fa /rtl/core/cp15/ttbr.sv
parent8026947ecdf9b023c3720b26bf257bf46f7a2805 (diff)
Expose cp15 signals to core toplevel
Diffstat (limited to 'rtl/core/cp15/ttbr.sv')
-rw-r--r--rtl/core/cp15/ttbr.sv10
1 files changed, 5 insertions, 5 deletions
diff --git a/rtl/core/cp15/ttbr.sv b/rtl/core/cp15/ttbr.sv
index 622dd3f..5162edb 100644
--- a/rtl/core/cp15/ttbr.sv
+++ b/rtl/core/cp15/ttbr.sv
@@ -11,11 +11,11 @@ module core_cp15_ttbr
transfer,
input word write,
- output word read
+ output word read,
+ output mmu_base mmu_ttbr
);
logic s, c;
- mmu_base base;
cp15_ttbr read_ttbr, write_ttbr;
logic[1:0] rgn;
@@ -27,19 +27,19 @@ module core_cp15_ttbr
assign read_ttbr.sbz = 9'd0;
assign read_ttbr.rgn = rgn;
assign read_ttbr.imp = 0;
- assign read_ttbr.base = base;
+ assign read_ttbr.base = mmu_ttbr;
always @(posedge clk or negedge rst_n)
if(!rst_n) begin
s <= 0;
c <= 0;
rgn <= 0;
- base <= 0;
+ mmu_ttbr <= 0;
end else if(transfer && !load) begin
s <= write_ttbr.s;
c <= write_ttbr.c;
rgn <= write_ttbr.rgn;
- base <= write_ttbr.base;
+ mmu_ttbr <= write_ttbr.base;
end
endmodule