adjusting platform caps

This commit is contained in:
Blaise Tine 2024-09-28 21:25:55 -07:00
parent 4329e3f968
commit b8475c65dc
4 changed files with 4 additions and 4 deletions

View file

@ -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),

View file

@ -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),

View file

@ -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);

View file

@ -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);