Symmetric Cryptographic Accelerator Hard IP User Guide
ID
714305
Date
11/28/2025
Public
4.1. Installing and Licensing IP Cores
4.2. Specifying the IP Parameters and Options
4.3. Generated File Structure
4.4. Symmetric Cryptographic Accelerator Hard IP Flow
4.5. Dynamically Disabling the SM4 Capability
4.6. Error Handling
4.7. Error Reporting
4.8. Resetting the IP
4.9. Channel Definition and Allocation
4.10. Byte Ordering
4.11. AXI-ST Single Packet Mode
4.12. AXI-ST Multiple Packet Mode
6.1.1. MACsec Flow
A stream defines a MACsec physical port on the FPGA. The MACsec protocol is implemented for each stream with a certain number of channels allocated to each port. The MACsec data streams in 128-bit segments from each port associated with that channel.
The MACsec data flow complies with the following requirements:
- The 1024 channels in the AES/SM4 Inline Cryptographic Accelerator are assigned to the physical ports/streams uniquely.
- The Symmetric Cryptographic Accelerator Hard IP AXI-ST port streams the data packets.
- For specific stream, once a packet with a given channel starts processing, the packet processing must end before a packet from a different channel can start. Each clock cycle contains data from only a single stream.
- Several IDLE segments between the packet end and a packet start may occur.
- For packets with size of 64 bytes or smaller, IDLE aligned 128-bit segments may occur until the next packet starts.
- Each given clock cycle supports segments of up to two packets.
Figure 17. MACsec Profile Port UsageThe figure displays the data streaming flow from ports to the FPGA. Each box represents a 128 bit segment:
- Orange color: Indicates a DATA segment.
- White color: Indicates an IDLE segment.
- Yellow color: Indicates a start of packet (SOP). The number indicates the channel ID for the specific packet.