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="3" />
34        <Version major="2" />
35        <Version major="1" />
36    </IpBlock>
37    <Resource name="smif" />
38  </Dependencies>
39  <ExposedMembers/>
40  <Parameters>
41    <ParamString id="cfgFileName" name="cfgFileName" group="External Tools" default="design.cyqspi" visible="false" editable="false" desc="" />
42    <ParamString id="cfgFilePath" name="cfgFilePath" group="External Tools" default="`${cy_design_path() . &quot;/&quot; . cfgFileName}`" visible="false" editable="false" desc="" />
43    <ParamBool id="qspiUsed" name="qspiUsed" group="Internal" default="fileExists(cy_design_path() . &quot;/design.cyqspi&quot;)" visible="false" editable="false" desc="" />
44  </Parameters>
45  <DRCs />
46  <ConfigFirmware>
47    <!-- Intention of this intrinsic SMIF personality is to generate cycfg_qspi_memslot.c/h if design.cyqspi existsCheck if design.cyqspi exists in the design.modus directory
48         Also check if SMIF resource is disable to avoid generating .c/.h file twice -->
49    <ConfigTool value="`${cy_tools_path(&quot;qspi-configurator&quot;) . &quot;/qspi-configurator-cli&quot;}`" include="`${qspiUsed &amp;&amp; !isBlockUsed(&quot;smif[0]&quot;)}`">
50      <Arg value="`${&quot;--config=&quot; . cfgFilePath}`" />
51      <Arg value="`${&quot;--library=&quot; . cy_libs_file()}`" />
52      <Arg value="`${&quot;--output-dir=&quot; . cy_codegen_path()}`" />
53    </ConfigTool>
54  </ConfigFirmware>
55</Personality>
56