| Link for ModelSim | ![]() |
By default, the Link for ModelSim interface invokes a MATLAB test bench function once (when time equals 0). If you want to apply more control and execute the MATLAB function more than once, decide on scheduling options that specify when and how often the Link for ModelSim interface is to invoke the relevant MATLAB function. Depending on your choices, you may need to modify the function or specify specific arguments when you initiate a MATLAB test bench session with the matlabtb or matlabtbeval command.
You can schedule a MATLAB simulation function to execute
At a time that the MATLAB function passes to ModelSim with the tnext input parameter
Based on a time specification that can include discrete time values, repeat intervals, and a stop time
When a specified signal experiences a rising edge changes from '0' to '1'
When a specified signal experiences a falling edge changes from '1' to '0'
Based on a sensitivity list when a specified signal changes state
Decide on a combination of options that best meet your test bench application requirements. For details on using the tnext parameter, see Controlling Callback Timing from a MATLAB Test Bench Function. For information on setting other scheduling parameters, see Initializing the Simulator for a MATLAB Test Bench Session.
| Loading a VHDL Entity for Verification | Controlling Callback Timing from a MATLAB Test Bench Function | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |