pingHdlSim
Block cosimulation until HDL simulator is ready
Syntax
Description
attempts to connect to the HDL simulator using a shared connection. The function blocks
cosimulation until the HDL server loads or the specified pID = pingHdlSim(timeout)timeout occurs.
pingHdlSim returns the process ID pID of the HDL
simulator or -1 if a timeout occurs. When you automate a cosimulation,
use this function to determine if the HDL server is loaded before your script continues the
simulation.
attempts to connect to the local host on the port pID = pingHdlSim(timeout,portnumber)portnumber.
attempts to connect to the host pID = pingHdlSim(timeout,portnumber,hostname)hostname on port
portnumber.
Examples
Block Cosimulation Until HDL Simulator Is Ready
The following function call blocks further cosimulation until the HDL server loads or 30 seconds pass.
>>pingHdlSim(30)
If the server loads within 30 seconds, pingHdlSim returns the
process ID. Otherwise, pingHdlSim returns -1.
The following function call blocks further cosimulation on port
5678 until the HDL server loads or 20 seconds pass.
>>pingHdlSim(20,'5678')The following function call blocks further cosimulation on port 5678
on host name msuser until the HDL server loads or 20 seconds pass:
>>pingHdlSim(20,'5678','msuser')
Input Arguments
Version History
Introduced in R2008a