mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 22:07:41 -04:00
Some checks are pending
CI / setup (push) Waiting to run
CI / build (32) (push) Blocked by required conditions
CI / build (64) (push) Blocked by required conditions
CI / tests (cache, 32) (push) Blocked by required conditions
CI / tests (cache, 64) (push) Blocked by required conditions
CI / tests (config1, 32) (push) Blocked by required conditions
CI / tests (config1, 64) (push) Blocked by required conditions
CI / tests (config2, 32) (push) Blocked by required conditions
CI / tests (config2, 64) (push) Blocked by required conditions
CI / tests (debug, 32) (push) Blocked by required conditions
CI / tests (debug, 64) (push) Blocked by required conditions
CI / tests (opencl, 32) (push) Blocked by required conditions
CI / tests (opencl, 64) (push) Blocked by required conditions
CI / tests (regression, 32) (push) Blocked by required conditions
CI / tests (regression, 64) (push) Blocked by required conditions
CI / tests (scope, 32) (push) Blocked by required conditions
CI / tests (scope, 64) (push) Blocked by required conditions
CI / tests (stress, 32) (push) Blocked by required conditions
CI / tests (stress, 64) (push) Blocked by required conditions
CI / tests (synthesis, 32) (push) Blocked by required conditions
CI / tests (synthesis, 64) (push) Blocked by required conditions
CI / tests (vm, 32) (push) Blocked by required conditions
CI / tests (vm, 64) (push) Blocked by required conditions
CI / complete (push) Blocked by required conditions
41 lines
No EOL
1.4 KiB
C
41 lines
No EOL
1.4 KiB
C
// Copyright © 2019-2023
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#pragma once
|
|
|
|
#include <VX_config.h>
|
|
|
|
#ifndef RAM_PAGE_SIZE
|
|
#define RAM_PAGE_SIZE 4096
|
|
#endif
|
|
|
|
#ifndef MEM_CLOCK_RATIO
|
|
#define MEM_CLOCK_RATIO 1
|
|
#endif
|
|
|
|
inline constexpr int LSU_WORD_SIZE = (XLEN / 8);
|
|
inline constexpr int LSU_CHANNELS = NUM_LSU_LANES;
|
|
inline constexpr int LSU_NUM_REQS = (NUM_LSU_BLOCKS * LSU_CHANNELS);
|
|
|
|
// The dcache uses coalesced memory blocks
|
|
inline constexpr int DCACHE_WORD_SIZE = LSU_LINE_SIZE;
|
|
inline constexpr int DCACHE_CHANNELS = UP((NUM_LSU_LANES * (XLEN / 8)) / DCACHE_WORD_SIZE);
|
|
inline constexpr int DCACHE_NUM_REQS = (NUM_LSU_BLOCKS * DCACHE_CHANNELS);
|
|
|
|
inline constexpr int NUM_SOCKETS = UP(NUM_CORES / SOCKET_SIZE);
|
|
|
|
inline constexpr int L2_NUM_REQS = NUM_SOCKETS * L1_MEM_PORTS;
|
|
|
|
inline constexpr int L3_NUM_REQS = NUM_CLUSTERS * L2_MEM_PORTS;
|
|
|
|
inline constexpr int PER_ISSUE_WARPS = NUM_WARPS / ISSUE_WIDTH; |