test_reset_values (TC-MG-01) |
ID, generics, reset values of the configuration registers and of the configuration outputs in the core and lane domains; every fixed reset value of the register description (ofb_regs_pkg, generated from regs/ofb_regs.yml) read back; LANE_INIT_TIMEOUT 5000 (InitTimeoutWords_g) and PA_CTRL 0x03600005 read back and at the outputs |
MG-IF-01, MG-CF-01, MG-CC-01, MG-PA-01, MG-PA-02 |
test_config (TC-MG-02) |
Configuration written and read back, outputs in the domains; Link Reset and Interface Reset give one pulse each; Interface Reset restores the reset values |
MG-IF-01, MG-CF-01, MG-CF-02, MG-CC-01 |
test_status (TC-MG-03) |
Data Link (including TX_READY in DL_STATUS bit 9, 1 and 0), Has Credit, lane (including the bit synchronisation in LANE_STATUS bit 6) and Multi-Lane status read through the status crossings |
MG-IF-02, MG-CC-01, MG-PL-02, MG-ST-06 |
test_qos_registers (TC-MG-05) |
Reset values of the QoS registers, write and read back, VN 0 fixed for VC 0, forwarding of the writes to the core clock, bandwidth status and time-slot, Interface Reset |
MG-IF-01, MG-IF-02, MG-CF-01, MG-VN-01, DL-QS-07 |
test_events (TC-MG-04) |
Events of the three domains set sticky flags and counters; W1C; interrupt with mask; receive row overflow flag with interrupt; TX_LOST flag (DL_ERRORS bit 12) with interrupt, cleared by W1C; Link Reset clears the flags and counters of all layers (with ML_MISALIGNED and ML_ALIGN_TIMEOUTS), no interrupt afterwards |
MG-ST-01 to 04, MG-ST-06, MG-ST-07 |
test_edac (TC-MG-07) |
SEC and DED events in the core, user and lane domains counted per channel; DED and SEC flags, DED interrupt; clear of a channel and of all; injection commands reach the write domain of the channel only; an error injected into the QoS write FIFO is corrected and counted in channel CTRL |
MG-ED-01 to 03, PKG-11 |
test_multilane_registers (TC-MG-06) |
Reset values of TxEn, RxEn, maximum number of data-sending lanes and bypass in the lane and core domains; written values reach both domains; ML_STATUS with the bypass bit; Misaligned events counted and cleared; alignment watchdog expiries counted in ML_ALIGN_TIMEOUTS and cleared; serial loopback enables de-asserted after reset, written values reach the lane domain and read back, cleared by Interface Reset; Interface Reset restores ML_CTRL and LANE_CTRL |
MG-ML-01, MG-CF-01, MG-PL-01, MG-ST-07 |
test_register_access (TC-MG-08) |
CRC-8, frame and sequence counters, credit overflow, bandwidth and lane event flags; a write clears every counter, W1C clears only the written bits; idle limit and time-slots 63 to 32 written, read back and forwarded; registers of a lane beyond NumLanes_g read as zero and ignore writes, LANE_STATUS read only; SEC flag interrupt |
MG-IF-01, MG-IF-02, MG-ST-01 to 03, MG-ED-02 |
test_counter_saturation (TC-MG-09) |
65537 CRC-8 errors: the counter stays at 0xFFFF (saturating increment shared by all counters, also the PRBS counters of 32 and 48 bits); at the same time 65537 completed receiver resets in the lane domain: RX_RESETS stays at 0xFFFF, the timeout count of the register unchanged |
MG-ST-02, MG-PR-03, MG-PA-03 |
test_pa_registers (TC-MG-12) |
LANE_INIT_TIMEOUT written (reserved bits 31:24 read as zero) and at the lane output; PA_CTRL written (reserved bits zero) and at the adapter outputs; both back to their reset values with Interface Reset. LANE_CTRL RX_RESET gives one command pulse per write of one and reads as zero, the other bits unchanged. LANE_STATUS bits 24 to 27 follow the receiver reset status inputs. A buffer error level gives one RX_BUF_ERROR flag at its rising edge, none while it stays; TX_BUF_ERROR (pulse), three receiver resets: RX_RESET flag and RX_RESETS 3; RX_RESET_TIMEOUT flag, not counted as a receiver reset; interrupt with each of the mask bits 20 to 23, cleared with the flags; RX_RESETS cleared by a write and by Link Reset, LANE_EVENTS by Link Reset |
MG-PA-01, MG-PA-02, MG-PA-03 |
test_prbs (TC-MG-10) |
PRBS registers of a lane: reset values; TX and RX pattern at the Physical adapter ports; lock status in LANE_STATUS; count reset and force error give one pulse each; ten words with errors counted, none while held or with the checker off; the count reset clears the counters; 65536 checked words read as 1; Interface Reset clears the control register |
MG-PR-01, MG-PR-02, MG-PR-03 |
test_ni_events (TC-MG-11) |
A receive framing error of VC 1 sets DL_ERRORS bit 11 and bit 1 of VC_RX_FRAMING_ERROR, not VC_FRAMING_ERROR; interrupt with mask, cleared with the flags; packets of zero length of VC 0 in three consecutive cycles and of VC 2 in the third one counted as 4; a write clears the counter; 65600 events saturate it at 0xFFFF; the Link Reset command clears the counter and the flags |
MG-ST-05, MG-ST-01, MG-ST-03 |
test_core_clock_late (TC-MG-13) |
The core clock stands still from the reset on and starts 5 us later (a transmit clock of a transceiver that runs only after its power-up): VC_BW_OVER and VC_BW_UNDER read 0 while it stands still and after its start, DL_STATUS shows the status of the core clock domain, the other sticky flags and counters of the core clock domain (DL_ERRORS to DL_SEQ_COUNT, VC_INPUT_OVERFLOW, VC_CREDIT_OVERFLOW) read 0; over use of VC 1 and under use of VC 2 afterwards set their flags, W1C clears them. Without the settle time from the end of the reset of the status crossing the flags take the value of the crossing before its first transfer and read undefined (mutation check) |
MG-CC-02, MG-IF-02, MG-ST-01 |