Processor

Represents processing element of the network. It is used as source or destination for packets.

Method

Packet& GetQueueFront()

Updates first Packet if it is required and returns first packet from the ProcessorQueue.

Method

void ReceiveFlit(Flit flit)

Updates statistics for received Flits.

Method

void SendFlit(Flit flit)

Updates statistics for sent Flits.

Method

Flit NextFlit()

Returns next Flit of current front packet of the ProcessorQueue.

Method

void PopFlit()

Removes Flit from the current Packet. If there is no Flits left in the current Packet, removes Packet from the ProcessorQueue.

Constructor

Processor(const SimulationTimer& timer, std::int32_t id,
	std::int32_t min_packet_size, std::int32_t max_packet_size)

Creates new instance of the Processor.

Method

void SetTrafficManager(const TrafficManager& traffic)

Sets TrafficManager pointer to given instance.

Method

void SetFlitTracer(FlitTracer& tracer)

Sets [FlitTracer] ponter to given tinstance.

Method

void Update()

Performs reset, receive and transmit operations.

Method

void TXProcess()

Performs transmitting operations for current cycle.

Method

void RXProcess()

Performs receiving operations for current cycle.