Skip to Main Content Skip to Search
Product Documentation

Start Connection to HDL Simulator for Component Function Session

Start MATLAB Server for Component Function Session

Start the MATLAB server as follows:

  1. Start MATLAB.

  2. 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.

Example of Starting MATLAB Server for Component Function Session

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')
  


Recommended Products

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