CIRCT 24.0.0git
Loading...
Searching...
No Matches
esi_test Namespace Reference

Classes

class  LoopbackInOutAdd
class  CallbackTest
class  MMIOReadWriteClient
class  ConstProducer
class  JoinAddFunc
class  Join
class  WindowToStructFunc
class  StructToWindowFunc
class  Top

Typedefs

using ProbeFn = int (*)(esi::Accelerator *)
using ProbeEntry = std::pair<std::string, ProbeFn>

Functions

 MMIOClient (int add_amt, int size=None)
void configureMsvcDebugReports ()
int runProbes (int argc, const char *argv[], const char *name, const char *description, const std::vector< ProbeEntry > &probes)
 Run the probe-runner main loop. Returns 0 on success, nonzero on failure.

Variables

 FourFieldStruct
 windowed_struct
 bsp = get_bsp(sys.argv[2] if len(sys.argv) > 2 else None)
 s
esi::AcceleratorConnection * probeConnection = nullptr
 The connection the probes are running against, for probes which need connection-level services (e.g.

Typedef Documentation

◆ ProbeEntry

using esi_test.ProbeEntry = std::pair<std::string, ProbeFn>

Definition at line 37 of file probe_runner.h.

◆ ProbeFn

using esi_test.ProbeFn = int (*)(esi::Accelerator *)

Definition at line 36 of file probe_runner.h.

Function Documentation

◆ configureMsvcDebugReports()

void esi_test::configureMsvcDebugReports ( )
inline

Definition at line 44 of file probe_runner.h.

◆ MMIOClient()

esi_test.MMIOClient ( int add_amt,
int size = None )

Definition at line 82 of file esi_test.py.

References wrap().

Referenced by esi_test.Top.construct().

◆ runProbes()

int esi_test::runProbes ( int argc,
const char * argv[],
const char * name,
const char * description,
const std::vector< ProbeEntry > & probes )
inline

Run the probe-runner main loop. Returns 0 on success, nonzero on failure.

Definition at line 57 of file probe_runner.h.

References esi::CliParser::connect(), esi::Logger::error(), esi::CliParser::esiParse(), esi::CliParser::getContext(), esi::Context::getLogger(), and probeConnection.

Variable Documentation

◆ bsp

esi_test.bsp = get_bsp(sys.argv[2] if len(sys.argv) > 2 else None)

Definition at line 421 of file esi_test.py.

◆ FourFieldStruct

esi_test.FourFieldStruct
Initial value:
1= StructType({
2 "a": Bits(32),
3 "b": Bits(32),
4 "c": Bits(32),
5 "d": Bits(32),
6})

Definition at line 187 of file esi_test.py.

Referenced by esi_test.WindowToStructFunc.construct().

◆ probeConnection

esi::AcceleratorConnection* esi_test.probeConnection = nullptr
inline

The connection the probes are running against, for probes which need connection-level services (e.g.

HostMem). Set by runProbes(); valid only while probes run.

Definition at line 42 of file probe_runner.h.

Referenced by runProbes(), and serialCoordTranslateHostMemTest().

◆ s

esi_test.s
Initial value:
1= pycde.System(bsp(Top),
2 name="ESILoopback",
3 output_directory=sys.argv[1],
4 core_clock_frequency_hz=20_000_000)

Definition at line 422 of file esi_test.py.

◆ windowed_struct

esi_test.windowed_struct
Initial value:
1= Window(
2 "four_field_window", FourFieldStruct,
3 [Window.Frame("frame1", ["a", "b"]),
4 Window.Frame("frame2", ["c", "d"])])

Definition at line 195 of file esi_test.py.