vx_spawn_warps redesign using opencl's style scheduler
This commit is contained in:
@@ -327,14 +327,9 @@
|
||||
|
||||
// SM Configurable Knobs //////////////////////////////////////////////////////
|
||||
|
||||
// Size of cache block in bytes
|
||||
`ifndef SM_BLOCK_SIZE
|
||||
`define SM_BLOCK_SIZE 1024
|
||||
`endif
|
||||
|
||||
// Size of cache in bytes
|
||||
`ifndef SMEM_SIZE
|
||||
`define SMEM_SIZE (`NUM_WARPS * `NUM_THREADS * `SM_BLOCK_SIZE)
|
||||
`define SMEM_SIZE (1024 * `NUM_WARPS * `NUM_THREADS)
|
||||
`endif
|
||||
|
||||
// Number of banks
|
||||
|
||||
@@ -109,9 +109,9 @@ module VX_csr_data #(
|
||||
`CSR_FRM : read_data_r = 32'(csr_frm[read_wid]);
|
||||
`CSR_FCSR : read_data_r = 32'(csr_fcsr[read_wid]);
|
||||
|
||||
`CSR_LWID : read_data_r = 32'(read_wid);
|
||||
`CSR_WTID ,
|
||||
`CSR_WTID ,
|
||||
`CSR_LTID ,
|
||||
`CSR_LWID : read_data_r = 32'(read_wid);
|
||||
`CSR_GTID ,
|
||||
/*`CSR_MHARTID ,*/
|
||||
`CSR_GWID : read_data_r = CORE_ID * `NUM_WARPS + 32'(read_wid);
|
||||
|
||||
@@ -319,7 +319,7 @@
|
||||
`define SCACHE_ID (32'(`L3_ENABLE) + 32'(`L2_ENABLE) * `NUM_CLUSTERS + CORE_ID * 3 + 2)
|
||||
|
||||
// Block size in bytes
|
||||
`define SBANK_LINE_SIZE `SM_BLOCK_SIZE
|
||||
`define SBANK_LINE_SIZE 4
|
||||
|
||||
// Word size in bytes
|
||||
`define SWORD_SIZE 4
|
||||
|
||||
Reference in New Issue
Block a user