scratchpad optimization for stack access using custom bank offset aligned to stack size

This commit is contained in:
Blaise Tine
2021-01-02 16:00:00 -05:00
parent 30d950ada2
commit 2d69ca5d67
17 changed files with 339 additions and 311 deletions

View File

@@ -248,7 +248,7 @@
// Size of LSU Request Queue
`ifndef LSUQ_SIZE
`define LSUQ_SIZE 8
`define LSUQ_SIZE (`NUM_WARPS * `NUM_THREADS)
`endif
// Size of FPU Request Queue
@@ -327,9 +327,14 @@
// SM Configurable Knobs //////////////////////////////////////////////////////
// per thread stack size
`ifndef STACK_SIZE
`define STACK_SIZE 1024
`endif
// Size of cache in bytes
`ifndef SMEM_SIZE
`define SMEM_SIZE (1024 * `NUM_WARPS * `NUM_THREADS)
`define SMEM_SIZE (`STACK_SIZE * `NUM_WARPS * `NUM_THREADS)
`endif
// Number of banks