|
CIRCT 22.0.0git
|
#include "svdpi.h"

Go to the source code of this file.
Macros | |
| #define | DPI extern "C" |
Functions | |
| DPI int | sv2cCosimserverEpRegister (char *endpointId, char *fromHostTypeId, int fromHostTypeSize, char *toHostTypeId, int toHostTypeSize) |
| Register an endpoint. | |
| DPI int | sv2cCosimserverEpTryGet (char *endpointId, const svOpenArrayHandle data, unsigned int *sizeBytes) |
| Try to get a message from a client. | |
| DPI int | sv2cCosimserverEpTryPut (char *endpointId, const svOpenArrayHandle data, int dataLimit) |
| Send a message to a client. | |
| DPI int | sv2cCosimserverInit () |
| Start the server. | |
| DPI void | sv2cCosimserverFinish () |
| Shutdown the RPC server. | |
| DPI void | sv2cCosimserverSetManifest (int esiVersion, const svOpenArrayHandle compressedManifest) |
| Set the system zlib-compressed manifest. | |
| DPI int | sv2cCosimserverMMIORegister () |
| Register an MMIO module. Just checks that there is only one instantiated. | |
| DPI int | sv2cCosimserverMMIOReadTryGet (uint32_t *address) |
| Read MMIO function pair. | |
| DPI void | sv2cCosimserverMMIOReadRespond (uint32_t data, char error) |
| DPI int | sv2cCosimserverMMIOWriteTryGet (uint32_t *address, uint32_t *data) |
| Write MMIO function pair. | |
| DPI void | sv2cCosimserverMMIOWriteRespond (char error) |
| DPI int sv2cCosimserverEpRegister | ( | char * | endpointId, |
| char * | fromHostTypeId, | ||
| int | fromHostTypeSize, | ||
| char * | toHostTypeId, | ||
| int | toHostTypeSize | ||
| ) |
Register an endpoint.
Definition at line 135 of file DpiEntryPoints.cpp.
References esi::WriteChannelPort::connect(), esi::ReadChannelPort::connect(), esi::Logger::error(), getLogger(), esi::ReadChannelPort::readAsync(), readFutures, readPorts, server, sv2cCosimserverInit(), and writePorts.
| DPI int sv2cCosimserverEpTryGet | ( | char * | endpointId, |
| const svOpenArrayHandle | data, | ||
| unsigned int * | sizeBytes | ||
| ) |
Try to get a message from a client.
Definition at line 176 of file DpiEntryPoints.cpp.
References esi::Logger::error(), esi::MessageData::getBytes(), getLogger(), esi::MessageData::getSize(), log(), esi::ReadChannelPort::readAsync(), readFutures, readPorts, server, svGetArrElemPtr1(), svSizeOfArray(), and validateSvOpenArray().
| DPI int sv2cCosimserverEpTryPut | ( | char * | endpointId, |
| const svOpenArrayHandle | data, | ||
| int | dataLimit | ||
| ) |
Send a message to a client.
Definition at line 248 of file DpiEntryPoints.cpp.
References esi::Logger::error(), getLogger(), log(), server, svGetArrElemPtr1(), svSizeOfArray(), validateSvOpenArray(), esi::WriteChannelPort::write(), and writePorts.
| DPI void sv2cCosimserverFinish | ( | ) |
Shutdown the RPC server.
Definition at line 293 of file DpiEntryPoints.cpp.
References getLogger(), esi::Logger::info(), logFile, server, and serverMutex.
| DPI int sv2cCosimserverInit | ( | ) |
Start the server.
Not required as the first endpoint registration will do this. Provided if one wants to start the server early.
Definition at line 307 of file DpiEntryPoints.cpp.
References context, findPort(), getLogger(), esi::Logger::info(), logFile, server, and serverMutex.
Referenced by sv2cCosimserverEpRegister(), sv2cCosimserverMMIORegister(), and sv2cCosimserverSetManifest().
| DPI void sv2cCosimserverMMIOReadRespond | ( | uint32_t | data, |
| char | error | ||
| ) |
Definition at line 383 of file DpiEntryPoints.cpp.
References assert().
| DPI int sv2cCosimserverMMIOReadTryGet | ( | uint32_t * | address | ) |
Read MMIO function pair.
Assumes that reads come back in the order in which they were requested.
Definition at line 372 of file DpiEntryPoints.cpp.
| DPI int sv2cCosimserverMMIORegister | ( | ) |
Register an MMIO module. Just checks that there is only one instantiated.
Definition at line 362 of file DpiEntryPoints.cpp.
References esi::Logger::error(), getLogger(), mmioRegistered, and sv2cCosimserverInit().
| DPI void sv2cCosimserverMMIOWriteRespond | ( | char | error | ) |
Definition at line 395 of file DpiEntryPoints.cpp.
References assert().
| DPI int sv2cCosimserverMMIOWriteTryGet | ( | uint32_t * | address, |
| uint32_t * | data | ||
| ) |
Write MMIO function pair.
Assumes that write errors come back in the order in which the writes were issued.
Definition at line 409 of file DpiEntryPoints.cpp.
| DPI void sv2cCosimserverSetManifest | ( | int | esiVersion, |
| const svOpenArrayHandle | compressedManifest | ||
| ) |
Set the system zlib-compressed manifest.
Definition at line 331 of file DpiEntryPoints.cpp.
References esi::Logger::error(), getLogger(), esi::Logger::info(), server, sv2cCosimserverInit(), svGetArrElemPtr1(), svSizeOfArray(), and validateSvOpenArray().