Universal Memory Interface (UMI)
1. Introduction
1.1 Design Philosophy
- Make everything addressable
- Keep it simple
1.2 Architecture
The Universal Memory Interface (UMI) is a transaction based standard for accessing memory through request-response message exchange patterns. UMI includes five distinct abstraction layers:
- Protocol: Protocol/application specific payload (Ethernet, PCIe)
- Transaction: Address based request-response messaging
- Signal: Latency insensitive signaling (packet, ready, valid)
- Link: Communication integrity (flow control, reliability)
- Physical: Electrical signaling (electrons, wires, etc.)
1.3 Key Features
- independent request and response channels
- word sizes up to 1024 bits
- up to 256 word transfers per transaction
- atomic transaction support
- quality of service support
- protection and security support
- reserved opcodes for users and future expansion
1.4 Key Terms
- Transaction: Complete request-response memory operation.
- Message: Unidirectional request or response, consisting of a command header, address fields, and an optional data payload.
- Host: Initiator of memory requests.
- Device: Responder to memory requests.
2. Protocol UMI (PUMI) Layer
UMI transaction payloads are treated as a series of opaque bytes and can carry arbitrary data, including higher level protocols. The maximum data size available for communication protocol data and headers is 32,768 bytes. The following table illustrates recommended bit packing for a number of common communication standards.
| Protocol |
Payload(UMI DATA) |
Header(UMI Data) |
UMI Addresses + Command |
| Ethernet |
64B - 1,518B |
14B |
20B |
| CXL-68 |
64B |
2B |
20B |
| CXL-256 |
254B |
2B |
20B |
3. Transaction UMI (TUMI) Layer
3.1 Theory of Operation
UMI transactions are request-response memory exchanges between Hosts and Devices. Hosts send memory access requests to devices and get responses back. The figure below illustrates the relationship between hosts, devices, and the interconnect network.
Basic UMI read/write transaction involves the transfer of LEN+1 words of data of width 2^SIZE bytes between a device and a host.
Summary:
- UMI transaction type, word size (SIZE), transfer count (LEN), and other options are encoded in a 32bit transaction command header (CMD).
- Device memory access is communicated through a destination address (DA) field.
- The host source address is communicated through the source address (SA) field.
- The destination address indicates the memory address of the first byte in the transaction.
- Memory is accessed in increasing address order starting with DA and ending with DA + (LEN+1)*(2^SIZE)-1.
- The maximum data field size is 32,768 bytes.
Hosts:
- Send read, write memory access request messages
- Validate and execute incoming responses
- Identify egress interface through which to send requests (in case of multiple)
Devices:
- Validate and execute incoming memory request messages
- Initiate response messages when required
- Identify egress interface through which to send responses (in case of multiple)
Constraints:
- Device and source addresses must be aligned to the native word size.
- Requests with the same HOSTID arrive at the target device in the same order that they left the host.
- Responses with the same HOSTID return to the host in the same order that they left the device.
3.2 Message Format
3.2.1 Message Fields
| Term |
Meaning |
| CMD |
Command (type + options) |
| DA |
Destination address of message |
| SA |
Source address (where to return a response) |
| DATA |
Data payload |
| OPCODE |
Command opcode |
| SIZE |
Word size |
| LEN |
Word transfers per message |
| QOS |
Quality of service required |
| PROT |
Protection mode |
| EX |
Exclusive access indicator |
| EOF |
End of frame indicator |
| EOM |
End of message indicator |
| U |
User defined message bit |
| R |
Reserved message bit |
| ERR |
Error code |
| HOSTID |
Host ID |
| DEVID |
Device ID |
| MSB |
Most significant bit |
3.2.2 Message Byte Order
Request and response messages are packed together in the following order:
|
MSB-1:160 |
159:96 |
95:32 |
31:0 |
| 64b architecture |
DATA |
SA |
DA |
CMD |
| 32b architecture |
DATA |
DATA |
SA,DA |
CMD |
3.2.3 Message Types
The table below documents all UMI message types. CMD[4:0] is the UMI opcode defining the type of message being sent. CMD[31:5] are used for message specific options. Complete functional descriptions of each message can be found in the Message Description Section.
| Message |
DATA |
SA |
DA |
31:27 |
26:25 |
24:22 |
21:20 |
19:16 |
15:8 |
7:5 |
4:0 |
| INVALID |
|
|
|
-- |
-- |
-- |
-- |
-- |
-- |
0x0 |
0,0x0 |
| REQ_RD |
|
Y |
Y |
HOSTID |
U |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x1 |
| REQ_WR |
Y |
Y |
Y |
HOSTID |
U |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x3 |
| REQ_WRPOSTED |
Y |
Y |
Y |
HOSTID |
U |
0 ,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x5 |
| REQ_RDMA |
|
Y |
Y |
HOSTID |
U |
0 ,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x7 |
| REQ_ATOMIC |
Y |
Y |
Y |
HOSTID |
U |
0 ,EOF,EOM |
PROT |
QOS |
ATYPE |
SIZE |
R,0x9 |
| REQ_USER0 |
Y |
Y |
Y |
HOSTID |
U |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0xB |
| REQ_FUTURE0 |
Y |
Y |
Y |
HOSTID |
U |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0xD |
| REQ_ERROR |
|
Y |
Y |
HOSTID |
U |
U |
U |
U |
U |
0x0 |
R,0xF |
| REQ_LINK |
|
|
|
U |
U |
U |
U |
U |
U |
0x1 |
R,0xF |
| RESP_RD |
Y |
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x2 |
| RESP_WR |
|
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x4 |
| RESP_USER0 |
|
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x6 |
| RESP_USER1 |
Y |
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0x8 |
| RESP_FUTURE0 |
|
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0xA |
| RESP_FUTURE1 |
Y |
|
Y |
HOSTID |
ERR |
EX,EOF,EOM |
PROT |
QOS |
LEN |
SIZE |
R,0xC |
| RESP_LINK |
|
|
|
U |
U |
U |
U |
U |
U |
0x0 |
R,0xE |
3.3 Message Fields
3.3.1 Source Address and Destination Address (SA[63:0], DA[63:0])
The destination address (DA) specifies the target address of a request or response message. For requests, the DA field is the full device address to access. For responses, the DA field returned is a copy of the requester SA field. The SA field can be a full address (32/64 bits) or a partial routing address and a set of optional UMI signal layer controls needed to drive the interconnect network.
Responses do not have the SA field. At the SUMI level, while the SA bus is always present, its value is undefined in response packets. Implementations must not depend on the value of the SA bus in response packets.
The table below shows the bit mapping for SA field.
| SA |
63:56 |
55:48 |
47:40 |
39:32 |
31:24 |
23:16 |
15:8 |
7:0 |
| 64b mode |
R |
R |
R |
U |
U |
U |
U |
U |
| 32b mode |
-- |
-- |
-- |
-- |
R |
U |
U |
U |
3.3.2 Transaction Word Size (SIZE[2:0])
The SIZE field defines the number of bytes in a transaction word. Devices are not required to support all SIZE options. Hosts must only send messages with a SIZE supported by the target device.
| SIZE[2:0] |
Bytes per word |
| 0b000 |
1 |
| 0b001 |
2 |
| 0b010 |
4 |
| 0b011 |
8 |
| 0b100 |
16 |
| 0b101 |
32 |
| 0b110 |
64 |
| 0b111 |
128 |
3.3.3 Transaction Length (LEN[7:0])
The LEN field defines the number of words of size 2^SIZE bytes transferred by a transaction. The number of transfers is equal to LEN + 1, equating to a range of 1-256 transfers per transaction. The current address of transfer number 'i' in a transaction is defined by:
ADDR_i = START_ADDR + (i-1) * 2^SIZE.
3.3.4 Protection Mode (PROT[1:0])
The PROT field indicates the protected access level of the transaction, enabling controlled access to memory.
| PROT[Bit] |
Value |
Function |
| [0] |
0 |
Unprivileged access |
|
1 |
Privileged access |
| [1] |
0 |
Secure access |
|
1 |
Non-secure access |
3.3.5 Quality of Service (QOS[3:0])
The QOS field controls the quality of service required from the interconnect network. The interpretation of the QOS bits is interconnect network specific.
3.3.6 End of Message (EOM)
The EOM bit is reserved for UMI signal layer and is used to track the transfer of the last word in a message.
3.3.7 End of Frame (EOF)
The EOF bit can be used to indicate the last message in a sequence of related UMI transactions. Use of the EOF bit at an endpoint is optional and implementation specific.
3.3.8 Exclusive Access (EX)
The EX field is used to indicate exclusive access to an address. The function is used to enable atomic load-store exchanges. Mappings to processor and bus exclusive access mechanisms are given in Appendix A. The sequence of operations is:
- Host H sends an exclusive read (REQ_RD with EX=1) to address A.
- Device returns the data at address A in RESP_RD:
- If the device supports exclusive access, it registers a reservation for host H covering address A and returns ERR = 0b01 (EXOK).
- If the device does not support exclusive access, it returns ERR = 0b00 (OK) and registers no reservation. Exclusive writes from host H to the device will then fail.
- Host H sends an exclusive write (REQ_WR with EX=1) to address A.
- Device:
- If host H holds a valid reservation with the same address A and the same SIZE as the exclusive write, device performs the write to address A and returns ERR = 0b01 (EXOK) in RESP_WR to host.
- Otherwise, device does not perform the write to address A and returns ERR = 0b00 (OK) in RESP_WR to host.
- In both cases, device clears the reservation held by host H.
Hosts are identified by the HOSTID field. Reservations follow the rules below.
- Each host holds at most one reservation at a device. An exclusive read from a host replaces that host's previous reservation at the device.
- An exclusive read, or any other read, must not clear or replace a reservation held by another host.
- The reservation covers the 2^SIZE bytes at address A of the exclusive read. A device may reserve a larger naturally aligned region that contains these bytes, and must document the size of that region.
- A write to any byte covered by a reservation clears that reservation. This applies to REQ_WR, REQ_WRPOSTED, REQ_ATOMIC and successful exclusive writes, from any host, including the host holding the reservation.
- A device may clear a reservation at any other time, causing the exclusive write to fail. It must not do so in a way that prevents a host repeating an exclusive read and exclusive write to address A from eventually succeeding while no other host writes the reserved bytes.
- Exclusive requests must have LEN = 0, and address A must be aligned to 2^SIZE. A device that cannot execute an exclusive request (including an unsupported SIZE or a misaligned address) returns ERR = 0b10 (DEVERR) and does not perform the write.
- A host must send the exclusive read and the exclusive write with the same HOSTID, so that they remain in order (see 3.3.10).
- A host must only send an exclusive write to the address and SIZE of its most recent exclusive read. Any other exclusive write is treated as failed by the host and is not sent.
- The EX bit in the RESP_RD and RESP_WR responses is equal to the EX bit of the request.
- Exclusive requests are never split or merged (see 4.1.1 and 4.1.2).
- A device that returns EXOK for an exclusive read must observe every write to the reserved bytes. Reservations must therefore be tracked at the point where all writes to the address converge (e.g. the memory controller), and not ahead of a cache or a second write port.
3.3.9 Error Code (ERR[1:0])
The ERR field indicates the error status of a response (RESP_WR, RESP_RD) transaction.
| ERR[1:0] |
Meaning |
| 0b00 |
OK (no error) |
| 0b01 |
EXOK (successful exclusive access) |
| 0b10 |
DEVERR (device error) |
| 0b11 |
NETERR (network error) |
For exclusive requests (EX=1), OK indicates that the exclusive access failed (see 3.3.8). It is not an error.
DEVERR trigger examples:
- Insufficient privilege level for access
- Write attempted to read-only location
- Unsupported word size
- Access attempt to disabled function
NETERR trigger examples:
- Device address unreachable
- Packet cannot be routed due to data bus width narrowing
3.3.9 Atomic Transaction Type (ATYPE[7:0])
The ATYPE field indicates the type of the atomic transaction.
| ATYPE[7:0] |
Meaning |
| 0x00 |
Atomic add |
| 0x01 |
Atomic and |
| 0x02 |
Atomic or |
| 0x03 |
Atomic xor |
| 0x04 |
Atomic max |
| 0x05 |
Atomic min |
| 0x06 |
Atomic maxu |
| 0x07 |
Atomic minu |
| 0x08 |
Atomic swap |
| 0x09 |
Atomic cas |
| 0xFF |
Atomic reserved |
3.3.10 Host ID (HOSTID[4:0])
The HOSTID field indicates the ID of the host making a transaction request. All transactions with the same ID value must remain in order.
3.3.11 User Field (U)
Message bit designated with a U are available for use by application and signal layer implementations. Any undefined user bits shall be set to zero.
3.3.12 Reserved Field (R)
Message bit designated with an R are reserved for future UMI enhancements and shall be set to zero.
3.4 Message Descriptions
3.4.1 INVALID
INVALID indicates an invalid message. A receiver can choose to ignore the message or to take corrective action.
3.4.2 REQ_RD
REQ_RD reads (2^SIZE)*(LEN+1) bytes from device address(DA). The device initiates a RESP_RD message to return data to the host source address (SA).
If at some point in the network REQ_RD is determined to be unroutable (for example, at a network boundary), RESP_RD should be sent back to the SA of the request with ERR=NETERR with no data (DATA=0 at the SUMI level, empty array at the TUMI level). All other fields in RESP_RD (SIZE, LEN, etc.) should match those in the request.