1<?xml version="1.0" encoding="utf-8"?>
2
3
4<!--****************************************************************************
5* \file smif_intrinsic-1.0.cypersonality
6* \version 1.0
7*
8* \brief
9* Intrinsic SMIF personality description file. Supports CAT1A, CAT1B and CAT1C devices.
10*
11********************************************************************************
12* \copyright
13* Copyright 2022-2023 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="mxs40smif_intrinsic" name="Quad Serial Peripheral Interface (QSPI) Intrinsic" intrinsic="true" version="1.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7">
30  <Dependencies>
31    <IpBlock name="mxsmif,mxsmif_ver2_s40e">
32        <Version major="5" />
33        <Version major="4" />
34        <Version major="3" />
35        <Version major="2" />
36        <Version major="1" />
37    </IpBlock>
38    <Resource name="smif" />
39  </Dependencies>
40  <ExposedMembers/>
41  <Parameters>
42    <ParamString id="cfgFileName" name="cfgFileName" group="External Tools" default="design.cyqspi" visible="false" editable="false" desc="" />
43    <ParamString id="cfgFilePath" name="cfgFilePath" group="External Tools" default="`${cy_design_path() . &quot;/&quot; . cfgFileName}`" visible="false" editable="false" desc="" />
44    <ParamBool id="qspiUsed" name="qspiUsed" group="Internal" default="`${fileExists(cy_design_path() . &quot;/design.cyqspi&quot;)}`" visible="false" editable="false" desc="" />
45  </Parameters>
46  <DRCs />
47  <ConfigFirmware>
48    <!-- Intention of this intrinsic SMIF personality is to generate cycfg_qspi_memslot.c/h if design.cyqspi exists
49         Check if design.cyqspi exists in the design.modus directory
50         Also check if SMIF resource is disabled to avoid generating .c/.h file twice -->
51      <ConfigTool value="`${cy_tools_path(&quot;qspi-configurator&quot;) . &quot;/qspi-configurator-cli&quot;}`" include="`${qspiUsed || isBlockUsed(&quot;smif[0]&quot;) || isBlockUsed(&quot;smif[0].core[0]&quot;) || isBlockUsed(&quot;smif[0].core[1]&quot;)}`">
52      <Arg value="`${&quot;--config=&quot; . cfgFilePath}`" />
53	  <Arg value="`${&quot;--library=&quot; . cy_libs_file()}`" />
54      <Arg value="`${&quot;--output-dir=&quot; . cy_codegen_path()}`" />
55    </ConfigTool>
56  </ConfigFirmware>
57</Personality>
58