34#include "debug/RubyNetwork.hh"
47 MsgPtr msg_ptr,
int MsgSize, uint32_t bWidth,
Tick curTime)
70 else if (
id == (size - 1))
82 int new_id = (
m_id*ratio) + ser_id;
84 assert(new_id < new_size);
97 int new_id = ((int)
divCeil((
float)(
m_id+1), (
float)ratio)) - 1;
99 assert(new_id < new_size);
114 out <<
"Id=" <<
m_id <<
" ";
115 out <<
"Type=" <<
m_type <<
" ";
116 out <<
"Size=" <<
m_size <<
" ";
117 out <<
"Vnet=" <<
m_vnet <<
" ";
118 out <<
"VC=" <<
m_vc <<
" ";
123 out <<
"Set Time=" <<
m_time <<
" ";
124 out <<
"Width=" <<
m_width<<
" ";
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
virtual bool functionalRead(Packet *pkt)
The two functions below are used for reading / writing the message functionally.
virtual bool functionalWrite(Packet *pkt)
bool functionalWrite(Packet *pkt)
virtual flit * serialize(int ser_id, int parts, uint32_t bWidth)
void set_src_delay(Tick delay)
virtual flit * deserialize(int des_id, int num_flits, uint32_t bWidth)
void set_enqueue_time(Tick time)
virtual void print(std::ostream &out) const
bool functionalRead(Packet *pkt, WriteMask &mask)
std::pair< flit_stage, Tick > m_stage
static constexpr T divCeil(const T &a, const U &b)
std::shared_ptr< Message > MsgPtr
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Tick
Tick count type.