Products & Services Solutions Academia Support User Community Company

Learn more about EDA Link Simulator   

Invoke matlabcp to Bind MATLAB Component Function Calls

About Binding Component Function Calls

When you create a component function that has a different name than the design under test, you must associate the design with the MATLAB component function using the -mfunc argument to matlabcp. The procedure for binding component function calls is exactly the same as the procedure for binding test bench function calls.

See Binding the HDL Module Component to the MATLAB Test Bench Function for instructions on binding a test bench function to an HDL design, and follow the same instructions for use with a component session.

See Invoke matlabtb to Bind MATLAB Test Bench Function Calls for instructions on invoking matlabtb . Follow the same instructions for use with matlabcp.

You can find an example binding a component session in the next section.

For examples of invoking and binding test bench sessions, see Example of Binding Test Bench Function Call.

Example of Binding Component Function Calls

In this example, you bind the model osc_top.u_osc_filter to the component function oscfilter:

matlabcp osc_top.u_osc_filter -mfunc oscfilter

When the HDL simulator calls the oscfilter callback, the function knows to operate on the model osc_top.u_osc_filter.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS