[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.4.1 Parent Part

Parts can also inherit parameters from previously defined parts using the following syntax. In this case specified integer and string values override parameter values from the parent part. New memory definitions are added to the definitions inherited from the parent. If, however, a new memory definition refers to an existing one of the same name for that part then, from v7.1, the existing memory definition is extended, and components overwritten with new values. Assigning NULL removes an inherited SPI instruction format, memory definition, control stack, eeprom or flash instruction, e.g., as in memory "efuse" = NULL;. The variants parameter is never inherited as it almost always would be a mistake to do so: variants defines a string list detailing variant names of the part followed by an optional colon, the package code and some absolute maximum ratings.

Example format for part inheritance:

 
   part parent <id>                              # String identifying parent
       id               = <id>;                  # Id string for new part
       <any set of other parameters from the list above>
   ;

This document was generated by Stefan Rueger on August 24, 2024 using texi2html 1.82.