Understanding How Simulink Software
Drives Cosimulation Signals
Although you can bind the output ports of an HDL Cosimulation block
to any signal in an HDL model hierarchy, you must use some caution
when connecting signals to input ports. Ensure that the signal you
are binding to does not have other drivers. If it does, use resolved
logic types; otherwise you may get unpredictable results.
If you need to use a signal that has multiple drivers and it
is resolved (for example, it is of VHDL type STD_LOGIC)
, Simulink applies the resolution function at each time step defined
by the signal's Simulink sample rate. Depending on the other drivers,
the Simulink value may or may not get applied. Furthermore, Simulink
has no control over signal changes that occur between its sample times.
Note
Verify that signals used in cosimulation have read/write access.
You can check read/write access through the HDL simulator—see
HDL simulator documentation for details. This rule applies to all
signals on the Ports, Clocks,
and Tcl panes. |
 | Performing Data Type Conversions | | Understanding the Representation of Simulation Time |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit