config update
This commit is contained in:
@@ -32,6 +32,7 @@ script:
|
|||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=1
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=1
|
||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2
|
||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=4
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=4
|
||||||
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2 --l2cache
|
||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=4 --l2cache
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=4 --l2cache
|
||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2 --l2cache --clusters=2
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2 --l2cache --clusters=2
|
||||||
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2 --l2cache --clusters=4
|
- travis_wait 45 ci/blackbox.sh --driver=vlsim --cores=2 --l2cache --clusters=4
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
// Size of instruction queue
|
// Size of instruction queue
|
||||||
`ifndef IBUF_SIZE
|
`ifndef IBUF_SIZE
|
||||||
`define IBUF_SIZE 8
|
`define IBUF_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Size of LSU Request Queue
|
// Size of LSU Request Queue
|
||||||
@@ -177,12 +177,12 @@
|
|||||||
|
|
||||||
// Size of MUL Request Queue
|
// Size of MUL Request Queue
|
||||||
`ifndef MULQ_SIZE
|
`ifndef MULQ_SIZE
|
||||||
`define MULQ_SIZE 8
|
`define MULQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Size of FPU Request Queue
|
// Size of FPU Request Queue
|
||||||
`ifndef FPUQ_SIZE
|
`ifndef FPUQ_SIZE
|
||||||
`define FPUQ_SIZE 8
|
`define FPUQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Dcache Configurable Knobs //////////////////////////////////////////////////
|
// Dcache Configurable Knobs //////////////////////////////////////////////////
|
||||||
@@ -194,74 +194,74 @@
|
|||||||
|
|
||||||
// Number of banks
|
// Number of banks
|
||||||
`ifndef DNUM_BANKS
|
`ifndef DNUM_BANKS
|
||||||
`define DNUM_BANKS 4
|
`define DNUM_BANKS `MIN(`NUM_THREADS, 4)
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
`ifndef DCREQ_SIZE
|
`ifndef DCREQ_SIZE
|
||||||
`define DCREQ_SIZE `NUM_WARPS
|
`define DCREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Miss Reserv Queue Knob
|
// Miss Reserv Queue Knob
|
||||||
`ifndef DMRVQ_SIZE
|
`ifndef DMRVQ_SIZE
|
||||||
`define DMRVQ_SIZE `MAX(`NUM_WARPS*`NUM_THREADS, 8)
|
`define DMRVQ_SIZE `MAX(`LSUQ_SIZE, 4)
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
`ifndef DCWBQ_SIZE
|
`ifndef DCWBQ_SIZE
|
||||||
`define DCWBQ_SIZE `DCREQ_SIZE
|
`define DCWBQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Request Queue Size
|
// DRAM Request Queue Size
|
||||||
`ifndef DDREQ_SIZE
|
`ifndef DDREQ_SIZE
|
||||||
`define DDREQ_SIZE 8
|
`define DDREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Response Queue Size
|
// DRAM Response Queue Size
|
||||||
`ifndef DDRFQ_SIZE
|
`ifndef DDRFQ_SIZE
|
||||||
`define DDRFQ_SIZE 8
|
`define DDRFQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Response Queue Size
|
// Snoop Response Queue Size
|
||||||
`ifndef DSNPQ_SIZE
|
`ifndef DSNPQ_SIZE
|
||||||
`define DSNPQ_SIZE 8
|
`define DSNPQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Req Queue Size
|
// Snoop Request Queue Size
|
||||||
`ifndef DSNRQ_SIZE
|
`ifndef DSNRQ_SIZE
|
||||||
`define DSNRQ_SIZE 8
|
`define DSNRQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Icache Configurable Knobs //////////////////////////////////////////////////
|
// Icache Configurable Knobs //////////////////////////////////////////////////
|
||||||
|
|
||||||
// Size of cache in bytes
|
// Size of cache in bytes
|
||||||
`ifndef ICACHE_SIZE
|
`ifndef ICACHE_SIZE
|
||||||
`define ICACHE_SIZE 8192
|
`define ICACHE_SIZE 4096
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
`ifndef ICREQ_SIZE
|
`ifndef ICREQ_SIZE
|
||||||
`define ICREQ_SIZE `NUM_WARPS
|
`define ICREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Miss Reserv Queue Knob
|
// Miss Reserv Queue Knob
|
||||||
`ifndef IMRVQ_SIZE
|
`ifndef IMRVQ_SIZE
|
||||||
`define IMRVQ_SIZE `MAX(`ICREQ_SIZE, 8)
|
`define IMRVQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
`ifndef ICWBQ_SIZE
|
`ifndef ICWBQ_SIZE
|
||||||
`define ICWBQ_SIZE `ICREQ_SIZE
|
`define ICWBQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Request Queue Size
|
// DRAM Request Queue Size
|
||||||
`ifndef IDREQ_SIZE
|
`ifndef IDREQ_SIZE
|
||||||
`define IDREQ_SIZE 8
|
`define IDREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Response Queue Size
|
// DRAM Response Queue Size
|
||||||
`ifndef IDRFQ_SIZE
|
`ifndef IDRFQ_SIZE
|
||||||
`define IDRFQ_SIZE 8
|
`define IDRFQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// SM Configurable Knobs //////////////////////////////////////////////////////
|
// SM Configurable Knobs //////////////////////////////////////////////////////
|
||||||
@@ -273,17 +273,17 @@
|
|||||||
|
|
||||||
// Number of banks
|
// Number of banks
|
||||||
`ifndef SNUM_BANKS
|
`ifndef SNUM_BANKS
|
||||||
`define SNUM_BANKS 4
|
`define SNUM_BANKS `NUM_THREADS
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
`ifndef SCREQ_SIZE
|
`ifndef SCREQ_SIZE
|
||||||
`define SCREQ_SIZE `NUM_WARPS
|
`define SCREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
`ifndef SCWBQ_SIZE
|
`ifndef SCWBQ_SIZE
|
||||||
`define SCWBQ_SIZE `SCREQ_SIZE
|
`define SCWBQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// L2cache Configurable Knobs /////////////////////////////////////////////////
|
// L2cache Configurable Knobs /////////////////////////////////////////////////
|
||||||
@@ -295,42 +295,42 @@
|
|||||||
|
|
||||||
// Number of banks
|
// Number of banks
|
||||||
`ifndef L2NUM_BANKS
|
`ifndef L2NUM_BANKS
|
||||||
`define L2NUM_BANKS 4
|
`define L2NUM_BANKS `MIN((`NUM_CORES * 2), 4)
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
`ifndef L2CREQ_SIZE
|
`ifndef L2CREQ_SIZE
|
||||||
`define L2CREQ_SIZE 8
|
`define L2CREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Miss Reserv Queue Knob
|
// Miss Reserv Queue Knob
|
||||||
`ifndef L2MRVQ_SIZE
|
`ifndef L2MRVQ_SIZE
|
||||||
`define L2MRVQ_SIZE `MAX(`L2CREQ_SIZE, 8)
|
`define L2MRVQ_SIZE 8
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
`ifndef L2CWBQ_SIZE
|
`ifndef L2CWBQ_SIZE
|
||||||
`define L2CWBQ_SIZE `L2CREQ_SIZE
|
`define L2CWBQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Request Queue Size
|
// DRAM Request Queue Size
|
||||||
`ifndef L2DREQ_SIZE
|
`ifndef L2DREQ_SIZE
|
||||||
`define L2DREQ_SIZE 8
|
`define L2DREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Response Queue Size
|
// DRAM Response Queue Size
|
||||||
`ifndef L2DRFQ_SIZE
|
`ifndef L2DRFQ_SIZE
|
||||||
`define L2DRFQ_SIZE 8
|
`define L2DRFQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Request Queue Size
|
// Snoop Request Queue Size
|
||||||
`ifndef L2SNRQ_SIZE
|
`ifndef L2SNRQ_SIZE
|
||||||
`define L2SNRQ_SIZE 8
|
`define L2SNRQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Response Queue Size
|
// Snoop Response Queue Size
|
||||||
`ifndef L2SNPQ_SIZE
|
`ifndef L2SNPQ_SIZE
|
||||||
`define L2SNPQ_SIZE 8
|
`define L2SNPQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// L3cache Configurable Knobs /////////////////////////////////////////////////
|
// L3cache Configurable Knobs /////////////////////////////////////////////////
|
||||||
@@ -342,42 +342,42 @@
|
|||||||
|
|
||||||
// Number of banks
|
// Number of banks
|
||||||
`ifndef L3NUM_BANKS
|
`ifndef L3NUM_BANKS
|
||||||
`define L3NUM_BANKS 4
|
`define L3NUM_BANKS `MIN(`NUM_CLUSTERS, 4)
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
`ifndef L3CREQ_SIZE
|
`ifndef L3CREQ_SIZE
|
||||||
`define L3CREQ_SIZE 8
|
`define L3CREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Miss Reserv Queue Knob
|
// Miss Reserv Queue Knob
|
||||||
`ifndef L3MRVQ_SIZE
|
`ifndef L3MRVQ_SIZE
|
||||||
`define L3MRVQ_SIZE `MAX(`L3CREQ_SIZE, 8)
|
`define L3MRVQ_SIZE 8
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Writeback Queue Size
|
// Core Writeback Queue Size
|
||||||
`ifndef L3CWBQ_SIZE
|
`ifndef L3CWBQ_SIZE
|
||||||
`define L3CWBQ_SIZE `L3CREQ_SIZE
|
`define L3CWBQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Request Queue Size
|
// DRAM Request Queue Size
|
||||||
`ifndef L3DREQ_SIZE
|
`ifndef L3DREQ_SIZE
|
||||||
`define L3DREQ_SIZE 8
|
`define L3DREQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// DRAM Response Queue Size
|
// DRAM Response Queue Size
|
||||||
`ifndef L3DRFQ_SIZE
|
`ifndef L3DRFQ_SIZE
|
||||||
`define L3DRFQ_SIZE 8
|
`define L3DRFQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Request Queue Size
|
// Snoop Request Queue Size
|
||||||
`ifndef L3SNRQ_SIZE
|
`ifndef L3SNRQ_SIZE
|
||||||
`define L3SNRQ_SIZE 8
|
`define L3SNRQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Snoop Response Queue Size
|
// Snoop Response Queue Size
|
||||||
`ifndef L3SNPQ_SIZE
|
`ifndef L3SNPQ_SIZE
|
||||||
`define L3SNPQ_SIZE 8
|
`define L3SNPQ_SIZE 4
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
`endif
|
`endif
|
||||||
|
|||||||
2
hw/rtl/cache/VX_cache.v
vendored
2
hw/rtl/cache/VX_cache.v
vendored
@@ -101,6 +101,8 @@ module VX_cache #(
|
|||||||
output wire [NUM_BANKS-1:0] miss_vec
|
output wire [NUM_BANKS-1:0] miss_vec
|
||||||
);
|
);
|
||||||
|
|
||||||
|
`STATIC_ASSERT(NUM_BANKS <= NUM_REQUESTS, ("invalid value"))
|
||||||
|
|
||||||
wire [NUM_BANKS-1:0][NUM_REQUESTS-1:0] per_bank_valid;
|
wire [NUM_BANKS-1:0][NUM_REQUESTS-1:0] per_bank_valid;
|
||||||
|
|
||||||
wire [NUM_BANKS-1:0] per_bank_core_req_ready;
|
wire [NUM_BANKS-1:0] per_bank_core_req_ready;
|
||||||
|
|||||||
Reference in New Issue
Block a user