From 7e96f3e8f76c2a095e16142f11eac955786f9842 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Fri, 20 Jan 2023 12:41:57 -0600 Subject: [PATCH] Formatting. --- pipelined/src/cache/cache.sv | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pipelined/src/cache/cache.sv b/pipelined/src/cache/cache.sv index 62fc3a1d3..9cf0a41f3 100644 --- a/pipelined/src/cache/cache.sv +++ b/pipelined/src/cache/cache.sv @@ -6,6 +6,8 @@ // // Purpose: Storage for data and meta data. // +// Documentation: RISC-V System on Chip Design Chapter 7 (Figures 7.9, 7.11, and 7.20) +// // A component of the CORE-V-WALLY configurable RISC-V project. // // Copyright (C) 2021-23 Harvey Mudd College & Oklahoma State University @@ -63,11 +65,11 @@ module cache #(parameter LINELEN, NUMLINES, NUMWAYS, LOGBWPL, WORDLEN, MUXINTE localparam SETLEN = $clog2(NUMLINES); // Number of set bits localparam SETTOP = SETLEN+OFFSETLEN; // Number of set plus offset bits localparam TAGLEN = `PA_BITS - SETTOP; // Number of tag bits - localparam WORDSPERLINE = LINELEN/WORDLEN; // Number of words in cache line + localparam CACHEWORDSPERLINE = LINELEN/WORDLEN;// Number of words in cache line + localparam LOGCWPL = $clog2(CACHEWORDSPERLINE);// Log2 of ^ localparam FLUSHADRTHRESHOLD = NUMLINES - 1; // Used to determine when flush is complete localparam LOGLLENBYTES = $clog2(WORDLEN/8); // Number of bits to address a word - localparam CACHEWORDSPERLINE = `DCACHE_LINELENINBITS/WORDLEN; // *** see if this is the same as WORDSPERLINE - localparam LOGCWPL = $clog2(CACHEWORDSPERLINE); // *** + logic SelAdr; logic [1:0] AdrSelMuxSel;