Not sure I understand the Misaligned hptw - seems like a bug and should be L1_ADR instead of L0_ADR

This commit is contained in:
James E. Stine 2021-09-03 10:26:38 -05:00
parent 4a938e493e
commit 5bc3569b0e

View File

@ -146,6 +146,7 @@ module hptw
if (`XLEN == 32) begin
assign InitialWalkerState = L1_ADR;
assign MegapageMisaligned = |(CurrentPPN[9:0]); // must have zero PPN0
// *** Possible bug - should be L1_ADR?
assign Misaligned = ((WalkerState == L0_ADR) & MegapageMisaligned);
end else begin
logic GigapageMisaligned, TerapageMisaligned;