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
matlabcp
command that specified the same instance. For example, if you issue the commandmatlabcp
for instancefoo
,matlabcp
cancels all previously scheduled events initiated bymatlabcp
onfoo
.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
matlabcp
must match the communication mode you specified forhdldaemon
when you established the server connection.For socket communications, specify the port number that you selected for
hdldaemon
when you issue a link request with thematlabcp
command 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