Made the cache module configurable for multi-instantiation

This commit is contained in:
felsabbagh3
2020-03-07 00:49:40 -08:00
parent fb23812e95
commit 9bf0add937
22 changed files with 1209 additions and 493 deletions

View File

@@ -6,7 +6,11 @@
`define VX_GPU_DRAM_DCACHE_REQ
interface VX_gpu_dcache_dram_req_inter ();
interface VX_gpu_dcache_dram_req_inter
#(
parameter BANK_LINE_SIZE_WORDS = 2
)
();
// DRAM Request
wire dram_req;
@@ -14,7 +18,7 @@ interface VX_gpu_dcache_dram_req_inter ();
wire dram_req_read;
wire [31:0] dram_req_addr;
wire [31:0] dram_req_size;
wire [`BANK_LINE_SIZE_RNG][31:0] dram_req_data;
wire [BANK_LINE_SIZE_WORDS-1:0][31:0] dram_req_data;
// Snoop
wire dram_because_of_snp;