|
CIRCT 24.0.0git
|
#include "loopback/LoopbackIP.h"#include "probe_runner.h"#include "esi/Accelerator.h"#include "esi/Manifest.h"#include "esi/Services.h"#include "esi/TypedPorts.h"#include <cstdint>#include <cstring>#include <iostream>#include <random>#include <stdexcept>
Go to the source code of this file.
Classes | |
| struct | Coord |
| Test the CoordTranslator module using message translation. More... | |
| struct | SerialCoordHeader |
| struct | SerialCoordData |
| struct | SerialCoordInput |
| struct | SerialCoordOutputHeader |
| struct | SerialCoordOutputData |
| union | SerialCoordOutputFrame |
Functions | |
| static int | runLoopbackI8 (Accelerator *accel) |
| static int | runStructFunc (Accelerator *accel) |
| static int | runOddStructFunc (Accelerator *accel) |
| static int | runArrayFunc (Accelerator *accel) |
| static int | serialCoordTranslate (Accelerator *accel, services::HostMemAllocator *allocator, const char *probeName) |
| static void | checkHostMemTake (services::HostMemAllocator &allocator) |
| static int | serialCoordTranslateTest (Accelerator *accel) |
| static int | serialCoordTranslateHostMemTest (Accelerator *accel) |
| static int | runDepthConstant (Accelerator *) |
| ESI_PROBE_REGISTRY ("loopback-cpp", "Loopback cosim test using generated ESI headers.", {"depth_constant", &runDepthConstant}, {"loopback_i8", &runLoopbackI8}, {"struct_func", &runStructFunc}, {"odd_struct_func", &runOddStructFunc}, {"array_func", &runArrayFunc}, {"serial_coord_translate", &serialCoordTranslateTest}, {"serial_coord_translate_hostmem", &serialCoordTranslateHostMemTest},) | |
|
static |
Definition at line 341 of file loopback.cpp.
References esi::services::HostMemAllocator::allocate(), esi::Segment::region, SerialCoordInput::segment(), esi::Segment::size, and SerialCoordInput::take().
Referenced by serialCoordTranslateHostMemTest().
| ESI_PROBE_REGISTRY | ( | "loopback-cpp" | , |
| "Loopback cosim test using generated ESI headers." | , | ||
| {"depth_constant", &runDepthConstant} | , | ||
| {"loopback_i8", &runLoopbackI8} | , | ||
| {"struct_func", &runStructFunc} | , | ||
| {"odd_struct_func", &runOddStructFunc} | , | ||
| {"array_func", &runArrayFunc} | , | ||
| {"serial_coord_translate", &serialCoordTranslateTest} | , | ||
| {"serial_coord_translate_hostmem", &serialCoordTranslateHostMemTest} | ) |
References runDepthConstant().
|
static |
Definition at line 114 of file loopback.cpp.
References esi::MessageData::as(), and esi::HWModule::resolvePort().
|
static |
Definition at line 389 of file loopback.cpp.
Referenced by ESI_PROBE_REGISTRY(), and ESI_PROBE_REGISTRY().
|
static |
Definition at line 18 of file loopback.cpp.
References esi::MessageData::as(), esi::ReadChannelPort::connect(), esi::WriteChannelPort::connect(), esi::MessageData::getSize(), esi::ReadChannelPort::read(), esi::HWModule::resolvePort(), and esi::WriteChannelPort::write().
|
static |
Definition at line 76 of file loopback.cpp.
References esi::MessageData::as(), esi::MessageData::from(), and esi::HWModule::resolvePort().
|
static |
Definition at line 49 of file loopback.cpp.
References esi::MessageData::as(), esi::MessageData::from(), and esi::HWModule::resolvePort().
|
static |
Definition at line 262 of file loopback.cpp.
References esi::ReadChannelPort::connect(), esi::TypedWritePort< T, SkipTypeCheck >::connect(), esi::HWModule::getChildren(), esi::Segment::getDeviceAddress(), esi::ReadChannelPort::read(), esi::Segment::region, and esi::TypedWritePort< T, SkipTypeCheck >::write().
Referenced by serialCoordTranslateHostMemTest(), and serialCoordTranslateTest().
|
static |
Definition at line 383 of file loopback.cpp.
References checkHostMemTake(), esi_test::probeConnection, and serialCoordTranslate().
|
static |
Definition at line 378 of file loopback.cpp.
References serialCoordTranslate().