CIRCT 21.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
esi::CliParser Class Reference

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

#include <CLI.h>

Inheritance diagram for esi::CliParser:
Inheritance graph
[legend]
Collaboration diagram for esi::CliParser:
Collaboration graph
[legend]

Public Member Functions

 CliParser (const std::string &toolName)
 
int esiParse (int argc, const char **argv)
 Run the parser.
 
std::unique_ptr< AcceleratorConnectionconnect ()
 Connect to the accelerator using the specified backend and connection.
 
ContextgetContext ()
 Get the context.
 

Protected Attributes

Context ctxt
 
std::string backend
 
std::string connStr
 
bool debug
 
bool verbose
 

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, and verbose.

Member Function Documentation

◆ connect()

std::unique_ptr< AcceleratorConnection > esi::CliParser::connect ( )
inline

Connect to the accelerator using the specified backend and connection.

Definition at line 53 of file CLI.h.

References backend, esi::Context::connect(), connStr, and ctxt.

Referenced by main().

◆ esiParse()

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

Run the parser.

Definition at line 43 of file CLI.h.

References ctxt, esi::Logger::Debug, esi::Logger::Info, and verbose.

Referenced by main().

◆ getContext()

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

Get the context.

Definition at line 58 of file CLI.h.

References ctxt.

Referenced by main().

Member Data Documentation

◆ backend

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

Definition at line 63 of file CLI.h.

Referenced by CliParser(), and connect().

◆ connStr

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

Definition at line 64 of file CLI.h.

Referenced by CliParser(), and connect().

◆ ctxt

Context esi::CliParser::ctxt
protected

Definition at line 61 of file CLI.h.

Referenced by connect(), esiParse(), and getContext().

◆ debug

bool esi::CliParser::debug
protected

Definition at line 65 of file CLI.h.

Referenced by esi-cosim.Verilator::compile_commands(), and esi-cosim.Simulator::run().

◆ verbose

bool esi::CliParser::verbose
protected

Definition at line 66 of file CLI.h.

Referenced by CliParser(), and esiParse().


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