1<?xml version="1.0" encoding="utf-8"?>
2
3
4<!--****************************************************************************
5* \file em_eeprom.cypersonality
6* \version 1.0
7*
8* \brief
9* Emulated EEPROM personality description file. It Supports CAT1C family of devices.
10*
11********************************************************************************
12* \copyright
13* Copyright 2022 Cypress Semiconductor Corporation
14* SPDX-License-Identifier: Apache-2.0
15*
16* Licensed under the Apache License, Version 2.0 (the "License");
17* you may not use this file except in compliance with the License.
18* You may obtain a copy of the License at
19*
20*     http://www.apache.org/licenses/LICENSE-2.0
21*
22* Unless required by applicable law or agreed to in writing, software
23* distributed under the License is distributed on an "AS IS" BASIS,
24* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25* See the License for the specific language governing permissions and
26* limitations under the License.
27*****************************************************************************-->
28
29<Personality id="eeprom_xmc7" name="eeprom" version="1.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7">
30  <Dependencies>
31    <IpBlock name="mxs40srss_ver3" />
32    <Resource name="srss\.eeprom" />
33  </Dependencies>
34
35  <ExposedMembers />
36
37  <Parameters>
38    <!-- EM_EEPROM documentation -->
39    <ParamDoc id="doc" name="Configuration Help" group="Overview" default="https://infineon.github.io/emeeprom/em_eeprom_api_reference_manual/html/index.html" linkText="Em_EEPROM Middleware Library Documentation" visible="true" desc="Opens the Em_EEPROM Middleware Library Documentation." />
40
41    <ParamRange id="eeprom_size" name="EEPROM Size" group="General" default="2048" min="1" max="65535" resolution="1" visible="true" editable="true" desc="Emulated EEPROM size" />
42    <ParamBool id="simpleMode" name="Simple Mode" group="General" default="false" visible="true" editable="true" desc="Emulated EEPROM SimpleMode" />
43    <ParamBool id="blockingMode" name="Blocking Mode" group="General" default="true" visible="true" editable="false" desc="Emulated EEPROM blockingMode" />
44    <ParamRange id="wearLevelingFactor" name="Wear Leveling Factor" group="General" default="1" min="1" max="10" resolution="1" visible="true" editable="true" desc="Emulated EEPROM wearLevelingFactor" />
45    <ParamBool id="redundantCopy" name="Redundant Copy" group="General" default="false" visible="true" editable="true" desc="Emulated EEPROM redundantCopy" />
46    <ParamBool id="SelectSmallSectorWorkFlashRegion" name="Select Small Sector Work Flash" group="General" default="true" visible="true" editable="true" desc="Select whether Small or Large Sector Work Flash region will be used to map EEPROM, the preferred mapping is Small Sector Work FLash" />
47  </Parameters>
48  <ConfigFirmware>
49    <ConfigDefine name="EEPROM_LARGE_SECTOR_WFLASH" value="`${(SelectSmallSectorWorkFlashRegion eq true) ? 0 : 1}`" public="true" include="`${(SelectSmallSectorWorkFlashRegion eq false)}`" />
50    <ConfigDefine name="`${INST_NAME}`_SIZE" value="`${eeprom_size}`" public="true" include="true" />
51    <ConfigDefine name="`${INST_NAME}`_SIMPLEMODE" value="`${(simpleMode eq true) ? 1 : 0}`" public="true" include="true" />
52    <ConfigDefine name="`${INST_NAME}`_BLOCKINGMODE" value="`${(blockingMode eq true) ? 1 : 0}`" public="true" include="true" />
53    <ConfigDefine name="`${INST_NAME}`_WEARLEVELING_FACTOR" value="`${wearLevelingFactor}`" public="true" include="true" />
54    <ConfigDefine name="`${INST_NAME}`_REDUNDANT_COPY" value="`${(redundantCopy eq true) ? 1 : 0}`" public="true" include="true" />
55    <ConfigDefine name="`${INST_NAME}`_PHYSICAL_SIZE" value="CY_EM_EEPROM_GET_PHYSICAL_SIZE(`${eeprom_size}`,`${(simpleMode eq true) ? 1 : 0}`,`${wearLevelingFactor}`,`${(redundantCopy eq true) ? 1 : 0}`)" public="true" include="true" />
56  </ConfigFirmware>
57</Personality>
58