type2_compare_0_word_0 (GEM) Register Description
Register Name | type2_compare_0_word_0 |
---|---|
Offset Address | 0x0000000700 |
Absolute Address |
0x00FF0B0700 (GEM0) 0x00FF0C0700 (GEM1) 0x00FF0D0700 (GEM2) 0x00FF0E0700 (GEM3) |
Width | 32 |
Type | rwNormal read/write |
Reset Value | 0x00000000 |
Description | Compare 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_0_word_0 (GEM) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
compare_value | 31:16 | rwNormal read/write | 0x0 | 2 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_value | 15:0 | rwNormal read/write | 0x0 | 2 byte Mask Value |