Learning the Channel Structure of CHI (Coherent Hub Interface) (3. Signal Definitions of Each CHI Channel)

Continuing from the previous post.

https://msyksphinz-en.hatenablog.com/entry/2026/04/25/040000msyksphinz-en.hatenablog.com

I want to go over what signals are actually defined for each channel in CHI and AXI.

The decisive difference in the data transfer structure between CHI and AXI is that CHI uses flit-based transfer.

AXI defines a clear signal assignment for each channel, as follows.

Signal name Bits
ARVALID 1
ARREADY 1
ARADDR 32 - 64
ARLEN 8
ARSIZE 3
ARBURST 2
ARID Variable

CHI, on the other hand, has a flit-based design. Fields are packed together into a bit string and transferred in one cycle. The interface itself is very simple, but the meaning of this bit string changes depending on the type of request.

Field Positions Are Fixed Within an Implementation, but Their Meaning Changes with the Opcode

All flits of the same channel have the same bit width. However, some fields are overloaded, with their meaning changing depending on the opcode.

  • Examples of field overloading in REQ flits
    • Change in the meaning of NID
      • For ReadShared / ReadUnique: ReturnNID (forwarding destination node ID)
      • For StashOnce: StashNID (node ID of the Stash destination)
    • Example 2
      • For a normal transaction: AllowRetry (whether retry is allowed)
      • For PCrdReturn: the PCrdReturn flag
    • Example 3
      • For an exclusive access: Excl (exclusive load corresponding to LDXR)
      • For snoop target setting: SnoopMe

The receiver first reads the Opcode and then interprets the remaining fields. This is the same idea as the ARM instruction encoding, where the meaning of bit fields changes depending on the instruction type.

Which fields are valid or invalid is defined in the specification in a table for each opcode.

ReadShared WriteBackFull StashOnce
Addr Valid Valid Valid
ReturnNID Valid (Used as StashNID)
StashNID Valid
AllowRetry Valid Valid Valid
Excl Valid
ExpCompAck Valid

How Flits Are Assembled

Name Bits Meaning
TXREQVALID 1 There is a valid flit in this cycle
TXREQFLITV N The flit itself. All fields are already packed
RXREQLCRDV 1 Link credit return from the other side

Credit-Based, Not READY/VALID

AXI uses a READY signal for backpressure (the handshake is established in a cycle where both VALID and READY are High), whereas CHI uses credit-based flow control.

  1. The receiver gives the sender the "number of free buffers (credits)" in advance
  2. The sender can assert VALID as long as it has credits
  3. Each time one flit is sent, the sender's credit decreases by 1
  4. When processing has progressed, the receiver returns credits with LCRDV

Benefits: - Unlike READY, there is no need to check every cycle "whether it can be processed this cycle" - The pipeline can be made deeper in long-distance interconnects (mesh networks) - There is no round-trip delay equivalent to READY

The benefits of the credit-based scheme are that, unlike VALID & READY, there is no need to check every cycle whether the transfer can be processed in this cycle, that, unlike VALID & READY, the distance between interfaces does not need to be kept short, and that the round trip associated with READY does not need to be taken into account.

Separation of TX / RX

In CHI, each channel may be used in both directions, so the RN-F interface is split into a TX side and an RX side.

Logical channel RN-F transmit (TX) RN-F receive (RX)
REQ TXREQ (request transmission) -
RSP TXRSP (snoop responses, etc.) RXRSP (responses to requests)
DAT TXDAT (data writes, etc.) RXDAT (data reception)
SNP - RXSNP (snoop reception)
  • REQ is issued unilaterally by the RN-F, so it is TX only
  • SNP arrives unilaterally from the HN-F, so it is RX only
  • RSP and DAT are bidirectional (e.g., CompAck goes from RN-F to HN-F, Comp goes from HN-F to RN-F)

From the HN-F's point of view, the directions are reversed.


This is an English translation of the original Japanese post: CHI(Coherent Hub Interface)のチャネル構造を勉強する (3. CHI 各チャネルのシグナル定義)