mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
tb_wb_dcache: Provide ArianeCfg as cache parameter
Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
This commit is contained in:
parent
22b67049f7
commit
c419da3457
1 changed files with 25 additions and 1 deletions
|
@ -30,6 +30,30 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
|
|||
parameter logic [63:0] CachedAddrBeg = MemBytes>>3;//1/8th of the memory is NC
|
||||
parameter logic [63:0] CachedAddrEnd = 64'hFFFF_FFFF_FFFF_FFFF;
|
||||
|
||||
localparam ariane_cfg_t ArianeDefaultConfig = '{
|
||||
RASDepth: 2,
|
||||
BTBEntries: 32,
|
||||
BHTEntries: 128,
|
||||
// idempotent region
|
||||
NrNonIdempotentRules: 0,
|
||||
NonIdempotentAddrBase: {64'b0},
|
||||
NonIdempotentLength: {64'b0},
|
||||
// executable region
|
||||
NrExecuteRegionRules: 0,
|
||||
ExecuteRegionAddrBase: {64'h0},
|
||||
ExecuteRegionLength: {64'h0},
|
||||
// cached region
|
||||
NrCachedRegionRules: 1,
|
||||
CachedRegionAddrBase: {CachedAddrBeg},//1/8th of the memory is NC
|
||||
CachedRegionLength: {CachedAddrEnd-CachedAddrBeg+64'b1},
|
||||
// cache config
|
||||
Axi64BitCompliant: 1'b1,
|
||||
SwapEndianess: 1'b0,
|
||||
// debug
|
||||
DmBaseAddress: 64'h0,
|
||||
NrPMPEntries: 0
|
||||
};
|
||||
|
||||
// contention and invalidation rates (in %)
|
||||
parameter MemRandHitRate = 75;
|
||||
parameter MemRandInvRate = 10;
|
||||
|
@ -359,7 +383,7 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std_nbdcache #(
|
||||
.CACHE_START_ADDR ( CachedAddrBeg )
|
||||
.ArianeCfg ( ArianeDefaultConfig )
|
||||
) i_dut (
|
||||
.clk_i ( clk_i ),
|
||||
.rst_ni ( rst_ni ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue