Skip to content

Class NetworkBenchItem

ClassList > NetworkBenchItem

Structure of one package in network.

  • #include <net_bench.h>

Public Attributes

Type Name
long m_desc
Synchronization protocol descriptor.
InterChiplet::AddrType m_dst
Destination address.
InterChiplet::InnerTimeType m_dst_cycle
Package injection cycle from the destination side.
uint64_t m_id
Packate id. (Not used yet.)
int m_pac_size
Size of package in bytes.
InterChiplet::AddrType m_src
Source address.
InterChiplet::InnerTimeType m_src_cycle
Package injection cycle from the source side.

Public Functions

Type Name
NetworkBenchItem ()
Construct Empty NetworkBenchItem .
NetworkBenchItem (const InterChiplet::SyncCommand & __src_cmd, const InterChiplet::SyncCommand & __dst_cmd)
Construct NetworkBenchItem from SyncCommand.
NetworkBenchItem (const InterChiplet::SyncCommand & __src_cmd)
Construct NetworkBenchItem from SyncCommand.

Public Attributes Documentation

variable m_desc

long NetworkBenchItem::m_desc;

variable m_dst

InterChiplet::AddrType NetworkBenchItem::m_dst;

variable m_dst_cycle

InterChiplet::InnerTimeType NetworkBenchItem::m_dst_cycle;

variable m_id

uint64_t NetworkBenchItem::m_id;

variable m_pac_size

int NetworkBenchItem::m_pac_size;

variable m_src

InterChiplet::AddrType NetworkBenchItem::m_src;

variable m_src_cycle

InterChiplet::InnerTimeType NetworkBenchItem::m_src_cycle;

Public Functions Documentation

function NetworkBenchItem [1/3]

inline NetworkBenchItem::NetworkBenchItem () 

function NetworkBenchItem [2/3]

Construct NetworkBenchItem from SyncCommand.

inline NetworkBenchItem::NetworkBenchItem (
    const InterChiplet::SyncCommand & __src_cmd,
    const InterChiplet::SyncCommand & __dst_cmd
) 

Parameters:

  • __src_cmd Structure of source command.
  • __dst_cmd Structure of destination command.

function NetworkBenchItem [3/3]

Construct NetworkBenchItem from SyncCommand.

inline NetworkBenchItem::NetworkBenchItem (
    const InterChiplet::SyncCommand & __src_cmd
) 

Parameters:

  • __src_cmd Structure of source command.
    ## Friends Documentation
    

friend operator<<

Overloading operator <<.

inline friend std::ostream & NetworkBenchItem::operator<< (
    std::ostream & os,
    const NetworkBenchItem & __item
) 

Write NetworkBenchItem to output stream.

friend operator>>

Overloading operator >>.

inline friend std::istream & NetworkBenchItem::operator>> (
    std::istream & os,
    NetworkBenchItem & __item
) 

Read NetworkBenchItem from input stream.


The documentation for this class was generated from the following file /data_sda/junwan02/legosim/Chiplet_Heterogeneous_newVersion/interchiplet/includes/net_bench.h