/* * Copyright (C) 2018 ETH Zurich, University of Bologna * * 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. */ #ifndef __ARCHI_CHIPS_PULP_PROPERTIES_H__ #define __ARCHI_CHIPS_PULP_PROPERTIES_H__ /* * FPGA */ #ifndef ARCHI_FPGA_PER_FREQUENCY #define ARCHI_FPGA_PER_FREQUENCY 5000000 #endif #ifndef ARCHI_FPGA_SOC_FREQUENCY #define ARCHI_FPGA_SOC_FREQUENCY 5000000 #endif #ifndef ARCHI_FPGA_CL_FREQUENCY #define ARCHI_FPGA_CL_FREQUENCY 5000000 #endif /* * MEMORIES */ #define ARCHI_HAS_L2 1 #define ARCHI_HAS_L2_MULTI 1 #define ARCHI_HAS_L1 1 #define ARCHI_L2_PRIV0_ADDR 0x1c000000 #define ARCHI_L2_PRIV0_SIZE 0x00008000 #define ARCHI_L2_PRIV1_ADDR 0x1c008000 #define ARCHI_L2_PRIV1_SIZE 0x00008000 #define ARCHI_L2_SHARED_ADDR 0x1c010000 #define ARCHI_L2_SHARED_SIZE 0x00070000 /* * MEMORY ALIAS */ #define ARCHI_HAS_L1_ALIAS 1 #define ARCHI_HAS_L2_ALIAS 1 /* * IP VERSIONS */ #define UDMA_VERSION 3 #define PERIPH_VERSION 2 #define TIMER_VERSION 2 #define SOC_EU_VERSION 2 #define APB_SOC_VERSION 3 #define STDOUT_VERSION 2 #define GPIO_VERSION 2 #define EU_VERSION 3 #define ITC_VERSION 1 #define FLL_VERSION 1 #define RISCV_VERSION 4 #define MCHAN_VERSION 7 #define PADS_VERSION 2 /* * CLUSTER */ #define ARCHI_HAS_CLUSTER 1 #define ARCHI_L1_TAS_BIT 20 #ifndef ARCHI_CLUSTER_NB_PE #define ARCHI_CLUSTER_NB_PE 8 #endif #define ARCHI_NB_CLUSTER 1 /* * HWS */ #define ARCHI_EU_NB_HW_MUTEX 1 /* * FC */ #ifndef ARCHI_NO_FC #define ARCHI_FC_CID 31 #define ARCHI_HAS_FC_ITC 1 #define ARCHI_HAS_FC 1 #define ARCHI_CORE_HAS_1_10 1 #endif /* * CLOCKS */ #define ARCHI_REF_CLOCK_LOG2 15 #define ARCHI_REF_CLOCK (1<