Component Instance

Use this MotoHawk™ block to provide the filename of a MotoHawk Component file to utilize a component instance (providing security passphrase(s) if required).

Block ID

motohawk_component_instance

Library

MotoHawk_lib/Component Blocks

Description

Component instances are precompiled, opaque subsystems of blocks contained in a .mhc file. They are built using normal MotoHawk blocks, with the following exceptions. The target chosen from the MotoHawk Target Def block is a Component-xxx type, where xxx corresponds with the processor family to be used for the embedding application (e.g., Component-S12XE). The inports for the component are defined by using the MotoHawk Inport block and outports are defined by using MotoHawk Outport blocks. Building the component model produces a .mhc file, rather than the usual .srz file. This .mhc file is all that needs to be distributed for use with models that use the component. The embedding model uses a Component Instance block to reference the .mhc file and to represent the subsystem.

Provide the filename of a MotoHawk Component file (.mhc), either as an absolute filename, or relative to the current model location. If the component requires a wrapper passphrase or a build passphrase, enter it here, or use an empty string if no passphrase is required.

Block Parameters

Parameter Field Values Comments/Description
Component File Filename (.mhc) - alpha-numeric text, single-quote enclosed Enter name of a MotoHawk Component file (.mhc), either as an absolute filename, or relative to the current model location
Wrapper Passphrase Alpha-numeric text, single-quote enclosed Provide if needed, otherwise leave as is (blank single quotes).
Build Passphrase Alpha-numeric text, single-quote enclosed Provide if needed, otherwise leave as is (blank single quotes).