matlabcp
Associate MATLAB component function with instantiated HDL design
Description
Note
Enter this command in the HDL simulator, not in MATLAB®.
matlabcp performs these actions: instance
Starts the HDL simulator client component of the HDL Verifier™ software.
Associates a specified instance of an HDL design created in the HDL simulator with a MATLAB function.
Creates a process that schedules invocations of the specified MATLAB function.
Cancels any pending events scheduled by a previous
matlabcpcommand that specified the same instance. For example, if you issue the commandmatlabcpfor instancefoo,matlabcpcancels all previously scheduled events initiated bymatlabcponfoo.Issue this command in the HDL simulator.
MATLAB component functions simulate the behavior of modules in an HDL model. A stub module (providing port definitions only) in the HDL model passes its input signals to the MATLAB component function. The MATLAB component processes this data and returns the results to the outputs of the stub module. A MATLAB component typically provides some functionality (such as a filter) that is not yet implemented in the HDL code. For more information about MATLAB component functions, see Create a MATLAB Component Function.
Note
The communication mode that you specify for
matlabcpmust match the communication mode you specified forhdldaemonwhen you established the server connection.For socket communications, specify the port number that you selected for
hdldaemonwhen you issue a link request with thematlabcpcommand in the HDL simulator.
matlabcp
adds time specifications for scheduling the specified MATLAB function.instance time-specs
matlabcp
specifies one or more additional specifications as pairs consisting of a valid specification
name and its value. For example, instance ___ pair1 ... pairN-mfunc vlogmatlabc specifies for the
MATLAB function vlogmatlabc to be associated with the specified
HDL module. You can specify these pairs with or without
time-specs.
Examples
Input Arguments
Version History
Introduced in R2008a