added test for adding pages

This commit is contained in:
2026-01-06 14:55:05 +00:00
parent 6cc929d50a
commit dd3336a2e0
16 changed files with 354 additions and 33581 deletions

View File

@@ -244,7 +244,7 @@ deriving (Bits, Eq, FShow);
(* synthesize *)
module mkCore#(CoreId coreId)(Core);
let verbose = False;
let verbose = True;
// ================================================================
Integer verbosity = 0; // More levels of verbosity control than 'Bool verbose'

View File

@@ -271,7 +271,7 @@ interface MemExePipeline;
endinterface
module mkMemExePipeline#(MemExeInput inIfc)(MemExePipeline);
Bool verbose = False;
Bool verbose = True;
// we change cache request in case of single core, becaues our MSI protocol
// is not good with single core

View File

@@ -143,7 +143,7 @@ typedef union tagged {
(* synthesize *)
module mkL2Tlb(L2Tlb::L2Tlb);
Bool verbose = False;
Bool verbose = True;
// set associative TLB for 4KB pages
L2SetAssocTlb tlb4KB <- mkL2SetAssocTlb;
@@ -669,6 +669,7 @@ module mkL2Tlb(L2Tlb::L2Tlb);
});
pendWait_pageWalk[idx] <= WaitMem;
end
$display("Add trans cache entry from L2 tlb");
// add to translation cache
transCache.addEntry(cRq.vpn, walkLevel, pte.ppn, vm_info.asid);
end

View File

@@ -131,9 +131,9 @@ module mkLLCDmaConnect #( DmaServer#(LLCDmaReqId) llc
, Wd_AW_User_Periph, Wd_W_User_Periph, Wd_B_User_Periph
, Wd_AR_User_Periph, Wd_R_User_Periph ))
provisos (Alias #(dmaRqT, DmaRq #(LLCDmaReqId)));
Bool verbose = False;
Bool verbose = True;
Integer verbosity = 0;
Integer verbosity = 2;
// Connector to AXI4 fabric
let slavePortShim <- mkAXI4ShimFF;

View File

@@ -109,7 +109,7 @@ endinterface
// this module should be clocked under user domain
(* synthesize *)
module mkMemLoader#(Clock portalClk, Reset portalRst)(MemLoader);
Bool verbose = False;
Bool verbose = True;
// MMIO regs
Reg#(Addr) memStartAddr <- mkReg(0);

View File

@@ -70,7 +70,7 @@ endinterface
module mkRFile#(d defaultRegisterValue, Bool lazy)( RFile#(wrNum, rdNum, d) ) provisos (
NumAlias#(ehrPortNum, TAdd#(wrNum, 1)), Bits#(d, d_Size) // wr [< rd] (only in case lazy = false)
);
let verbose = False;
let verbose = True;
// phy reg init val must be 0: because x0 is renamed to phy reg 0,
// which must be 0 at all time

View File

@@ -691,7 +691,7 @@ module mkSupReorderBuffer#(
Add#(1, a__, aluExeNum), Add#(1, b__, fpuMulDivExeNum)
);
Bool verbose = False;
Bool verbose = True;
// doCommit rule: deq < wrongSpec (overwrite deq in doCommit) < doRenaming rule: enq
Integer valid_deq_port = 0;

View File

@@ -85,7 +85,7 @@ module mkReservationStation#(Bool lazySched, Bool lazyEnq, Bool countValid)(
Add#(1, b__, size)
);
Bool verbose = False;
Bool verbose = True;
Integer valid_wrongSpec_port = 0;
Integer valid_dispatch_port = 0; // write valid