beautypg.com

Individual buffers, Individual buffers transmit scheduler (tx_sched), Individual – Altera POS-PHY Level 4 IP Core User Manual

Page 73: Fer to

background image

Chapter 5: Functional Description—Transmitter

5–3

Block Description

December 2014

Altera Corporation

POS-PHY Level 4 IP Core User Guide

When the ignore backpressure feature is turned off, the transmitter uses the status
channel to decide whether or not to transmit. Packets are only sent when none of the
ports in the incoming status channel are found to be satisfied, and there are at least
burst unit size bytes in the Atlantic FIFO buffer, or an EOP. With this mode, there is a
head-of-line blocking limitation, where if one port is satisfied it blocks all ports from
transmitting.

Regardless of the mode you select, the scheduling and insertion of the SPI-4.2 training
pattern is handled automatically by the IP core.

1

In the shared buffer with embedded addressing mode, the MaxBurst1 and MaxBurst2
parameters are unused because the user logic does the scheduling.

Individual Buffers

When you turn on Individual Buffers, the POS-PHY Level 4 IP core consists of the
transmitter processor logic, a credit-based round-robin scheduler, and a separate
Atlantic FIFO buffer for each port. Each buffer supports an optional Atlantic error
checking block.

The advantages of the individual buffers mode are the included scheduler, and that
each Atlantic interface can be accessed in parallel and independently. For individual
buffers transmitter variations, scheduling logic decodes the incoming status channel
and decides which buffer (port) to serve, and then reads from that buffer.

f

For more information, refer to

“Individual Buffers Transmit Scheduler (tx_sched)” on

page 5–3

.

1

Because the number of ports directly increases the logic usage, the individual buffers
mode is not well suited for applications with a large number of ports.

Individual Buffers Transmit Scheduler (tx_sched)

For individual buffers variations, the transmit scheduler manages the SPI-4.2 per-port
credits, and transmits data from the appropriate FIFO buffer.

The scheduler includes a next-credit table that is updated when status is received, and
a second credit table that maintains the number of credits left. Each table has n port
entries, where each entry is henceforth referred to as a register.

The next-credits register contains the number of credits corresponding to the latest
status update. A starving status update loads the next-credit register with MaxBurst1.
A hungry status update loads the next-credit register with MaxBurst2. A satisfied
status update has no effect on the next-credits register.

Whenever a port is not selected, or exhausts its credit-counter register, the contents of
the next-credits holding register are loaded into the credit-counter register, and the
next-credits register is cleared. The next-credits register remains at zero until the next
status update is received.