Skip to content

Commit

Permalink
Add additional pipeline stages in the original cache code for the mul…
Browse files Browse the repository at this point in the history
…ti-banked bram implementation.

The original cache code now is only used by central cache clients.
  • Loading branch information
hjyang committed Feb 9, 2015
1 parent 206c020 commit dfdc50a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions modules/leap/libraries/librl/cache/rl-direct-mapped-cache.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,17 @@ module [m] mkCacheDirectMapped#(RL_DM_CACHE_SOURCE_DATA#(t_CACHE_ADDR, t_CACHE_W
FIFOF#(t_CACHE_REQ) newReqQ <- mkFIFOF();

// Pipelines
FIFO#(t_CACHE_REQ) cacheLookupQ <- mkFIFO();
// FIFO#(t_CACHE_REQ) cacheLookupQ <- mkFIFO();
FIFO#(t_CACHE_REQ) cacheLookupQ = ?;
if(`RL_DM_CACHE_BRAM_TYPE == 1)
begin
cacheLookupQ <- mkSizedFIFO(4);
end
else
begin
cacheLookupQ <- mkFIFO();
end

FIFO#(t_CACHE_REQ) fillReqQ <- mkFIFO();
FIFO#(t_CACHE_REQ) invalQ <- mkFIFO();

Expand All @@ -379,7 +389,6 @@ module [m] mkCacheDirectMapped#(RL_DM_CACHE_SOURCE_DATA#(t_CACHE_ADDR, t_CACHE_W
//
// Convert address to cache index and tag
//

function Tuple2#(t_CACHE_TAG, t_CACHE_IDX) cacheEntryFromAddr(t_CACHE_ADDR addr);
let a = hashAddresses ? hashBits(pack(addr)) : pack(addr);

Expand Down

0 comments on commit dfdc50a

Please sign in to comment.