minor update
This commit is contained in:
@@ -12,9 +12,9 @@ DBG_PRINT = -DDBG_PRINT_CORE_ICACHE \
|
|||||||
-DDBG_PRINT_DRAM \
|
-DDBG_PRINT_DRAM \
|
||||||
-DDBG_PRINT_OPAE
|
-DDBG_PRINT_OPAE
|
||||||
|
|
||||||
#MULTICORE += -DNUM_CLUSTERS=2 -DNUM_CORES=2
|
#MULTICORE += -DNUM_CLUSTERS=2 -DNUM_CORES=4
|
||||||
#MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2
|
#MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=4
|
||||||
MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2 -DL2_ENABLE=0
|
MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2
|
||||||
|
|
||||||
#DEBUG = 1
|
#DEBUG = 1
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,19 @@ vortex_afu.json
|
|||||||
+define+GLOBAL_BLOCK_SIZE=64
|
+define+GLOBAL_BLOCK_SIZE=64
|
||||||
|
|
||||||
+define+NUM_CORES=2
|
+define+NUM_CORES=2
|
||||||
+define+L2_ENABLE=0
|
|
||||||
|
+define+DPRFQ_SIZE=0
|
||||||
|
+define+IPRFQ_SIZE=0
|
||||||
|
+define+SPRFQ_SIZE=0
|
||||||
|
+define+L2PRFQ_SIZE=0
|
||||||
|
+define+L3PRFQ_SIZE=0
|
||||||
|
|
||||||
|
+define+DFILL_INVALIDAOR_SIZE=0
|
||||||
|
+define+IFILL_INVALIDAOR_SIZE=0
|
||||||
|
+define+SFILL_INVALIDAOR_SIZE=0
|
||||||
|
+define+L2FILL_INVALIDAOR_SIZE=0
|
||||||
|
+define+L3FILL_INVALIDAOR_SIZE=0
|
||||||
|
|
||||||
|
|
||||||
#+define+DBG_PRINT_CORE_ICACHE
|
#+define+DBG_PRINT_CORE_ICACHE
|
||||||
#+define+DBG_PRINT_CORE_DCACHE
|
#+define+DBG_PRINT_CORE_DCACHE
|
||||||
|
|||||||
24
hw/rtl/cache/VX_cache.v
vendored
24
hw/rtl/cache/VX_cache.v
vendored
@@ -3,28 +3,28 @@
|
|||||||
module VX_cache #(
|
module VX_cache #(
|
||||||
parameter CACHE_ID = 0,
|
parameter CACHE_ID = 0,
|
||||||
// Size of cache in bytes
|
// Size of cache in bytes
|
||||||
parameter CACHE_SIZE = 1024,
|
parameter CACHE_SIZE = 2048,
|
||||||
// Size of line inside a bank in bytes
|
// Size of line inside a bank in bytes
|
||||||
parameter BANK_LINE_SIZE = 16,
|
parameter BANK_LINE_SIZE = 16,
|
||||||
// Number of banks {1, 2, 4, 8,...}
|
// Number of banks {1, 2, 4, 8,...}
|
||||||
parameter NUM_BANKS = 8,
|
parameter NUM_BANKS = 8,
|
||||||
// Size of a word in bytes
|
// Size of a word in bytes
|
||||||
parameter WORD_SIZE = 16,
|
parameter WORD_SIZE = 4,
|
||||||
// Number of Word requests per cycle {1, 2, 4, 8, ...}
|
// Number of Word requests per cycle {1, 2, 4, 8, ...}
|
||||||
parameter NUM_REQUESTS = 2,
|
parameter NUM_REQUESTS = 4,
|
||||||
// Number of cycles to complete stage 1 (read from memory)
|
// Number of cycles to complete stage 1 (read from memory)
|
||||||
parameter STAGE_1_CYCLES = 2,
|
parameter STAGE_1_CYCLES = 1,
|
||||||
|
|
||||||
// Queues feeding into banks Knobs {1, 2, 4, 8, ...}
|
// Queues feeding into banks Knobs {1, 2, 4, 8, ...}
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
parameter REQQ_SIZE = 8,
|
parameter REQQ_SIZE = 8,
|
||||||
// Miss Reserv Queue Knob
|
// Miss Reserv Queue Knob
|
||||||
parameter MRVQ_SIZE = 8,
|
parameter MRVQ_SIZE = 16,
|
||||||
// Dram Fill Rsp Queue Size
|
// Dram Fill Rsp Queue Size
|
||||||
parameter DFPQ_SIZE = 2,
|
parameter DFPQ_SIZE = 16,
|
||||||
// Snoop Req Queue Size
|
// Snoop Req Queue Size
|
||||||
parameter SNRQ_SIZE = 8,
|
parameter SNRQ_SIZE = 16,
|
||||||
|
|
||||||
// Queues for writebacks Knobs {1, 2, 4, 8, ...}
|
// Queues for writebacks Knobs {1, 2, 4, 8, ...}
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
@@ -37,7 +37,7 @@ module VX_cache #(
|
|||||||
parameter LLVQ_SIZE = 16,
|
parameter LLVQ_SIZE = 16,
|
||||||
|
|
||||||
// Fill Invalidator Size {Fill invalidator must be active}
|
// Fill Invalidator Size {Fill invalidator must be active}
|
||||||
parameter FILL_INVALIDAOR_SIZE = 16,
|
parameter FILL_INVALIDAOR_SIZE = 0,
|
||||||
|
|
||||||
// Enable cache writeable
|
// Enable cache writeable
|
||||||
parameter WRITE_ENABLE = 1,
|
parameter WRITE_ENABLE = 1,
|
||||||
@@ -49,23 +49,23 @@ module VX_cache #(
|
|||||||
parameter SNOOP_FORWARDING = 0,
|
parameter SNOOP_FORWARDING = 0,
|
||||||
|
|
||||||
// Prefetcher
|
// Prefetcher
|
||||||
parameter PRFQ_SIZE = 64,
|
parameter PRFQ_SIZE = 0,
|
||||||
parameter PRFQ_STRIDE = 0,
|
parameter PRFQ_STRIDE = 0,
|
||||||
|
|
||||||
// core request tag size
|
// core request tag size
|
||||||
parameter CORE_TAG_WIDTH = 1,
|
parameter CORE_TAG_WIDTH = 1,
|
||||||
|
|
||||||
// size of tag id in core request tag
|
// size of tag id in core request tag
|
||||||
parameter CORE_TAG_ID_BITS = 0,
|
parameter CORE_TAG_ID_BITS = 42,
|
||||||
|
|
||||||
// dram request tag size
|
// dram request tag size
|
||||||
parameter DRAM_TAG_WIDTH = 1,
|
parameter DRAM_TAG_WIDTH = 8,
|
||||||
|
|
||||||
// Number of snoop forwarding requests
|
// Number of snoop forwarding requests
|
||||||
parameter NUM_SNP_REQUESTS = 2,
|
parameter NUM_SNP_REQUESTS = 2,
|
||||||
|
|
||||||
// Snooping request tag width
|
// Snooping request tag width
|
||||||
parameter SNP_REQ_TAG_WIDTH = 1,
|
parameter SNP_REQ_TAG_WIDTH = 28,
|
||||||
|
|
||||||
// Snooping forward tag width
|
// Snooping forward tag width
|
||||||
parameter SNP_FWD_TAG_WIDTH = 1
|
parameter SNP_FWD_TAG_WIDTH = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user