From e4ebb4e31e5581528da670a23602adc062141cab Mon Sep 17 00:00:00 2001 From: Jarred Allen Date: Tue, 23 Mar 2021 00:07:39 -0400 Subject: [PATCH] Add comments explaining icache inputs --- wally-pipelined/src/ifu/icache.sv | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wally-pipelined/src/ifu/icache.sv b/wally-pipelined/src/ifu/icache.sv index ceb06ddce..98a58f7d7 100644 --- a/wally-pipelined/src/ifu/icache.sv +++ b/wally-pipelined/src/ifu/icache.sv @@ -26,18 +26,25 @@ `include "wally-config.vh" module icache( + // Basic pipeline stuff input logic clk, reset, input logic StallF, StallD, input logic FlushD, - // Fetch + // Upper bits of physical address for PC input logic [`XLEN-1:12] UpperPCPF, + // Lower 12 bits of virtual PC address, since it's faster this way input logic [11:0] LowerPCF, + // Data read in from the ebu unit input logic [`XLEN-1:0] InstrInF, + // Read requested from the ebu unit output logic [`XLEN-1:0] InstrPAdrF, output logic InstrReadF, + // High if the instruction currently in the fetch stage is compressed output logic CompressedF, + // High if the icache is requesting a stall output logic ICacheStallF, - // Decode + // The raw (not decompressed) instruction that was requested + // If the next instruction is compressed, the upper 16 bits may be anything output logic [31:0] InstrRawD );