diff options
Diffstat (limited to 'FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/boards/icicle-kit-es/fpga_design_config/ddr/hw_ddr_options.h')
-rw-r--r-- | FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/boards/icicle-kit-es/fpga_design_config/ddr/hw_ddr_options.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/boards/icicle-kit-es/fpga_design_config/ddr/hw_ddr_options.h b/FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/boards/icicle-kit-es/fpga_design_config/ddr/hw_ddr_options.h new file mode 100644 index 000000000..56c5ba90e --- /dev/null +++ b/FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/boards/icicle-kit-es/fpga_design_config/ddr/hw_ddr_options.h @@ -0,0 +1,78 @@ +/******************************************************************************* + * Copyright 2019-2021 Microchip FPGA Embedded Systems Solutions. + * + * SPDX-License-Identifier: MIT + * + * @file hw_ddr_options.h + * @author Microchip-FPGA Embedded Systems Solutions + * + * + * Note 1: This file should not be edited. If you need to modify a parameter + * without going through regenerating using the MSS Configurator Libero flow + * or editing the associated xml file + * the following method is recommended: + + * 1. edit the following file + * boards/your_board/platform_config/mpfs_hal_config/mss_sw_config.h + + * 2. define the value you want to override there. + * (Note: There is a commented example in the platform directory) + + * Note 2: The definition in mss_sw_config.h takes precedence, as + * mss_sw_config.h is included prior to the generated header files located in + * boards/your_board/fpga_design_config + * + */ + +#ifndef HW_DDR_OPTIONS_H_ +#define HW_DDR_OPTIONS_H_ + + +#ifdef __cplusplus +extern "C" { +#endif + +#if !defined (LIBERO_SETTING_CA_BUS_RX_OFF_POST_TRAINING) +/*Tip config: Referenced receivers in the CA bus are turned on for CA training. +These burn static power.(0x01 => turn off ; 0x00 => no action ) */ +#define LIBERO_SETTING_CA_BUS_RX_OFF_POST_TRAINING 0x00000001UL + /* CA_BUS_RX_OFF_POST_TRAINING [0:1] RW value= 0x1 */ +#endif +#if !defined (LIBERO_SETTING_USER_INPUT_PHY_RANKS_TO_TRAIN) +/*Tip config: 1 => 1 rank, 3 => 2 ranks */ +#define LIBERO_SETTING_USER_INPUT_PHY_RANKS_TO_TRAIN 0x00000001UL + /* USER_INPUT_PHY_RANKS_TO_TRAIN [0:2] RW value= 0x1 */ +#endif +#if !defined (LIBERO_SETTING_TRAINING_SKIP_SETTING) +/*Tip config: Pick what trainings we want performed by the TIP, default is 0x1F +*/ +#define LIBERO_SETTING_TRAINING_SKIP_SETTING 0x00000002UL + /* SKIP_BCLKSCLK_TIP_TRAINING [0:1] RW value= 0x0 */ + /* SKIP_ADDCMD_TIP_TRAINING [1:1] RW value= 0x1 */ + /* SKIP_WRLVL_TIP_TRAINING [2:1] RW value= 0x0 */ + /* SKIP_RDGATE_TIP_TRAINING [3:1] RW value= 0x0 */ + /* SKIP_DQ_DQS_OPT_TIP_TRAINING [4:1] RW value= 0x0 */ +#endif +#if !defined (LIBERO_SETTING_TIP_CFG_PARAMS) +/*Tip config: default: 0x2,0x4,0x0,0x1F,0x1F */ +#define LIBERO_SETTING_TIP_CFG_PARAMS 0x07CFE02AUL + /* ADDCMD_OFFSET [0:3] RW value= 0x2 */ + /* BCKLSCLK_OFFSET [3:3] RW value= 0x5 */ + /* WRCALIB_WRITE_COUNT [6:7] RW value= 0x0 */ + /* READ_GATE_MIN_READS [13:8] RW value= 0x7F */ + /* ADDRCMD_WAIT_COUNT [22:8] RW value= 0x1F */ +#endif +#if !defined (LIBERO_SETTING_TIP_CONFIG_PARAMS_BCLK_VCOPHS_OFFSET) +/*in simulation we need to set this to 2, for hardware it will be dependent on +the trace lengths */ +#define LIBERO_SETTING_TIP_CONFIG_PARAMS_BCLK_VCOPHS_OFFSET 0x00000002UL + /* TIP_CONFIG_PARAMS_BCLK_VCOPHS [0:32] RW value= 0x02 */ +#endif + +#ifdef __cplusplus +} +#endif + + +#endif /* #ifdef HW_DDR_OPTIONS_H_ */ + |