yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ModIndex::PortInfo Struct Reference

#include <modtools.h>

+ Collaboration diagram for ModIndex::PortInfo:

Public Member Functions

 PortInfo (RTLIL::Cell *_c, RTLIL::IdString _p, int _o)
 
bool operator< (const PortInfo &other) const
 

Data Fields

RTLIL::Cellcell
 
RTLIL::IdString port
 
int offset
 

Detailed Description

Definition at line 31 of file modtools.h.

Constructor & Destructor Documentation

ModIndex::PortInfo::PortInfo ( RTLIL::Cell _c,
RTLIL::IdString  _p,
int  _o 
)
inline

Definition at line 36 of file modtools.h.

36 : cell(_c), port(_p), offset(_o) { }
RTLIL::IdString port
Definition: modtools.h:33
RTLIL::Cell * cell
Definition: modtools.h:32

Member Function Documentation

bool ModIndex::PortInfo::operator< ( const PortInfo other) const
inline

Definition at line 38 of file modtools.h.

38  {
39  if (cell != other.cell)
40  return cell < other.cell;
41  if (offset != other.offset)
42  return offset < other.offset;
43  return port < other.port;
44  }
RTLIL::IdString port
Definition: modtools.h:33
RTLIL::Cell * cell
Definition: modtools.h:32

Field Documentation

RTLIL::Cell* ModIndex::PortInfo::cell

Definition at line 32 of file modtools.h.

int ModIndex::PortInfo::offset

Definition at line 34 of file modtools.h.

RTLIL::IdString ModIndex::PortInfo::port

Definition at line 33 of file modtools.h.


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