Co-authored-by: cxy004 <cxy004@qq.com>
Co-authored-by: Hooo1941 <Hooo1941@users.noreply.github.com>
This commit is contained in:
Paul Pan 2021-07-30 15:46:51 +08:00
parent 0ad38a9a26
commit c487401438
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ module MMU (
input clk,
rst,
input logic [1:0] K0,
input logic [2:0] K0,
ICache_i.mmu ic,
DCache_i.mmu dc,
@ -579,7 +579,7 @@ module MMU (
endmodule
module mapping (
input logic [1:0] K0,
input logic [2:0] K0,
input word_t addr_in,
output word_t addr_out,
output logic cached
@ -593,7 +593,7 @@ module mapping (
cached = 0;
end else begin // kseg0 -> CP0.K0 default: uncached
addr_out = addr_in & 32'h1FFF_FFFF;
cached = (K0 == 2'b11);
cached = (K0 == 3'b011);
end
end
endmodule

View File

@ -86,7 +86,7 @@ module mycpu_top (
word_t C0_wdata;
EXCEPTION_t C0_exception;
word_t C0_EPC;
logic [3:0] K0;
logic [2:0] K0;
AXI axi (