| Contents | Index |
| On this page… |
|---|
Start MATLAB Server for Component Function Session Example of Starting MATLAB Server for Component Function Session |
Start the MATLAB server as follows:
Start MATLAB.
In the MATLAB Command Window, call the hdldaemon function with property name/property value pairs that specify whether the HDL Verifier software is to perform the following tasks:
Use shared memory or TCP/IP socket communication
Return time values in seconds or as 64-bit integers
See hdldaemon reference documentation for when and how to specify property name/property value pairs and for more examples of using hdldaemon.
The communication mode that you specify (shared memory or TCP/IP sockets) must match what you specify for the communication mode when you initialize the HDL simulator for use with a MATLAB cosimulation session using the matlabtb or matlabcp function. In addition, if you specify TCP/IP socket mode, the socket port that you specify with hdldaemon and matlabtb or matlabcp must match. For more information on modes of communication, see Choosing TCP/IP Socket Ports.
The MATLAB server can service multiple simultaneous HDL simulator modules and clients. However, your code must track the I/O associated with each entity or client.
Note You cannot begin an HDL Verifier transaction between MATLAB and the HDL simulator from MATLAB. The MATLAB server simply responds to function call requests that it receives from the HDL simulator. |
The following command specifies using socket communication on port 4449 and a 64-bit time resolution format for the MATLAB function's output ports.
hdldaemon('socket', 4449, 'time', 'int64')
![]() | Place Component Function on MATLAB Search Path | Launch HDL Simulator for Use with MATLAB Component Session | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |