mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
adjusting platform caps
This commit is contained in:
parent
4329e3f968
commit
b8475c65dc
4 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ module vortex_afu import ccip_if_pkg::*; import local_mem_cfg_pkg::*; import VX_
|
|||
wire [127:0] afu_id = `AFU_ACCEL_UUID;
|
||||
|
||||
wire [63:0] dev_caps = {8'b0,
|
||||
5'(`PLATFORM_MEMORY_ADDR_WIDTH-16),
|
||||
5'(`PLATFORM_MEMORY_ADDR_WIDTH-20),
|
||||
3'(`CLOG2(`PLATFORM_MEMORY_BANKS)),
|
||||
8'(`LMEM_ENABLED ? `LMEM_LOG_SIZE : 0),
|
||||
16'(`NUM_CORES * `NUM_CLUSTERS),
|
||||
|
|
|
@ -134,7 +134,7 @@ module VX_afu_ctrl #(
|
|||
|
||||
// device caps
|
||||
wire [63:0] dev_caps = {8'b0,
|
||||
5'(`PLATFORM_MEMORY_ADDR_WIDTH-16),
|
||||
5'(`PLATFORM_MEMORY_ADDR_WIDTH-20),
|
||||
3'(`CLOG2(`PLATFORM_MEMORY_BANKS)),
|
||||
8'(`LMEM_ENABLED ? `LMEM_LOG_SIZE : 0),
|
||||
16'(`NUM_CORES * `NUM_CLUSTERS),
|
||||
|
|
|
@ -235,7 +235,7 @@ public:
|
|||
_value = 1 << ((dev_caps_ >> 48) & 0x7);
|
||||
break;
|
||||
case VX_CAPS_MEM_BANK_SIZE:
|
||||
_value = 1ull << (16 + ((dev_caps_ >> 51) & 0x1f));
|
||||
_value = 1ull << (20 + ((dev_caps_ >> 51) & 0x1f));
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "[VXDRV] Error: invalid caps id: %d\n", caps_id);
|
||||
|
|
|
@ -311,7 +311,7 @@ public:
|
|||
_value = 1 << ((dev_caps_ >> 48) & 0x7);
|
||||
break;
|
||||
case VX_CAPS_MEM_BANK_SIZE:
|
||||
_value = 1ull << (16 + ((dev_caps_ >> 51) & 0x1f));
|
||||
_value = 1ull << (20 + ((dev_caps_ >> 51) & 0x1f));
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "[VXDRV] Error: invalid caps id: %d\n", caps_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue