Datasheet
____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108
184 of 366
11.4.3
Counters
Each counter can be read from two different addresses. Reading from the first address—0x10,000 + offset—does
not affect the counter value. Reading from the second address—0x11,000 + offset—causes the counter to be
cleared after it is read.
Table 11-6. Counters Types
Address Counter Type Read/Write Reset Value
10,000 Counters – no clear on read Read Only None
11,000 Counters – clear on read Read Only-Clear on Read None
When reading from counters wider than 16 bits in 16-bit mode, use the following procedure:
1. Read from address 2, i.e. H_AD[1]=1. All 32 bits are inte
rnally latched and bits 15:0 are output on
H_D[15:0].
2.
Read from address 0, i.e. H_AD [1]
=0. Bits 31:16 are output on H_D[15:0].
11.4.3.1
Per Bundle Counters
In the register descriptions in this section, the index n indicates the bundle number: 0 to 63.
Ethernet Rx Good Packets Counter 0x000+n*4
Bits Data Element Name R/W
Reset
Value
Description
[31:0] Good_packets_received R None Good packets received from Ethernet. Counter wraps
around to 0 from its maximum value.
Ethernet Tx Good Packets Counter 0x200+n*4
Bits Data Element Name R/W
Reset
Value
Description
[31:0] Good_packets_transmitted R None Good packets transmitted to Ethernet. Counter wraps
around to 0 from its maximum value.
Ethernet Rx Lost/Jump Event Packets Counter 0x300+n*4
Bits Data Element Name R/W
Reset
Value
Description
[31:16] Reserved - None Must be set to zero
[15:0] Lost_AAL1_packets_Rxd /
Lost_HDLC_packets_Rxd /
Jumped_SAToP/CESoPSN_
packets_Rxd
R None Number of lost/jumped packets encountered by
RX_AAL1, RX_HDLC or RX_SATOP payload machine:
AAL1 and SAToP/CESoPSN – The counter is increased
by the gap between the received packet sequence
number and the expected packet sequence number
(except when this gap is higher than the configured
Rx_max_lost_packets val
ue).
HDLC – The counter is increased by the difference
between the received packet sequence number and the
expected packet sequence number only when this
difference is smaller than 32768.
SAToP/CESoPSN – the CPU can calculate the number of
lost packets using the following equation:
lost packets = (jumped packets – Rxd reordered packets)










