ilang  0.9.1
ILAng: A Modeling and Verification Platform for SoCs
Static Public Member Functions | List of all members
ilang::IlaSerDesMngr Class Reference

Class wrapper for the ILA portable Ser/Des interface. More...

#include <interface.h>

Static Public Member Functions

static json Serialize (const InstrLvlAbsPtr &m)
 Serialize the ILA model to a JSON object. More...
 
static InstrLvlAbsPtr Deserialize (const json &j)
 Deserialize the ILA model from a JSON object. More...
 
static bool SerToFile (const InstrLvlAbsPtr &m, const std::string &file_name, const int &indent=-1)
 Serialize the ILA model to the given file. More...
 
static InstrLvlAbsPtr DesFromFile (const std::string &file_name)
 Deserialize the ILA model from the given file. More...
 

Detailed Description

Class wrapper for the ILA portable Ser/Des interface.

Member Function Documentation

◆ Deserialize()

static InstrLvlAbsPtr ilang::IlaSerDesMngr::Deserialize ( const json &  j)
static

Deserialize the ILA model from a JSON object.

Parameters
[in]jthe input JSON object.
Returns
The pointer to the deserialized ILA model. Return NULL if fail.

◆ DesFromFile()

static InstrLvlAbsPtr ilang::IlaSerDesMngr::DesFromFile ( const std::string &  file_name)
static

Deserialize the ILA model from the given file.

Parameters
[in]file_namethe input file name.
Returns
The pointer to the deserialized ILA model. Return NULL if fail.

◆ Serialize()

static json ilang::IlaSerDesMngr::Serialize ( const InstrLvlAbsPtr m)
static

Serialize the ILA model to a JSON object.

Parameters
[in]mthe ILA model to serialize.
Returns
Return the serialized JSON object.

◆ SerToFile()

static bool ilang::IlaSerDesMngr::SerToFile ( const InstrLvlAbsPtr m,
const std::string &  file_name,
const int &  indent = -1 
)
static

Serialize the ILA model to the given file.

Parameters
[in]mthe ILA model to serialize.
[in]file_namethe output file name.
[in]indentthe number of space to indent.
Returns
Return true if complete sucessfully.

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