code refactoring: DRAM => MEM renaming
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
`ifndef VX_CACHE_DRAM_REQ_IF
|
||||
`define VX_CACHE_DRAM_REQ_IF
|
||||
|
||||
`include "../cache/VX_cache_config.vh"
|
||||
|
||||
interface VX_cache_dram_req_if #(
|
||||
parameter DRAM_LINE_WIDTH = 1,
|
||||
parameter DRAM_ADDR_WIDTH = 1,
|
||||
parameter DRAM_TAG_WIDTH = 1
|
||||
) ();
|
||||
|
||||
wire valid;
|
||||
wire rw;
|
||||
wire [(DRAM_LINE_WIDTH/8)-1:0] byteen;
|
||||
wire [DRAM_ADDR_WIDTH-1:0] addr;
|
||||
wire [DRAM_LINE_WIDTH-1:0] data;
|
||||
wire [DRAM_TAG_WIDTH-1:0] tag;
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
@@ -1,18 +0,0 @@
|
||||
`ifndef VX_CACHE_DRAM_RSP_IF
|
||||
`define VX_CACHE_DRAM_RSP_IF
|
||||
|
||||
`include "../cache/VX_cache_config.vh"
|
||||
|
||||
interface VX_cache_dram_rsp_if #(
|
||||
parameter DRAM_LINE_WIDTH = 1,
|
||||
parameter DRAM_TAG_WIDTH = 1
|
||||
) ();
|
||||
|
||||
wire valid;
|
||||
wire [DRAM_LINE_WIDTH-1:0] data;
|
||||
wire [DRAM_TAG_WIDTH-1:0] tag;
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
23
hw/rtl/interfaces/VX_cache_mem_req_if.v
Normal file
23
hw/rtl/interfaces/VX_cache_mem_req_if.v
Normal file
@@ -0,0 +1,23 @@
|
||||
`ifndef VX_CACHE_MEM_REQ_IF
|
||||
`define VX_CACHE_MEM_REQ_IF
|
||||
|
||||
`include "../cache/VX_cache_config.vh"
|
||||
|
||||
interface VX_cache_mem_req_if #(
|
||||
parameter MEM_LINE_WIDTH = 1,
|
||||
parameter MEM_ADDR_WIDTH = 1,
|
||||
parameter MEM_TAG_WIDTH = 1,
|
||||
parameter MEM_LINE_SIZE = MEM_LINE_WIDTH / 8
|
||||
) ();
|
||||
|
||||
wire valid;
|
||||
wire rw;
|
||||
wire [MEM_LINE_SIZE-1:0] byteen;
|
||||
wire [MEM_ADDR_WIDTH-1:0] addr;
|
||||
wire [MEM_LINE_WIDTH-1:0] data;
|
||||
wire [MEM_TAG_WIDTH-1:0] tag;
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
18
hw/rtl/interfaces/VX_cache_mem_rsp_if.v
Normal file
18
hw/rtl/interfaces/VX_cache_mem_rsp_if.v
Normal file
@@ -0,0 +1,18 @@
|
||||
`ifndef VX_CACHE_MEM_RSP_IF
|
||||
`define VX_CACHE_MEM_RSP_IF
|
||||
|
||||
`include "../cache/VX_cache_config.vh"
|
||||
|
||||
interface VX_cache_mem_rsp_if #(
|
||||
parameter MEM_LINE_WIDTH = 1,
|
||||
parameter MEM_TAG_WIDTH = 1
|
||||
) ();
|
||||
|
||||
wire valid;
|
||||
wire [MEM_LINE_WIDTH-1:0] data;
|
||||
wire [MEM_TAG_WIDTH-1:0] tag;
|
||||
wire ready;
|
||||
|
||||
endinterface
|
||||
|
||||
`endif
|
||||
@@ -23,10 +23,10 @@ interface VX_perf_memsys_if ();
|
||||
wire [`PERF_CTR_BITS-1:0] smem_writes;
|
||||
wire [`PERF_CTR_BITS-1:0] smem_bank_stalls;
|
||||
|
||||
wire [`PERF_CTR_BITS-1:0] dram_reads;
|
||||
wire [`PERF_CTR_BITS-1:0] dram_writes;
|
||||
wire [`PERF_CTR_BITS-1:0] dram_stalls;
|
||||
wire [`PERF_CTR_BITS-1:0] dram_latency;
|
||||
wire [`PERF_CTR_BITS-1:0] mem_reads;
|
||||
wire [`PERF_CTR_BITS-1:0] mem_writes;
|
||||
wire [`PERF_CTR_BITS-1:0] mem_stalls;
|
||||
wire [`PERF_CTR_BITS-1:0] mem_latency;
|
||||
|
||||
endinterface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user