1.1. Release Information
1.2. Device Family Support
1.3. Parameters
1.4. Mailbox Client IP Core Interface Signals
1.5. Mailbox Client IP Avalon® Memory-Mapped Interface
1.6. Commands and Responses
1.7. Specifying the Command and Response FIFO Depths
1.8. Enabling Cryptographic Services
1.9. Using the Mailbox Client IP
1.10. Accessing Quad SPI Flash Mailbox Client IP Core Use Case Examples
1.11. Nios® II and Nios® V Processors HAL Driver
1.12. Mailbox Client IP User Guide Archives
1.13. Document Revision History for the Mailbox Client IP User Guide
1.6. Commands and Responses
The host controller communicates with the SDM using command and response packets via the Mailbox Client IP.
The first word of the command and response packets is a header that provides basic information about the command or response.
Figure 3. Command and Response Header Format
Note: The LENGTH field in the command header must match the command length of corresponding command.
The following table describes the fields of the header command.
Header | Bit | Description |
---|---|---|
Reserved | [31:28] | Reserved. |
ID | [27:24] | The command ID. The response header returns the ID specified in the command header. Refer to Operation Commands for command descriptions. |
0 | [23] | Reserved. Must be set to 0. |
LENGTH | [22:12] | Number of words of arguments following the header. The Mailbox Client IP responds with an error if a wrong number of words of arguments is entered for a given command. If there is a mismatch between the command length specified in the command header and the number of words sent, the Mailbox Client IP raises bit 3 of the Interrupt Status Register (COMMAND_INVALID) and the Mailbox Client IP must be reset. |
Reserved | [11] | Reserved. Must be set to 0. |
Command Code/Error Code | [10:0] | Command Code specifies the command. The Error Code indicates whether the command succeeded or failed. In the command header, these bits represent command code. In the response header, these bits represent error code. If the command succeeds, the Error Code is 0. If the command fails, refer to the error codes defined in the Error Code Responses. |