CREATING CUSTOM COMPONENTS IN L ATTICE M ICO S YSTEM : Specifying User-Configurable Parameters76 LatticeMico32 Hardware Developer User GuidePredefined RTL ParametersThe following parameters are not passed to the custom component but arerequired by MSB when generating the platform RTL: Instance Name – Specifies the default instance name assigned by MSB.You can only change the default instance name. You can change thisvalue when instantiating the component in a platform. Base Address – Specifies the default base address assigned by MSB. It isoverridden by MSB when the custom component is used in a platform ifthis component is not locked by MSB. You can change this value whenyou instantiate the component in a platform. Size – Specifies the default address space that is assigned to thecomponent, in bytes. This parameter is used by MSB for address decodegeneration when generating a platform. You can change this value whenyou instantiate the component in a platform. Address Lock – Specifies the default value for “lock,” as used in MSB. Youcan change this value when you instantiate the component in a platform Disable – Specifies the default value for the Disable check box in MSB.Software ParametersIf your custom component has parameters meant for software use, you makethem available to the software by not declaring these parameters as“parameter.” See Figure 41. Parameters used for RTL are also available forsoftware use.For platform-specific managed-make projects, C/C++ SPE generates aheader file named system_conf.h, which enumerates the various parametersand their value types. See Chapter 5 of the LatticeMico System SoftwareDeveloper User Guide for more information on the system_conf.h file.Table 8 shows how the various value types are translated into this header file.Table 8: Value Types for Added ParametersValue Type Description Allowable Values RTL Translation ExampleDefine Conditional type defundef#define PARAMETER (1)#define PARAMETER (0)String Character string type Any printable characters #define PARAMETER “VALUE”Integer Numeric type Any numeric value #define PARAMETER(VALUE)