type2_compare_1_word_0 (GEM) Register

Zynq UltraScale+ Devices Register Reference (UG1087)

Document ID
UG1087
Release Date
2024-03-13
Revision
1.10

type2_compare_1_word_0 (GEM) Register Description

Register Nametype2_compare_1_word_0
Offset Address0x0000000708
Absolute Address 0x00FF0B0708 (GEM0)
0x00FF0C0708 (GEM1)
0x00FF0D0708 (GEM2)
0x00FF0E0708 (GEM3)
Width32
TyperwNormal read/write
Reset Value0x00000000
DescriptionCompare A,B and C fields of the screener type 2 match register are pointers to a pool of up to 32 compare registers. If enabled the compare is true if the data at the OFFSET into the frame, ANDed with the MASK Value, is equal to the COMPARE Value. A 16 bit word comparison is done. The byte at the OFFSET number of bytes from the index start is compared thru bits 7:0 of the configured VALUE and MASK.
The byte at the OFFSET number of bytes + 1 from the index start is compared thru bits 15:8 of the configured VALUE and MASK. The OFFSET can be configured to be from 0 to 127 bytes from either the start of the frame, the byte following the etherType field (last EtherType in the header if the frame is VLAN tagged), the byte following the IP header (IPv4 or IPv6) or from the byte following the start of the TCP/UDP header. The required number of Type 2 screening registers up to a maximum of 32 is configurable in the gem defines file and have been allocated APB address space between 0x700 and 0x7fc.
Note. when using RX Partial Store and Forward mode and priority queues, the frame offset must be less than the Partial Store and Forward watermark. If the offset is higher than the watermark value its not possible to identify the priority queue before the frame is sent to the AMBA interface, and an incorrect priority queue may be used. The bit mapping for these registers is as follows:

type2_compare_1_word_0 (GEM) Register Bit-Field Summary

Field NameBitsTypeReset ValueDescription
compare_value31:16rwNormal read/write0x02 byte Compare Value.
The byte stored in bits [23:16] is compared against the 1st byte of the 2 bytes extracted from the frame. The byte stored in bits [31:24] is compared against the 2nd byte of the 2 bytes extracted from the frame
mask_value15:0rwNormal read/write0x02 byte Mask Value