gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
Credit Class Reference

#include <Credit.hh>

Inheritance diagram for Credit:
flit

Public Member Functions

 Credit ()
 
 Credit (int vc, bool is_free_signal, Tick curTime)
 
flitserialize (int ser_id, int parts, uint32_t bWidth)
 
flitdeserialize (int des_id, int num_flits, uint32_t bWidth)
 
void print (std::ostream &out) const
 
 ~Credit ()
 
bool is_free_signal ()
 
- Public Member Functions inherited from flit
 flit ()
 
 flit (int id, int vc, int vnet, RouteInfo route, int size, MsgPtr msg_ptr, int MsgSize, uint32_t bWidth, Tick curTime)
 
virtual ~flit ()
 
int get_outport ()
 
int get_size ()
 
Tick get_enqueue_time ()
 
Tick get_dequeue_time ()
 
int get_id ()
 
Tick get_time ()
 
int get_vnet ()
 
int get_vc ()
 
RouteInfo get_route ()
 
MsgPtrget_msg_ptr ()
 
flit_type get_type ()
 
std::pair< flit_stage, Tickget_stage ()
 
Tick get_src_delay ()
 
void set_outport (int port)
 
void set_time (Tick time)
 
void set_vc (int vc)
 
void set_route (RouteInfo route)
 
void set_src_delay (Tick delay)
 
void set_dequeue_time (Tick time)
 
void set_enqueue_time (Tick time)
 
void increment_hops ()
 
bool is_stage (flit_stage stage, Tick time)
 
void advance_stage (flit_stage t_stage, Tick newTime)
 
bool functionalWrite (Packet *pkt)
 

Private Attributes

bool m_is_free_signal
 

Additional Inherited Members

- Static Public Member Functions inherited from flit
static bool greater (flit *n1, flit *n2)
 
- Public Attributes inherited from flit
uint32_t m_width
 
int msgSize
 
- Protected Attributes inherited from flit
int m_id
 
int m_vnet
 
int m_vc
 
RouteInfo m_route
 
int m_size
 
Tick m_enqueue_time
 
Tick m_dequeue_time
 
Tick m_time
 
flit_type m_type
 
MsgPtr m_msg_ptr
 
int m_outport
 
Tick src_delay
 
std::pair< flit_stage, Tickm_stage
 

Detailed Description

Definition at line 45 of file Credit.hh.

Constructor & Destructor Documentation

◆ Credit() [1/2]

Credit::Credit ( )
inline

Definition at line 48 of file Credit.hh.

Referenced by deserialize(), and serialize().

◆ Credit() [2/2]

Credit::Credit ( int  vc,
bool  is_free_signal,
Tick  curTime 
)

Definition at line 39 of file Credit.cc.

References CREDIT_, is_free_signal(), m_is_free_signal, and flit::m_type.

◆ ~Credit()

Credit::~Credit ( )
inline

Definition at line 56 of file Credit.hh.

Member Function Documentation

◆ deserialize()

flit * Credit::deserialize ( int  des_id,
int  num_flits,
uint32_t  bWidth 
)
virtual

Reimplemented from flit.

Definition at line 59 of file Credit.cc.

References Credit(), DPRINTF, m_is_free_signal, flit::m_time, and flit::m_vc.

◆ is_free_signal()

bool Credit::is_free_signal ( )
inline

Definition at line 58 of file Credit.hh.

References m_is_free_signal.

Referenced by Credit(), OutputUnit::wakeup(), and NetworkInterface::wakeup().

◆ print()

void Credit::print ( std::ostream &  out) const
virtual

Reimplemented from flit.

Definition at line 73 of file Credit.cc.

References m_is_free_signal, flit::m_time, flit::m_type, and flit::m_vc.

◆ serialize()

flit * Credit::serialize ( int  ser_id,
int  parts,
uint32_t  bWidth 
)
virtual

Reimplemented from flit.

Definition at line 47 of file Credit.cc.

References Credit(), DPRINTF, m_is_free_signal, flit::m_time, and flit::m_vc.

Member Data Documentation

◆ m_is_free_signal

bool Credit::m_is_free_signal
private

Definition at line 61 of file Credit.hh.

Referenced by Credit(), deserialize(), is_free_signal(), print(), and serialize().


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

Generated on Wed Sep 30 2020 14:02:23 for gem5 by doxygen 1.8.17