CIRCT 24.0.0git
Loading...
Searching...
No Matches
esi::CliParser Class Reference

Common options and code for ESI runtime tools. More...

#include <CLI.h>

Inheritance diagram for esi::CliParser:
Collaboration diagram for esi::CliParser:

Public Member Functions

 CliParser (const std::string &toolName)
int esiParse (int argc, const char **argv)
 Run the parser.
AcceleratorConnection * connect ()
 Connect to the accelerator using the specified backend and connection.
Context & getContext ()
 Get the context.

Protected Attributes

std::unique_ptr< Context > ctxt
std::string backend
std::string connStr
bool trace = false
bool debug = false
bool verbose = false

Detailed Description

Common options and code for ESI runtime tools.

Definition at line 29 of file CLI.h.

Constructor & Destructor Documentation

◆ CliParser()

esi::CliParser::CliParser ( const std::string & toolName)
inline

Definition at line 31 of file CLI.h.

References backend, connStr, trace, and verbose.

Member Function Documentation

◆ connect()

AcceleratorConnection * esi::CliParser::connect ( )
inline

Connect to the accelerator using the specified backend and connection.

Definition at line 66 of file CLI.h.

References backend, connStr, and ctxt.

Referenced by main(), and esi_test::runProbes().

◆ esiParse()

int esi::CliParser::esiParse ( int argc,
const char ** argv )
inline

Run the parser.

Definition at line 52 of file CLI.h.

References ctxt, esi::Logger::Debug, esi::Logger::Info, esi::Logger::Trace, trace, verbose, esi::Logger::Warning, and esi::Context::withLogger().

Referenced by main(), and esi_test::runProbes().

◆ getContext()

Context & esi::CliParser::getContext ( )
inline

Get the context.

Definition at line 69 of file CLI.h.

References ctxt.

Referenced by main(), and esi_test::runProbes().

Member Data Documentation

◆ backend

std::string esi::CliParser::backend
protected

Definition at line 74 of file CLI.h.

Referenced by CliParser(), and connect().

◆ connStr

std::string esi::CliParser::connStr
protected

Definition at line 75 of file CLI.h.

Referenced by CliParser(), and connect().

◆ ctxt

std::unique_ptr<Context> esi::CliParser::ctxt
protected

◆ debug

bool esi::CliParser::debug = false
protected

Definition at line 77 of file CLI.h.

Referenced by verilator.Verilator::_write_cmake(), and simulator.Simulator::run_proc().

◆ trace

bool esi::CliParser::trace = false
protected

Definition at line 76 of file CLI.h.

Referenced by CliParser(), and esiParse().

◆ verbose

bool esi::CliParser::verbose = false
protected

Definition at line 78 of file CLI.h.

Referenced by CliParser(), and esiParse().


The documentation for this class was generated from the following file: