This document describes the functionality of the P5040
(quad-core)/P5021 (dual core) and P5020 (dual core)/P5010
(single core) processors as the reference design board (RDB)
for customers.
The P5040/P5020 reference board is a lead-free,
RoHS-compliant board that is also known as
P5040/P5020RDB. Figure 1 shows the block diagram for
both processors implemented in this reference board.
The processors currently supported and the orderable part
number for each kit are as follows:
P5040/P5021P5040-RDB
P5020/P5010P5020-RDB
1Before you begin
This table lists useful documentation references.
NOTE
Contact your local Freescale
field applications engineer to
access documents that are not
available on freescale.com.
SoC programming P5040 QorIQ Integrated Multicore Communication Processor Family Reference Manual P5040RM
P5020 QorIQ Integrated Multicore Communication Processor Family Reference Manual P5020RM
Switch
configuration
SystemID format The SystemID Format for Power Architecture® Development SystemsAN3638
P5040/P5020DS Configuration Sheet—
P5040EC/
P5020EC
The initial version of the Software Development Kit (version 1.3) is shipped with the P5040/P5020
reference design board. The customer should check for new patch releases, which generally are updated
on Freescale.com two times a year.
2Features
The general features of the P5040/P5020RDB are as follows:
•P5040/P5020 supports functions that include the following:
— Standard 400W 1U power supply connector
— One SD card/MMC connector
— SerDes PCI-Express (PCIe) connector
– One PCIe x2/x4 connector (SerDes lanes “A” through connector “D”), which can support
up to four lanes of PCIe 2.0/1.0
– One mini PCIe x1 connector
– Two Type A USB 2.0 connectors.
— One DUART DB-9 RS-232 connector (muxed UART0/1 and UART 2/3 serial ports) that
operate at up to 115200 Kbps
— Two XAUI copper (10Gbit RJ-45 connectors) and two fiber optic SFP+ connectors
– One dual-port TN8022 PHY supporting two XAUI copper link(10GHz) and two XFI link
supporting 10GHz modules.
– Two SATA II connectors
— Two Gigabit Ethernet ports 0 and 1 supporting one dual RGMII (1-GHz) RJ-45 Ethernet
connectors
– One dual-port PHY supporting one dual RGMII (1GHz/100/10-MHz) multifunction FPGA
— Two dual ported SGMII connectors supporting Gigabit Ethernet ports 0(top)/1(bottom) and
ports 2(top)/3(bottom)
– One quad-port PHY supporting four SGMII (1GHz) links
— Programmed by the processor on the following a power-up or hard reset. The FPGA
functionality varies depending on the specific processor.
P5040/P5020 Reference Design Board User Guide, Rev. 0
2Freescale Semiconductor
Page 3
— 1588 header—support is TBD
— Aurora debug port
•Other functions routed to reference board devices are as follows:
— Local bus
– 128-Mbyte NOR Flash contains Uboot firmware.
– 4 Gigabit NOR Flash is used for Freescale debug purposes. The user may access this using
their own developed software.
— eSDHC
– Connects to SDMedia card slot for boot code or mass storage
— SPI
– 16-Mbyte EEPROM module for boot code and storage
—I2C
– Three I2C controllers from P5040 and P5020
–I2C1 to RCW/Boot Sequencer and System configuration EEPROMs, XAUI SFP+ ports 1
and 2
–I2C2 to DDR slots’ SPD
Features
–I2C3 to system real time clock and CPU Thermal Monitor
— Debug features
– Legacy COP/JTAG and USBTAP headers for use with CodeWarrior software
– Aurora Debug connector
•System logic FPGA—other functions
— FPGA manages power sequencing
— Programming model with registers accessible via local bus
•SerDes clock for PCIe slots and XAUI PHY
•Power supplies
— Power is supplied to the reference board via a standard 1U 450W power supply
— Power is supplied via +12 V pins, VCC_RTC=3.3 V, and VCC_5V_stby = 5 V on the COM
Express connectors
— 2.5-V power for RMII Ethernet PHY
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor3
Page 4
Block Diagram
3Block Diagram
This figure depicts the general features and connectivity of the P5040/P5020 reference board.
P5040/P5020 Reference Design Board User Guide, Rev. 0
4Freescale Semiconductor
Page 5
This figure shows the P5040 reference design board.
Evaluation Support
Figure 2. P5040 Reference Design Board
4Evaluation Support
4.1P5040/P5020RDB as a Processor Reference Board
For general hardware and/or software development and evaluation purposes, the P5040/P5020 reference
design board can be used like an ordinary, desktop computer.
The P5040/P5020 reference board can also be used as reference for many features of the P5040/P5020.
This table summarizes the processor hardware interfaces that can be evaluated by using the reference
board.
NOTE
Shaded features apply to only one processor.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor5
Page 6
Evaluation Support
Table 2. P5040/P5020RDB device Interfaces
Device FeatureConfiguration Options
SerDes • Connect to PCI Express 2.0 x1 and x4 slots for use with graphics or other PEX cards
• Test via PCI Express card (typically graphics) or Catalyst™ PCI Express control/monitoring card
DDR3 • Memory controller capable of supporting DDR3 and DDR3-LV devices.
• Provides 2 SODIMM slots with one DDR3 8GB 204-pin 1.35/1.5v SODIMM module at 1333/1600 Mbps
data rate at 72-bit, and ECC support.
eSDHCSDMedia card and MMC card
SPISupports standard 128Kbyte(2 MHz, 1.8V) and 16MB (100 MHz)
Local bus • Connects 8bit data and 10bit address to system control FPGA to access programming model to configure
system: Internal debug
SerialUART supports two 4-wire serial ports
I2CI
2
C bus #1 can be used for the following:
• Boot initialization code
• System EEPROM (MAC address storage, serial number, and so on)
GPIOEight GPIOs are connected FPGA for future usage
IRQsEVENT switch normally asserts IRQ* but can drive SRESET0, and/or SRESET1 via software setting
Power1U power supply to P5040/P5020 connector VCC_12, VCC_5_STBY, VCC_RTC_BAT
4.2Reference Design Board Use
In the absence of a special hardware or software configuration, the P5040/P5020 reference design board
operates identically to a development/evaluation system.
4.3Embedded Use
Section 6.1, “Configuration Options,” and Section 6.2, “Configuration Modes,” provide the FPGA and
external configuration switch settings used for start-up configuration information for U-Boot or Linux
when the system is used as an embedded platform.
4.4Difficult-to-Find P5040/P5020 Connections
P5040/P5020 Reference Design Board User Guide, Rev. 0
6Freescale Semiconductor
Page 7
This figure shows connections that are difficult to find on the COM Express reference board.
Key:
1U power connector
SW3 power-on button
SW1 local reset
FPGA programming header
Architecture
Figure 3. Difficult-to-Find Connections—P5040/P5020 reference board Top View
5Architecture
5.1Processor
This table lists the major pin groupings of the P5040/P5020.
ThermalSection 5.1.19, “Temperature Anode and Cathode”
PowerSection 5.1.20, “Power”
5.1.1DDR
The P5040/P5020RDB contains a number of DDR-related features, as follows:
•Memory controller capable of supporting DDR3 and DDR3-LV devices
•Supports DDR3 using one 8GB, 1.35V/1.5V 204-pin Micron MT18KSF1G72HZ-1G6E2
SODIMM module @ 1333/1600 Mbps data rate at 72-bit, and ECC support
•Memory interface includes all necessary termination and IO power and is routed in order to achieve
maximum performance on the memory bus.
•As noted in the table below,P5040/P5020 has a dual DDR controller connected to dual DDR3
SODIMM slots.
Table 4. DDR Features
DDR FeatureDescription
DDR3 TopologyEach controller connects to its own SODIMM slot.
Supports write-leveling intended to help determine timing skews.
TerminationAll input signal lines are terminated at the DIMM modules.
Additional termination is not required.
P5040/P5020 Reference Design Board User Guide, Rev. 0
8Freescale Semiconductor
Page 9
Architecture
Figure 4. DDR interface
5.1.1.1DDR Power
P5040/P5020RDB DDR power supplies these voltages.
Figure 5. DDR Power Supply
Voltage NameVoltageCurrentNote
GVDD1.5V/1.35V> 10ADRAM core and IO
MVREF0.75V/0.675V>= 10mADRAM reference voltage
VTT0.75V/0.675V>= 3ABus termination supply
The P5040/P5020RDB uses the Linear Technology LTC3876 (U55) switching power controller as
follows:
•Dual-phase controller for up to 20 A at a default at 1.35 v adjustable to 1.5 V output.
•Supplies GVDD, VREF , and VTT for SODIMM DRAM DDR3 and P5040/P5020 DDR controller .
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor9
Page 10
Architecture
The following summarizes the use of MECC pins on the P5040/P5020RDB:
•RDB does not directly support MECC pin usage to access internal debug information. Since the
RDB does not provide a dedicated MUX, it has simpler routing and signal integrity status.
•However, as the RDB does not interfere with the controller-to-DDR path, access to debug
information on MECC pins is possible by using a NextWave (or equivalent) DDR logic analyzer
connector and non-ECC DDR modules.
5.1.2SerDes x20/x18 Interface
The SerDes block on the P5040/P5020 provides high-speed serial communications interfaces for several
internal devices. The SerDes block provides 20 or 18 serial lanes for the P5040 or P5020, respectively.
They may be partitioned as shown in Table 5(a) or (b), respectively.
Note that the term ‘lane’ is used to describe the minimum number of signals needed to create a
bidirectional communications channel; in the case of PCI-Express or Serial RapidIO, a lane consists of two
differential pairs, one for receive and one for transmit, or four in all.
Table 5, top down, shows the following clocking banks and how they are configured by the reference
board:
Bank1Lanes A–D go to x4 slot 1, E is demuxed to either x1 slot 2 or combined with lanes
E-F to support 4 SGMII ports, and I–J to the Aurora debug connector
Bank2Lanes A–D go to port 1 of dual-ported XAUI PHY
Bank3Lanes A–B of P5040 goes to port 2 of dual-ported XAUI PHY while lanes C and
D of P5020 could be demuxed to either go to SATA ports 1 and 2 or go to port 2
of dual-ported XAUI PHY.
Bank 4Lanes P1B and P2A of P5040 are muxed are with lanes C–D of P5020 to SATA
ports 1 and 2.
Table 5. P5040/P5020 SerDes Lane Multiplexing Configurations on P5040/P5020
Bank 1Bank 2Bank 3
ABCD EFGHIJABCDABC D
01234567891011121314151617— —
SLOT 1SLOT 2
PCIe1
(5/2.5G)
PCIe1
(5/2.5G)
PCIe2
(5/2.5G)
SGMII
FM2
SGMII
FM2
SGMII
FM2
SGMII
FM2
Aurora Conn on
P5040 (RCW 02 and 34)
Debug (5/2.5G)XAUI FM1XAUI FM2
Debug (5/2.5G)XAUI FM2——SATA1SATA2——
SLOT 3
SATA
Port1
SATA
Port2
————
Bank
4
P1B
SATA1
P2A
SATA2
P5020 (RCW 34 and 35)
P5040/P5020 Reference Design Board User Guide, Rev. 0
10Freescale Semiconductor
Page 11
Architecture
Table 5. P5040/P5020 SerDes Lane Multiplexing Configurations on P5040/P5020 (continued)
Bank 1Bank 2Bank 3
ABCD EFGHIJABCDABC D
Bank
4
P1B
01234567891011121314151617— —
SLOT 1SLOT 2
PCIe1
(5/2.5G)
PCIe1
(5/2.5G)
PCIe2
(5/2.5G)
SGMII
FM2
SGMII
FM2
SGMII
Aurora Conn on
SLOT 3
——Debug (5/2.5G)XAUI FM1——
FM2
SGMII
FM2
Debug (5/2.5G)XAUI FM1——
SATA
Port1
SATA
Port2
————
——
SATA1
SATA2
——
SATA1
SATA2
P2A
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor11
Page 12
Architecture
P5040/P5020
SD_TX/RX[0:3](p,n)
PEX Slot 1
TX/RX[0:3](p,n)
REFCLK_SD1(p,n)
100 MHz
PEX Slot 2
TX/RX[4:7](p,n)
Aurora Conn
TX/RX[1:0](p,n)
SD_TX/RX[4:7](p,n)
SD_TX/RX[8:9](p,n)
x4 PCIe Card
Aurora Debug
x1 PCIe card
x4 SGMII PHY
Connector
Figure 6. P5040/P5020 SerDes Bank1 to Reference Board Cards/
Debug Connector Configuration
12Freescale Semiconductor
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 13
Architecture
P5040/P5020
REFCLK_SD2/3/4(p,n)
125 MHz
Port 1 of TN8022
TX/RX[0:3](p,n)
SATA port1 & 2
TX/RX[1:2](p,n)
SD_TX/RX[10:13](p,n)
SD_TX/RX[14:17](p,n)
SATA connectors
2 COPPER PORTS
Port 2 of TN8022
p5040B3lanesA-D
p5020B3lanesCD
2 SFP+ PORTS
SD_TX/RX[P1B,P1A](p,n)
5.1.3Ethernet Controller (EC) Interfaces
The two TSEC—with twisted pair 10/100/1000-Base-T interface—are IEEE 802.3-compliant. Vitesse
VSC8244 PHY supports four integrated PHYs though only two are in use. The P5040/P5020RDB only
uses the RGMII protocol.
This table shows the general organization of the ETH system.
GETH FeatureSpecificsDescription
GETH ClocksIDT
Figure 7. P5040/P5020 SerDes Banks 2,3, and 4 to Reference Board XAUI ports/
This figure shows overall connections of RS-232, eSPI, and eSDHC/eMMC interfaces.
16Freescale Semiconductor
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 17
Architecture
Figure 10. Serial Interfaces
5.1.6enhanced Serial Peripheral Interface (eSPI)
The P5040/P5020 has an eSPI Master Controller used to communicate with various peripherals.
•Two SPI FLASH support 24-bit address and SPI Modes 0, 3.
•Use Chip Select 0 or 1 with S25FL129P0XNFI001 FLASH if CVDD=3.3 V.
•Use Chip Select 2 with 25AA1024T-I/SM FLASH for all CVDD voltages (1.8, 2.5, or 3.3 V).
•Chip Select 3 is reserved for 1588 Riser Card.
This table describes the P5040/P5020RDB SPI FLASH memory.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor17
Page 18
Architecture
Table 8. eSPI Slave devices
Device
Spansion
S25FL129P0XNFI001
Microchip
25AA1024T-I/SM
1588 Riser Card—1.8–3.3—CS3
Clock Frequency
(MHz)
1042.7–3.316 MBCS[0,1]
2, 10, 201.8–3.3128 KBCS2
Voltage Range (V)CapacitySPI CS
5.1.7enhanced Secure Digital Host Controller (eSDHC) &
embedded Multi Media Controller (eMMC)
The P5040/P5020 processor has an eSDHC and an eMMC controller, which the P5040/P5020 connects to
an SD media card slot. The I2C3_SDA signal uses write protect (WP). The I2C3_SCL signal uses card
detect (CD). The DS supports the following:
•1.8, 2.5, and 3.3V SD/eMMC media card voltages.
•x4-bit and x8-bit cards though the latter uses SPI_CS[0:3] signals as eSDHC_DAT[4:7].
— eSDHC_DAT[4:7] signals are shared with SPI CS pins.
— Software can route the pins to either eSDHC/eMMC cards or SPI devices; however, they
cannot be used simultaneously.
CAUTION
Insert an SD/eMMC media card suited to P5040/P5020 CVDD voltage.
5.1.8UART Serial Ports
Two RS-232 transceivers on the P5040/P5020RDB contribute to user application development and
provide convenient communication channels to both terminal and host computers. The transceivers are
connected to P5040/P5020 dedicated UAR T ports: one provides interconnection to DUT UART1/3 ports
or ngPIXIS FPGA; the other explores UART2/4 dedicated ports.
Analog Devices’ ADM561JRSZ product internally generates required RS-232 levels from 3.3V_HOT
supply.
NOTE
Powering from the 3.3V_HOT power rail is possible even when
P5040/P5020 is powered down. Thus, the FPGA processor can run
programs and interact with the user while allowing board reconfiguration
while sealed in the chassis.
This table describes the P5040/P5020RDB RS-232 interface.
P5040/P5020 Reference Design Board User Guide, Rev. 0
The P5040/P5020 has dual HS USB transceivers whose main features are as follows:
•Compliance with USB Specification, USB Rev. 2.0.
•USB 2.0 Transceiver Macrocell Interface (UTMI) with Link Controller.
•Supports HS, FS, and LS modes of operation.
•Supports signalling.
•Supports Host and Device modes.
— Working in Host mode only, the RDB connects a USB transceiver to connector Type A thus
enabling communication with keyboards, mice, memory sticks, etc.
— Working in Host and Device modes, a second USB transceiver connects to a second Type A
connector which has bus signal connecting directly to the P5040/P5020 internal PHY.
The 24MHz USB block reference clock provides additional control to the P5040/P5020 in conjunction
with the USB power sequence. GPIO 4,6 control the VBUS Drive. GPIO 5,7 get Power Fault indications
via the FPGA.
This figure shows the P5040/P5020RDB USB interface.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor19
Page 20
Architecture
Figure 11. P5040/P5020 USB Connection to Reference Board USB Interfaces
5.1.10DMA Controllers
The P5040/P5020 DMA controllers have internal and external controls to initiate and monitor DMA
activity. The reference board does not incorporate any specific devices that make use of the external
pin-controlled DMA controllers.
The P5040/P5020 DMA ports are connected to test points on the reference board to allow external
hardware control, as needed.
P5040/P5020 Reference Design Board User Guide, Rev. 0
20Freescale Semiconductor
Page 21
Architecture
5.1.11eOpenPIC Interrupt Controller
The reference board contains numerous interrupt connections. The P5040/P5020 eOpenPIC connections
to the P5040/P5020 are shown in this table.
IRQ_OUT_BP5040/P5020ngPIXIS FPGA used as an EVT pin.
Indicates completion of FLASH programming.
5.1.12GPIO Signals
FPGA provides the control for EMI1 mux; therefore, software can configure the MDIO bus. See the MDIO
section for how to select between RGMII and SGMII PHY.
Table 11. Future Options for Configuring P5040/P5020-Dedicated GPIO Signals
for EMI MDIO Bus Multiplexing
Signal NameSystem Function
GPIO[0:1]EM1 management bus mux control
GPIO[4:7]Spares connected to test points
5.1.13Control Group
P5040/P5020 control group signals, for the most part, stop or restart execution. Figure 12 gives a
connections overview and shows the POR flow while Table 12 outlines the POR sequence.
•Legacy COP and Aurora connector resets are muxed to the ngPIXIS FPGA.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor21
Page 22
Architecture
Stable CLKIN
PORESET
Min 32 CLKIN cycles
HRESET(IO)
PLLs are locked
(output)
RESET_REQ
Device ready, can start Pre-Boot
(output)
TRST
(Input)
(Input)
(Output)
(Reset Configuration Word-512 bit)
Start Load Reset Configuration
CFG Signals
Sampling point, when PORESET is negated
ASLEEP
(Reset Configuration Input Signals)
RCW
High Impedance
High Impedance
•ngPIXIS FPGA injects system-level resets along with legacy COP or Aurora resets.
•Legacy COP HRST is mapped to the P5040/P5020 POR.
•Legacy COP SRST is mapped to the P5040/P5020 HRESET.
•P5040/P5020 HRST is a bi-directional open drain signal; it is not monitored by ngPIXIS FPGA.
NOTE
Reset configuration input signals are ONLY sampled at the negation of
POR. Reset Configuration input pins—CFG_RCW_SRC[4...0],
CFG_SVR[1...0], CFG_GPINPUT[15...0], CFG_ENG_USE[3...0],
CFG_ELBC_ECC, CFG_DRAM_TYPE—function differently when a
device is not in a reset state.
StepSequence StageDescription
1PORESET
2PORESET
22Freescale Semiconductor
Figure 12. Power-on Reset Sequence
Sequence
/ PORESET to load a new RCW to the device.
throughout PORESET.
.
Table 12. PORESET
: General
Information
: During Negation1. Sampling of input signals determines the interface to be loaded into the
P5040/P5020 Reference Design Board User Guide, Rev. 0
1. PORESET is asserted.
2. FPGA drives CFG_RCW_SRC[4...0] and all reset configuration input signals
to P5040/P5020; seeTa bl e 1 3.
3. P5040/P5020 loads RCWs.
4. FPGA drives HRESET
P5040/P5020 loads the RCW during HRESET
device.
2. P5040/P5020 asserts HRESET
Page 23
Architecture
Table 12. PORESET Sequence
StepSequence StageDescription
3PORESET: After Negation1. P5040/P5020 begins the configuration process and starts loading reset
configuration.
2. Host debugger controls PORESET
configuration).
4Configuration InputReset configuration inputs are sampled to determine the following:
• Configuration source: CFG_RCW_SRC[4...0]
• CFG_DBG_RST_DIS
• CFG_ENG_USE[3...0]
• CFG_PLL_CONFIG_SEL_B
• CFG_POR_AINIT
• CFG_RCW_SRC_SLEW
• CFG_TEST_PORT_DIS
• CFG_TEST_PORT_MUX_SEL
• CFG_XVDD_SEL
• DRAM Type Select (DDR3 or DDR3L): CFG_DRAM_TYPE
• General Purpose Input: CFG_GPINPUT[15...0]. Only two[1...0] are driven.
• NAND FLASH ECC Enable: CFG_ELBC_ECC
• Response Disable: CFG_RSP_DIS
• System Version Register: CFG_SVR[1...0]
processor signal (which sets a chosen
5Configuration TimeTime required varies according to configuration source and CLKIN frequency.
NOTE
The P5040/P5020RDB has default DIP-switch settings that can be manually
repositioned as per user selected configuration levels. Several RCW bits
only can be changed by DIP-switches.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor23
Page 24
Architecture
This table lists RCW sources.
Table 13. Reset Configuration Word Source
Value (Binary)Reset Configuration Signal NameDescription
0_0000CFG_RCW_SRC[4...0]I
0_0001I
0_0010Reserved
0_0011Reserved
0_0100SPI 16-bit addressing
0_0101SPI 24-bit addressing
0_0110eSDHC
0_0111Reserved
0_1000eLBC FCM (NAND FLASH, 8-bit small page)
0_1001eLBC FCM (NAND FLASH, 8-bit large page)
0_1010Reserved
0_1011Reserved
0_1100eLBC GPCM (NOR FLASH, 8-bit)
0_1101eLBC GPCM (NOR FLASH, 16-bit)
0_1110Reserved
0_1111Reserved
2
C1 normal addressing supports ROMs up to 256 bytes.
2
C1 extended addressing
1_0000 -1_1011Hard-coded RCW options
1_1100-1_1111Reserved
5.1.14I2C
The reference design board uses three of the four I2C buses on the P5040/P5020.
•I2C1 is electrically isolated before P5040/P5020 power-up to allow external or FPGA I2C masters
to program Zilker power devices.
2
•I
C2 and I2C4 can function independently, or together with I2C2 as the controller.
This table summarizes I2C bus device addresses while Figure 13 shows overall I2C scheme connections.
Table 14. I2C Bus Device Map
I2C BusI2C AddressDeviceNotes
10x22LTC3889: VCORE PM Bus (TBD)Controls rail VDD_CORE.
10x24LTC3876 regulator: DDR PM Bus (TBD)Controls rail VDD_GVDD.
P5040/P5020 Reference Design Board User Guide, Rev. 0
24Freescale Semiconductor
1
Page 25
Table 14. I2C Bus Device Map1 (continued)
I2C BusI2C AddressDeviceNotes
Architecture
10x27Platform regulator LTC3880 (TBD)
Controls VDD_PL
I2C/SMBus Expander
10x50Atmel AT24C64A or equivalent: 8192 bytes
EEPROM
10x55Atmel AT24C02B or equivalent: 256 bytes
EEPROM
Stores RCW and PBLOADER data.
WP
Stores ngPIXIS accessed configuration
data.
Accessible when board is powered-off.
WP
10x56Atmel AT24C64A or equivalent: 8192 bytes
EEPROM
Stores ngPIXIS GMSA program code.
Accessible when board is powered-off.
WP
10x57Atmel AT24C02B or equivalent: 256 bytes
SYSTEM ID EEPROM
Stores board specific data, including
MAC addresses, serial number, errata,
etc.
WP
1n/angPIXIS I
2
C PortFor bus reset, monitoring, and
master-only data collection.
1n/aI
2
C Access HeaderFor remote programming of boot
sequencer startup code (if needed) or
Zilker Lab PM Bus programmer.
20x51DDR3 SODIMM Socket 1SPD EEPROM
Type of device depends on uDIMM
vendor.
20x52DDR3 SODIMM Socket 2SPD EEPROM
Type of device depends on uDIMM
vendor.
2
2n/aI
C Access HeaderFor remote programming of boot
sequencer startup code (if needed).
3n/aNot used for I
2
C functionality. Used for alternate SD/eMMC functions:
SD_WP and SD_CD instead of I2C.
40x40INA220 Current/Power Monitor(n/a)For current/power measurements on
P5040/P5020 GVDD.
40x41INA220 Current/Power Monitor(n/a)For current/power measurements on
P5040/P5020 VDD_PL.
40x44INA220 Current/Power Monitor(n/a)For current/power measurements on
P5040/P5020 VDD_CA.
40x45INA220 Current/Power MonitorFor current/power measurements on
P5040/P5020 VDD_CB.
40x4CADT7461A or equivalent: Processor
Thermal Monitor
For measuring P5040/P5020
temperature.
40x68DS3232: RTCUsed by software.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor25
Page 26
Architecture
Table 14. I2C Bus Device Map1 (continued)
I2C BusI2C AddressDeviceNotes
4n/aI
4n/angPIXIS I
2
C Access HeaderFor remote programming (if needed).
2
C PortFor bus reset, monitoring, and
master-only data collection.
1
Map addresses do not include the position of a transmitted address LSB (R/W bit).
Figure 13. I2C Scheme
P5040/P5020 Reference Design Board User Guide, Rev. 0
26Freescale Semiconductor
Page 27
Architecture
See Section 7, “Programming Model,” for I2C implementation information.
5.1.15EM1 and EM2 Management Buses
The P5040/P5020 has the following types of buses:
•SGMII and RGMII PHY management
•XAUI PHY management
Because one set of buses must span across multiple devices on the reference board, multiplexers are used
to route from the P5040/P5020 to each SGMII and RGMII PHYs while EMI2_MDIO bus is routed to
XAUI PHY. See Section 7, “Programming Model,” for details on using GPIO to select EMI1 device.
PHY management bus control is summarized in this table.
Table 15. P5040/P5020 PHY Management Bus Map for EMI1 on Reference Board
BusFPGA_S1S0Device
EMI100On board RGMI PHYI
EMI101SGMII
5.1.16Enhanced Local Bus (eLBC) Interface
The eLBC has the following features:
•Supports GPCM, NAND FCM, and UPM.
•Only operates in 3.3V IO voltage.
•Clients include: PromJet Emulator, FPGA, NOR and NAND FLASH.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor27
Page 28
Architecture
This figure shows the eLBC block diagram.
Figure 14. eLBC Interface
P5040/P5020 Reference Design Board User Guide, Rev. 0
28Freescale Semiconductor
Page 29
This table summarizes local bus chip select routing.
Table 16. Local Bus Chip select Mapping
Architecture
FLASH Selection
cfg_lbmap
1010–1111Invalid
1
cfg_lbmap[0:3] are user configuration DIP-switches.
1
[0:3]
0000LCS0LCS[2,4:6]LCS1LCS3Boot from NOR FLASH region #0
0001Boot from NOR FLASH region #1
0010Boot from NOR FLASH region #2
0011Boot from NOR FLASH region #3
0100Boot from NOR FLASH region #4
0101Boot from NOR FLASH region #5
0110Boot from NOR FLASH region #6
0111Boot from NOR FLASH region #7
1000LCS1LCS[2,4:6]LCS0—Boot from PromJet & NOR FLASH unbanked.
1001LCS2 LCS[0,4:6]LCS1—Boot from NAND & NOR FLASH unbanked.
NOR
FLASH
NAND
FLASH
PromJetngPIXISDescription
5.1.16.1Address Latch/Data Transceivers
TI device SN74ALVTH32373ZKER provides address latch while the On Semiconductor device
MC74LCX16245DTG provides dual data transceivers.
A transceiver latch enable (LE) input signal is driven by a P5040/P3041/P5020 LALE output signal.
•When LE is taken low, transceiver Q outputs are latched at input-set levels.
•Latched LA[0:26] + LA[27:31] comes directly from the CPU to build a full LA[0:31] address bus.
•The data bus was built with data buffers controlled by the CPU_LBCTL signal.
•D[0:26] is muxed with address.
•D[27:31] is only defined as data.
5.1.16.2NOR FLASH
Spansion in-socket NOR FLASH memory (S29GL01GP11TFIR1) has 128 MB and a 16-bit data width.
The FLASH is controlled by the GPCM local bus. Bus data is obtained from the data transceiver. For
address information, see Section 5.1.16.1, “Address Latch/Data Transceivers.”
FLASH functioning is as follows:
•Local bus LOE
•FLASH RY/BY output signal detects the completion of FLASH programming or erasure. The
signal is connected to the P5040/P5020 IRQ5
controls FLASH OE while LWE0 controls the FLASH WE signal.
interrupt line.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor29
Page 30
Architecture
•CS0, CS1, or CS2 select NOR FLASH depending on “CFG_Vbank[0...2]”.
•FPGA-generated signals are used to re-arrange internal addresses as per user configuration options
“CFG_LBMAP[0...3]”.
5.1.16.3NAND FLASH
Micron NAND FLASH memory (MT29F4G08ABADAWP:D) has 512 MB and an 8-bit data width.
NAND FLASH is controlled by the FCM Local Bus.
•FLASH R/B output indicates the status of a device operation. This open drain output connects to
the P5040/P5020 LFR/B/LGPL4 line.
•CS0, CS2, or CS[4:6] select NAND FLASH as per “CFG_LBMAP[0...3]”.
5.1.16.4PromJet Connector
A PromJet connector can be used for debugging purposes.
connected to the PromJet superset connector. The 16-bit PromJet modules (FLASH memory emulators)
are available from Emutec. See www.emutec.com.
CS0 or CS1 select between PromJet FLASH and onboard FLASH as per “CFG_LBMAP[0...3]”.
Perpiherals and embedded storage can be
5.1.17Debug Features
The reference board provides a JT AG COP header and AURORA test points for debug purposes, using the
CodeWarrior USBTAP already installed in the system.
To upgrade the U-Boot stored on the NOR FLASH, use the CodeWarrior USBTAP tool.
5.1.18Clock
For a description of the clock architecture, see Section 5.4, “Clocks.”
5.1.19Temperature Anode and Cathode
The P5040/P5020 has two pins, Temp_Anode and Temp_Cathode, connected to a thermal body diode on
the die that allow direct temperature measurement. The pins are connected to an ADT7461 thermal
monitor that allows direct die temperature readings with an accuracy of ±1 °C.
5.1.20Power
For a description of the clock architecture, see Section 5.3, “System Power Connections.”
5.2System Control Logic
The P5040/P5020RDB contains FPGA ngPIXIS that implements the following functions:
•Resets sequencing/timing as per COP/JTAG connections.
•Maps/re-maps P5040/P5020 local bus chip selects to FLASH, compact FLASH, and so on.
P5040/P5020 Reference Design Board User Guide, Rev. 0
30Freescale Semiconductor
Page 31
Architecture
PSU_PWR_GOOD
RESET
LOCAL
BUS
CONFIG
DRIVE
RESET
REG
RESETS
COP IO
REGISTERS
LBUS
CPU
COP
CONFIG
CONFIG
RESET SW
SEQ
•Transfers switch settings to processor/board configuration signals.
•Loads configuration data from RAM (registers) or EEPROM to override configuration (for
self-test).
•Miscellaneous system logic:
— COP reset merging
—I2C timeout reset
The FPGA is powered from standby power supplies and an independent clock. This allows the FPGA to
control all aspects of board bring-up, including power, clocking, and reset.
The ngPIXIS is implemented in an Actel A3P1000-FGG484 484-pad micro-BGA. This figure shows the
overall ngPIXIS architecture.
COP JTAGCOPHandles, in a transparent manner, the merging of COP header resets with onboard
LOCALBUSLocal BusInterface between processor and REGFILE.
REGISTERSRegister FilesMulti-ported register file containing status and configuration data.
Freescale Semiconductor31
FeatureDescription
P5040/P5020 Reference Design Board User Guide, Rev. 0
Table 17. ngPIXIS Features
resets.
Page 32
Architecture
Table 17. ngPIXIS Features (continued)
FeatureDescription
REGRESETSRegister ResetsDrives resets from one of the following: sequencer, register-based software control,
or VELA.
RESETSEQReset SequenceCollects various reset/power-good signals and starts the global reset sequencer.
5.2.1CONFIG
CONFIG monitors and/or sets selected configuration signals, per the following examples.
•CONFIG can, in some instances, map switch settings into direct configuration outputs.
•For SYSCLK, it maps a 3-position switch into a 16-bit register initialization pattern that is
subsequently used to initialize the clock generator.
5.2.2COP JTAG
COP JTAG handles, in a transparent manner, the merging of COP header resets with onboard resets.
•It is critical that COP_ HRST input reset the entire system EXCEPT for the COP JT AG controller;
for example, TRST must not be asserted.
•If COP JTAG is not connected to P5040/P5020RDB, then it is critical that reset assert TRST.
The COP core manages these modal operations.
5.2.3LOCALBUS
LOCALBUS is the interface between processor and REGFILE; asynchronous signaling is used since
access to the internal registers may be blocked.
5.2.4REGISTERS
REGFILE is a dual-port register file that contains several types of registers.
NOTE
REGFILE must be able to accept (or arbitrate for) concurrent writes to the
same register. This, however, is not a statistically likely occurrence.
5.2.5REGRESETS
REGRESETS copies sequencer reset signals and allows register-based software to individually assert reset
to the local bus, memory, and/or compact FLASH interfaces.
5.2.6RESETSEQ
RESETSEQ collects various reset/power good signals and initiates the global reset sequencer.
P5040/P5020 Reference Design Board User Guide, Rev. 0
32Freescale Semiconductor
Page 33
Architecture
NOTE
ASLEEP negation indicates the processor has exited reset. ASLEEP
assertion does not cause reset because, following HRST, the processor can
“sleep” for multiple reasons.
Drivers can be driven following power up. Normal operation and/or use of the VELA engine can lead to
tri-stated IOs. During power-off, all IO and output drivers must be tri-stated.
5.3System Power Connections
The 12-V, 5-V, and 3.3-V power requirements for the reference board are met by the attached 1U-12V
compatible power supply unit (PSU) of the P5040/P5020RDB. The 5 V and 3.3 V are connected to
individual power planes in the P5040/P5020RDB PCB stackup. The 12-V power from the standard 1U
header is treated as separate from the 1U-12V power, which supplies a large amount of current and is
referred to as VCC_12V_BULK. Other supplies include VCC_5VSTBY and VCC_BAT.
Note that to support the FPGA standby operation, video cards, or other high-power-dissipation cards in the
PCI Express slot, the PSU should support the following minimum specifications:
•Minimum 450 W overall, 500 W recommended
•PCIE 12 V supports a minimum of 150 W
•Minimum 5-V, 2-A standby current
All other power sources are also derived from the 1U PSU. The figure below shows the principal system
power connections in relation to the FPGA control. For details about the processor power scheme
implemented by this system, see the Power device feature row in Table 2.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor33
Page 34
Architecture
SPS
+3.3VHOT
FPGA
LDO
+1.8VHOT
1U PSU
+5 V
+3.3 V
+12 V
+5VSTB
+12V_BULK
PWRGD
PWRON
Batt.
+2.5 V
+1.8 V
+1.2 V
VSTANDBY
+3.3 V HOT
Select
LDO
LDO
LDO
+1.5VHOT
LDO
+1.1V/1.0V
SWREG
CORE/PL
Figure 16. Power connections in relation to the FPGA control
5.3.1Power Supplies
An 1U power supply SPI4601UG (460 W) is provided in the system to support the P5040/P5020 devices,
the reference board and all its I/O cards. VCC_12, VCC_12V_BULK, VCC_5V_STBY, and
VCC_RTC_BAT are provided from the reference board. In addition, the P5040/P5020RDB PS provides
all the voltages necessary for correct operation x2 DDR3 SODIMMs, GETH, FPGA, and all onboard
peripherals.
This figure details the power supplies.
34Freescale Semiconductor
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 35
Architecture
Figure 17. Power Supplies
5.3.1.1PDN of Main Power Supplies
To reduce cost, a LTC3880 switcher regulator is used to supply both VDD_CA and VDD_CB (core voltage) up to 30A, 1% tolerance. The same chip is also used to supply VDD_PL(platform voltage).
5.3.1.2PDN Options
Figure 18 shows various main power supplies combination used for different DUT types (depends on
PROC_SEL switches: SW7[6:7], SW15[5]) as well as a lot of other optional power combinations which
could be used for testing purposes. Power options supported are for P5040/P5021 and P5020/P5010 as
shown highlighted in pink in the table below.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor35
Page 36
Architecture
Figure 18. P5040/P5020RDB PDN Options
5.3.1.3DDR
DDR SDRAM GVDD, termination (M_VTT) and reference (M_VREF) voltages are automatically set at
the noted limits, depending on SW1[6] "DRAM TYPE" following power on:
SW1[6] = “1” (DDR3 regular)
•DDR3 default GVDD = 1.5V
•M_VTT = 0.75V
•M_VREF = 0.75V
P5040/P5020 Reference Design Board User Guide, Rev. 0
36Freescale Semiconductor
Page 37
SW1/6 = “0” (DDR3L low power)
•DDR3L default GVDD = 1.35V
•M_VTT = 0.675V
•M_VREF = 0.675V
5.3.1.4LVDD
GETH LVDD voltage is set to 2.5V.
5.3.1.5CVDD
CVDD voltage has these characteristics:
•Powers SD and SPI interfaces.
•Used to define IO_VSEL P5020 configuration pins setting.
•CVDD selection of 1.8, 2.5, or 3.3V is made by correctly setting J11.
•IO_VSEL is done automatically in compliance with selected CVDD values.
5.3.1.6XVDD
Architecture
XVDD voltage has these characteristics:
•Powers the SERDES block IO.
•Voltage value is set to 1.5 or 1.8V using SW3[5] or a corresponding FPGA control bit.
5.3.1.7VDD_CORE
VDD_CB voltage has the following characteristics:
•Powers both cores A and B of P5040/P5020 Rev 1.0 and 2.0 devices.
•Set SW6[7] to “0” to turn off voltage. The voltage connected/disconnected from corresponding
power plane in conjunction with selected PDN options (see Table 18)
5.3.1.8POVDD
•Possible to set to 0V, 1.0V, or 1.5V.
•SW3[8] controls ON/OFF status of POVDD onboard secondary PS.
•SW8[6] selects desired POVDD value.
•J21 connects POVDD power line to a selected voltage OR “shorts” it to the GND plane.
5.3.1.9BVDD & OVDD
BVDD (eLBC block) and OVDD (general IO) voltages are set to 3.3V.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor37
Page 38
Architecture
5.3.1.10USB
USB voltages has the following characteristics:
•USB transceiver: USB_VDD_3P3 voltage is set to 3.3V.
•USB PLL: USB_VDD_1P0 voltage is set to 1.0V.
•External periphery device power: USB1_VBUS, USB2_VBUS voltage = 5V corresponds to
USB1_PWR_EN, USB2_PWR_EN signal; otherwise, [default] USB_VBUS = 0V.
5.3.1.11VDD_LP
VDD_LP voltage has the following characteristics:
•VDD_LP = 1.0V.
•Low-power security monitor supply: VCC_HOT3V3 or onboard battery BT1 (which is
independent of the main PS) supply voltage to the VDD_LP via LDO regulator U21.
•When the main ATX PS is powered and connected to the RDB (VCC_HOT3V3 is present) then
voltage is supplied to the CPU. Alternatively, the battery can supply voltage if J9 is “shorted.”
This table lists all possible VDD_LP voltage options.
Table 18. VDD_LP Voltage Options
VDD_LPJ10J9VCC_HOT3V3BatteryVDD_LP_TMP_DETECT
1.0V1-2
2-3
1-2
2-3
0VXXNot existingNot existingX
XExistingXOn
Off
ShortXExistingOn
Off
5.4Clocks
The reference board clock signals are generated by the board in use. Table 19 lists the requirements of the
reference board clock signals when the reference board is populated with a P5040 or P5020 processor . This
board uses a custom IDT 6T49278BNLGI8 clock to meet the requirements listed in the table below.
P5040/P5020 Reference Design Board User Guide, Rev. 0
38Freescale Semiconductor
Page 39
This figure shows the principal clock connections for the P5040/P5020.
Conversely, the reference board provides a battery to the RTC clock to keep time while the system is turned off.
This table summarizes P5040/P5020 clock distribution.
156.25MHz and 312.5MHz clocks for
PCI Express, sRIO and GbE, HCSL
interface levels r
IDT ICS8304AMLN
• 1-to-4 Fanout Clock Buffer
• 125MHz input clock oscillator
• Maximum output skew = 45ps
5.4.1SYSCLK
A significant amount of P5040/P5020 timing is derived from SYSCLK input. The P5040/P5020 reference
design board has the following features:
•SYSCLK pin is controlled by an IDT ICS307M-02 frequency synthesizer.
•IDT device, as part of the reset/power-up sequence, is serially configured by 24 data bits via
ngPIXIS.
•24 data bits can be controlled to set the SYSCLK speed to fine increments; this is done using the
dynamic (re)configuration facilities of remote access ngPIXIS.
•To ease configuration, ngPIXIS pre-loads the 24-bit configuration pattern; this is done using one
of eight popular values and by sampling three switches located on the motherboard,
SW_SYSCLK[0...2].
P5040/P5020 Reference Design Board User Guide, Rev. 0
40Freescale Semiconductor
Page 41
Architecture
This table summarizes switch-selectable clock generation possibilities. The calculations are based upon
25 MHz reference clock input. “Control Word” field values are characterized as follows:
•Data was sent to ICS307 upon startup or if commanded by the FPGA VELA controller.
•Values were calculated from ICS307 data sheet examples or using the IDT on-line calculator.
•Values were calculated for frequency accuracy versus lowest-jitter; the latter parameter was
chosen.
Table 20. SYSCLK Frequency Options
SYSCLK_SEL[0...2]
0 0 06766.6664.9850x370801
0 0 18383.3334.0120x330601
0 1 0100100.00000x330801
0 1 1125125.00000x310381
1 0 0133133.3332.5030x310401
1 0 1150150.00000x310501
1 1 0160160.00000x310C03
1 1 1167166.66620x310601
Desired SYSCLK
(MHz)
Actual SYSCLK
(MHz)
Error
(ppm)
ICS307
Control Word
5.5System Reset
Figure 19 shows P5040/P5020RDB reset connections from which the following can be inferred:
•ngPIXIS registers are reset by every reset input as well as GO.
— GO is a VELA-controller output that is, in turn, controlled by ngPIXIS registers.
•Most ngPIXIS registers are reset by either RRST or XRST.
— PX_AUX is the exception; it is ONLY reset by RRST and is unaffected by COP_HRST and
wdog_rst.
•If the watchdog timer expires then all internal settings are reset. This includes VELA-controlled
configurations.
•If the COP_HRST signal is asserted then all internal settings are reset.This includes
VELA-controlled configurations.
•Reset sequencer is triggered at GO, COP_HRESET, or RST.
— Sequencer asserts CPU_TRST when triggered by GO and RST.
— Sequencer does NOT assert CPU_TRST when triggered by COP_HRST.
•Reset sequencer controls CPU_HRST. The sequencer must be active in order for the COP_HRST
signal to pass through.
•Conversely, CPU_TRST is wire-OR’ed with the sequencer.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor41
Page 42
Architecture
ngPIXIS
PWRGD(SYSRST)
P5040/P5020
RRST
+
+
COP_TRST
GO
RESET
SEQ
PHY_RST
MEM_RST
GEN_RST
COP_HRST
HOTRST
RESET_REQ
wdog_rst
GO
RST
PORST
rreq_rst
COP_HRST
CPU_PORESET
TRST
CPU_TRST
HOTRST
Lower_case = internal signal
Upper case = external signal
+XRST
ngPIXIS
No polarity information is shown
REGS
COP_SRST
CPU_HRESET
open drain
— Thus, COP directly controls the CPU_TRST.
Figure 19. P5040/P5020RDB Reset Hierarchy
5.5.1System Reset Performed by the FPGA Reset Sequencer
The reference board FPGA contains a reset sequencer that properly manages the orderly bring-up of the
system. Note that this is not the same as the power sequencer , which is similar , but not sp ecifically related
to reset.
After the system transitions to having fully-stable power supplies, the reset sequencer performs the
following:
1. Waits for all reset conditions to clear.
2. Configures and releases the processor from reset.
3. Idles waiting for further reset conditions to occur.
This table summarizes the reset conditions and actions of the FPGA.
SignalTypeDescriptionAction
HOT_RST_BExternal HOT power stableRestarts all FPGA internal state machines and registers
PWRGDExternal 1U power stableCauses full system reset unless the system is in S3 (power
42Freescale Semiconductor
Table 21. Reset Conditions and Actions of the FPGA Reset Sequencer
down) state
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 43
Architecture
Table 21. Reset Conditions and Actions of the FPGA Reset Sequencer (continued)
SignalTypeDescriptionAction
SYS_HRST_BExternal COP tool reset requestUpon power good, sys_rst_b is sent to P5040/P5020 and all
peripheral functional blocks
RESET_REQ_B External CPU requests resetFull reset
5.5.2Reset Terms
All reset operations are conducted within various portions of the ngPIXIS. See Section 5.2.6,
“RESETSEQ,” for details. This table summarizes the reset terms.
Table 22. Reset Terms
Reset TermDescriptionNotes
Input Terms
COP_HRST
COP_SRST
COP_TRST
HOT_RST
PWRGD
RESET_REQ
VELA “GO”
CFG_DRV*
CPU_HRESET
CPU_PORESET
CPU_TRST
GEN_RST
MEM_RST
Asserted under System Reset Controller, Legacy COP, or
Aurora control.
Asserted under System Reset Controller, Legacy COP, or
Aurora control.
Asserted under Legacy COP or Aurora control.Mapped to CPU_TRST.
Asserted low until VCC_HOT_3.3 is stable; thereafter it is
negated high.
Asserted low:
• until ATX power supply is stable
• while system reset is asserted; e.g., motherboard
switch or chassis cable switch.
Assertion by CPU(s) begins self-reset.Short duration - needs stretching.
• Software asserted (local or remote).
• Triggers configuration controlled startup.
•CPU_TRST
• Mapped to CPU_PORESET
•CPU_TRST
• Mapped to CPU_HRESET
Toggles when power supply is removed/unplugged.
Asserted only after the following:
• Power-ON is asserted.
• Intervention by a manual user.
Not applicable to P5040/P5020RDB —
must never be asserted.
.
must never be asserted.
.
Output Terms
Asserts one clock, beyond CPU_HRST
adequate configuration sampling.
• Restarts P5040/P5020 cores.
• Holds debug data.
Restarts P5040/P5020 cores.
Resets P5040/P5020 JTAG controller.
HRST of PHY and other devices.—
HRST of DDR3 DIMMs.—
, to ensure
—
• Does not directly cause CPU_TRST
• Derived from reset controller, Aurora HRESET, and
Legacy COP SRST.
• Does not directly cause CPU_TRST
• Asserted with entire system reset.
• Derived from reset controller, Aurora PORESET, and
Legacy COP HRST.
• If COP is unattached, then must be asserted by others.
• If COP is attached, then others cannot perform assert.
.
.
PHY_RST
SRST of PHY.—
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor43
Page 44
Configuration
P5040/P3041/P5020
CONFIG_PIN
ngPIXIS
where needed
OVDD
CFGDRV
SW1
EN1
SW2
EN2
...
ngPIXIS
EEPROM
ENx.y
SWx.y
5.5.3Reset controller considerations
When creating the reset controller, consider the following:
PWRGDFunctions as general system reset (from ATX power supply).
COP_TRSTAssert during normal, non-COP startup.
COP_HRSTIf asserted by COP then do not assert COP_TRST.
Resets the target system and processor HRESET inputs.
HRESET_REQOnly has two-three clock cycles and requires pulse stretching.
SHMOO/Test Tracking
Register PX_AUX must be reset by all reset sources except COP_HRST and
WDOG_RST.
6Configuration
This figure shows the configuration logic for signals configured using DIP-switches.
Figure 20. Configuration Logic
Configuration logic has several options, as follows:
•ngPIXIS, by default, transfers switch settings to the processor configuration pin during the
HRESET_B assertion interval.
•Software running on the P5040/P5020 can initialize internal registers (SWx, ENx) that allow a
board to configure itself for the next restart; this is called self-SHMOO or self-characterization.
2
•At reset, ngPIXIS copies configuration data from an external I
C EEPROM and applies these
values to the SWx/ENx registers (while ignoring external hardware switches).
6.1Configuration Options
There are three configuration options, as follows:
44Freescale Semiconductor
1. Require software configuration in order to support evaluation.
2. Easily and frequently changed by the end-user/developer.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 45
Configuration
P5040/P5020
CONFIG_PIN
FPGA
ENx.y
SWx.y
where needed
OVDD
CFGDRV
SW1
EN1
SW2
EN2
...
EEPROM
3. Rarely or never altered.
Options 1 and 2 are implemented with DIP-switches and/or options in which it is possible to set software.
Option 3 is normally implemented by resistors that are added/removed by competent technicians.
6.2Configuration Modes
There are different types of reference board configurations. A list of these configuration types and their
implementation is shown below.
Table 23. Configuration Types
Configuration TypeImplementation
Requires software configuration to
support evaluation
Expected to be easily or often
changed by the end-user or
developer
Implemented with “DIP switches” and/or software-settable options
When used with a P5040/P5020, the reference board switches and their default settings are shown in
Appendix A, “Reference board Switch Assignments and Defaults When Used with P5040/P5020.” Switch
names exactly match the name on the schematics and on the printed-circuit board in most cases, except
where a spare has been newly assigned and only the FPGA has changed.
6.2.1Configuration Switches
For those signals configured using switches, the configuration logic is as shown in this figure.
Figure 21. Configuration Switch Logic and P5040/P5020
The default action is for the FPGA to transfer the switch setting to the processor configuration pin during
the PORESET_B assertion interval. However, local bus also provides a way to configure certain features
dynamically.
Freescale Semiconductor45
P5040/P5020 Reference Design Board User Guide, Rev. 0
Page 46
Configuration
Switch names exactly match those found in the schematics and on the printed circuit board. See the
P5040/P5020RDB Configuration Sheet for help setting the system to a default configuration and for more
information about switch functionality.
•Dynamic (processor-only) configuration pins are only asserted during HRESET_B.
•Static configuration pins remain constant while system power is operational.
This table notes software register formats. Figure 21 shows a block diagram of control architecture and
switch configurations.
Table 24. Configuration Switch Format
SwitchBit
DIP Switch Label12345678
ngPIXIS Register Bit — Power Architecture: “Big Endian”
format
This table provides a summary of switch configurations.
Table 25. Configuration Switches
GroupSwitchesConfiguration SignalsClass
SW1
(see Switch 1 (SW1)
description)
SW2
(see Switch 2 (SW2)
description)
1–5cfg_rcw_src[0:4]Dynamic
6cfg_dram_type
7cfg_rsp_dis
8cfg_elbc_ecc
1SDREFCLK1_QA_FSEL0Static
2SDREFCLK1_QA_FSEL1
3SDREFCLK1_QD_FSEL0
4SDREFCLK1_QD_FSEL1
5SDREFCLK1_QE_FSEL0
6SDREFCLK1_QE_FSEL1
7UART1_3_SEL0
01234567
8UART1_3_SEL1
SW3
(see Switch 3 (SW3)
description)
P5040/P5020 Reference Design Board User Guide, Rev. 0
46Freescale Semiconductor
1SW_LANE_SATA_SELStatic
2SW_MUX_SATA_CNTR
3SW_LANE_4_SEL
4SW_LANE_1617_SEL
5SW_VDD_CB_EN
6SW_POVDD_PWR_EN
7SW_EP_nRC
8SW_ENGUSE3
Page 47
Table 25. Configuration Switches (continued)
GroupSwitchesConfiguration SignalsClass
Configuration
SW5
(see Switch 5 (SW5)
description)
SW6
(see Switch 6 (SW6)
description)
SW7
(see Switch 7 (SW7)
description)
SW8
(see Switch 8 (SW8)
description)
1SW_SD1_REFSPREADStatic
2SW_UART2_nUART4
3SW_UART2_UART4_SHDN
4SW_UART3_nUART1
5SW_XVDD_SEL
6-8SW_SYSCLK0-2
1-4SW_LBMAP[0-3]
Static
(Local Bus Map)"
5-7SW_ENGUSE[0:2]Dynamic
8SW_RESET_REQ_BYPASSStatic
1–2SW_CFG_GPINPUT[0:1]Static
3-4SW_CFG_SVR[0:1]
5SW_TESTSEL_B
6-7SW_PROC_SEL[0:1]
8SW_I2C1_PROC_ISO
1SW_FORCE_I2C_OPENStatic
2SW_I2C_RCW_WP
3SW_FLASH_WP
SW9
(see Switch 9 (SW9)
description)
SW11
(see Switch 11 (SW11)
description)
4SW_ID_WP
5 AURORA_CLK_EN
6SW_VDD_POVDD_CNTL
7SW_RESET_REQ_MODE
8SW_LEGACY_POD_B
1-310G_P2_PHYAD[0-2]Static
410G_P2_PHYAD0
5XAUI_MDIO_SEL
6-8
Spare
1SDREFCLK1_QB_FSEL0—
2SDREFCLK1_QB_FSEL1Static
3SDREFCLK1_QB_FSEL1—
4-8Spare
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor47
Page 48
Programming Model
GroupSwitchesConfiguration SignalsClass
Table 25. Configuration Switches (continued)
SW12
(see Switch 12 (SW12)
description)
SW15
(see Switch 15 (SW15)
description)
SW17
(see Switch 17 (SW17)
description)
1SW_cfg_pixisopt[0]Static
2SW_cfg_pixisopt[1]
3iplwp-FPGA Ex Config Data
WP
SW_IPLWP
4cfgwp-FPGA Config Data WP
SW_CFGWP
5ATX-PS System Power
ON/OFF after ATX_PS ON
SW_RP_CNTRL
6
7–8cfg_cfgopt[0:1]-System
1-4PDN_CFG[0:3]Static
5SW_PROC_SEL2
6–8spare
1-4Reserved
1XAUI_JTAG_SEL1
2XAUI_JTAG_SEL0
spare6—
2
Config: Switches/I
Content[0:1]
C
Static
3P1_DEVSEL
4-8P2_DEVSEL
7Programming Model
7.1ngPIXIS Registers
The ngPIXIS (FPGA) device contains several software accessible registers; they are accessed from the
base address programmed for the eLBC LCS3 signal. Table 26 is the register map for the ngPIXIS device.
Table 26. ngPIXIS Register Map
Base Address OffsetNamengPIXIS (PX) RegisterAccessReset
0x00PX_IDSystem IDR0x20
0x01PX_ARCHSystem ArchitectureRBoard
revision-dependant
0x02PX_SCVERSystem Control VersionRFPGA
version-dependant
0x03PX_CSRGeneral Control/Status R/W0x00
P5040/P5020 Reference Design Board User Guide, Rev. 0
48Freescale Semiconductor
Page 49
Programming Model
Table 26. ngPIXIS Register Map (continued)
Base Address OffsetNamengPIXIS (PX) RegisterAccessReset
0x04PX_RSTReset Control R/W0xFF
0x05PX_SERCLKClock Enable R/W0xF8 for P5020
0xFC for P5040
0x06PX_AUXAuxiliary R/W0x00
0x07PX_SPDSpeed RVariable
0x08PX_BRDCFG0Board Configuration 0R/W0x91
0x09PX_BRDCFG1Board Configuration 1R/W0x09
0x0APX_ADDRSRAM Address R/W0x00
0x0BPX_BRDCFG2Board Configuration 2R/W0x8C for P5020
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor49
Page 50
Programming Model
Table 26. ngPIXIS Register Map (continued)
Base Address OffsetNamengPIXIS (PX) RegisterAccessReset
0x32PX_VID_DIRFPGA
VID(0-3)/GPIO(28-31)
Direction - N/A for
P5040RDB
0x33PX_VID_OUTFPGA
VID(0-3)/GPIO(28-31)
Out
0x34PX_VID_INFPGA GPIO(28-31) InR/W0x00
R/W0x00
Rxx
7.1.1ID Register (PX_ID)
The ID register has a unique classification number; the software uses it to uniquely identify development
boards. The number remains the same for all revisions.
01234567
RID
W
Reset0x20
Offset0x00
Figure 22. ID Register (PX_ID)
Table 27. PX_ID Field Descriptions
BitsNameDescription
0–7IDBoard identification
7.1.2Architectural Version Register (PX_ARCH)
The architectural version register holds the board’s architectural revision. Registers change only after a
significant board revision—a software-visible and impacting change; for example, replacing a component
with a slot or eliminating a “backup” device.
NOTE
Changing a FLASH manufacturer is not considered an architectural change
as CFI-compliant FLASH programmers are meant to be adaptable.
P5040/P5020 Reference Design Board User Guide, Rev. 0
50Freescale Semiconductor
Page 51
01234567
RVER
W
Reset0x01
Offset0x01
Figure 23. Version Register (PX_ARCH)
Table 28. PX_ARCH Field Descriptions
BitsNameDescription
0–7VER • %00000001: Version 1
• %00010010: Version 2, and so on.
7.1.3System Control FPGA Version Register (PX_SCVER)
The system control FPGA version register has the following features:
•Contains both minor and major ngPIXIS system controller FPGA revision information.
•Changes as FPGA features are added/corrected.
Programming Model
•Increments as FPGA images are distributed—FPGA images are (generally) designed to work on
one or more board versions therefore there is no correlation between them.
01234567
RVER
W
Reset0x02
Offset0x02
Figure 24. Version Register (PX_SCVER)
Table 29. PX_SCVER Field Descriptions
BitsNameDescription
0–7VER • %00000001: Version 1
• %00000010: Version 2, etc.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor51
Page 52
Programming Model
7.1.4General Control/Status Register (PX_CSR)
The general control/status register contains various control and status fields; see Table 30
Figure 25. General Control/Status Register (PX_CSR)
01234567
R
W
Reset 0XXX0000
Offset0x03
EVESRC9999LEDFAIL
Table 30. PX_CSR Field Descriptions
BitsNameDescription
• Selects one of several inputs for mapping to an internal signal, “esig”.
• “esig”, in turn, can connect to special outputs; see “EVEDEST” below.
– 000esig <- event_b
• “esig” is driven to a selected output pin; see “EVESRC” (bits 0-2).
– 001esig -> trig_in
– 010esig -> evt_b(7)
– 011esig -> evt_b(8)
– 100esig -> evt_b(9)
• Set: PX_LED register value drives diagnostic LEDs.
• Unset: LEDs default to activity monitors; see “Debug” section.
• Set/Fail: external LED (“FAIL”) is lighted while “PASS” LED is unlighted.
• Unset/Clear: “PASS” LED is lighted while “FAIL” LED is unlighted.
7.1.5Reset Control Register (PX_RST)
The reset control register can be used to reset all or part of the system; see Table 31. Register-based resets
merge with others internal resets; for example, the VELA sequencer. The setting of bits during a VELA
configuration cycle can have unpredictable results.
Figure 26. Reset Control Register (PX_RST)
01234567
R
ALL
W
Reset 11111111
Offset0x04
52Freescale Semiconductor
———
SXSLOTPHY
P5040/P5020 Reference Design Board User Guide, Rev. 0
—
GEN
Page 53
Bits
Programming Model
Table 31. PX_RST Field Descriptions
1
NameDescription
0ALL
1–3—Reserved
4SXSLOT
5PHY
6—Reserved
7GEN
1
PX_RST register bits cannot reset independently.
2
PX_RST[ALL] only resets during a full system reset. Bits [1-7] must be cleared with software.
2
Resets the entire system.
• 0 - Initiates a full system reset.
• 1 - Normal operation
Resets any board connected via the SGMII/XAUI riser card slot.
• 0 - SXSLOT_RST_B is asserted.
• 1 - SXSLOT_RST_B is deasserted.
Resets 10/100/1G Ethernet PHY.
• 0 - PHY_RST_B is asserted.
• 1 - PHY_RST_B is deasserted.
Resets miscellaneous board features; see schematics and/or documentation.
• 0 - GEN_RST_B is asserted.
• 1 - GEN_RST_B is deasserted.
7.1.6Clock Enable Register (PX_SERCLK)
This section outlines the clock enable register.
Figure 27. Clock Enable Register (PX_SERCLK)
01234567
R
W
Reset 11111--Offset0x05
1
The Default depends on chip: For P5040 =’1’, otherwise ‘0’;
SERCLK_EN
SDREFCLK1_ENSDREFCLK2_ENSDREFCLK3_
EN
USBCLK_EN
SDREFCLK4_
EN
1
Table 32. PX_SERCLK Field Descriptions
BitsNameDescription
Enables/disables the SerDes Reference Clock to Bank 1 and Slot 1
0SDREFCLK1_QA_EN
1SDREFCLK1_QB_EN
2SDREFCLK2_QC_EN
• 0 - disabled
• 1 - enabled
Enables/disables the SerDes Reference Clock to Aurora port and Slot 2
• 0 - disabled
• 1 - enabled
Enables/disables the SerDes Reference Clock to Bank2 and XAUI PHY
• 0 - disabled
• 1 - enabled
——
00
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor53
Page 54
Programming Model
Table 32. PX_SERCLK Field Descriptions (continued)
BitsNameDescription
Enables/disables Serdes Reference Clock to Bank 3.
• 1 - enabled
Enables/disables USB Clock Oscillator.
• 0 - disabled
• 1 - enabled
Enables/disables Serdes Reference Clock to Bank 4.
• 0 - disabled
• 1 - enabled
7.1.7Auxiliary Register (PX_AUX)
The auxiliary register is a general-purpose R/W register that resets at initial Power-ON or via chassis reset
sources. RX-AUX preserves its value between Aurora-, COP- or watchdog-initiated resets.
Figure 28. Auxiliary Register (PX_AUX)
01234567
R
W
Reset 00000000
Offset0x06
USER
Table 33. PX_AUX Field Descriptions
BitsNameDescription
0–7USERUser defined
P5040/P5020 Reference Design Board User Guide, Rev. 0
54Freescale Semiconductor
Page 55
Programming Model
7.1.8Speed Register (PX_SPD)
The speed register communicates current switch-selectable settings for the SYSCLK clock generator.
PX_SPD enables software to accurately initialize timing-dependant parameters for local bus, DDR
memory, I
R—————SYSCLK
W
Reset XX000XXX
Offset0x07
2
C clock rates, and so on.
Figure 29. Speed Status Register (PX_SPD)
01234567
Table 34. PX_SPD Field Descriptions
BitsNameDescription
0–1PIXISOPTReflects SW12(1-2) settings.
2-4—Reserved (0)
5–7SYSCLKReflects SW5(6-8) settings; see Table 35.
Controls connection to EMI1 bus as per EMI1_SEL0 and EMI1_SEL1.
See Table 39.
Controls connection to EMI1 Bus as per EMI1_SEL0 and EMI1_SEL1.
See Table 39.
Always enabled. Controls EMI1 signal access to PEX sideband connectors.
• 0 - Disconnected
• 1 - Connected
Controls selection of 1588 riser card interface: SPI or I
2
•0 - I
C4
•1 - SPI
1
2
C4 bus interface.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor57
Page 58
Programming Model
Table 39. MII-1 Bus Selection
EMI1_SEL1EMI1_SEL0Connected PHYs
00Onboard Vitesse
RGMII PHY
01Onboard SGMII PHY
10Reserved
11Reserved
7.1.11Address Register (PX_ADDR)
The address register is a general-purpose R/W register used to index an internal 256-byte SRAM array.
PX_ADDR resets at initial Power-ON or via chassis reset sources. The register preserves its value between
COP- or watchdog-initiated resets. PX_ADDR write is non-atomic.
Figure 32. SRAM Address Register (PX_ADDR)
01234567
R
W
Reset 00000000
Offset0x0A
ADDR
Table 40. PX_ADDR Field Descriptions
BitsNameDescription
0–7ADDRPX_DATA read/writes to this SRAM address array.
Exercise caution when sharing SRAM between processors and/or the ngPIXIS GMSA core.
7.1.12Board Configuration Register (PX_BRDCFG2)
This register controls board configurations; they can be changed at any time.
0-7R/W GPIO(0-7)Controls the FPGA GPIO[0-7] (R/W) signal direction.
• 0 - Processor output (W)
• 1 - Processor input (R)
1
Used when processor GPIO signals are utilized as GPIO: reg_BRDCFG2[1] = ‘1’ and reg_BRDCFG2[2] = ‘1’.
1
7.1.14Data Register (PX_DATA)
The data register is a general-purpose (non-atomic) R/W register used to R/W to an internal 256-byte
SRAM array . PX_DATA resets at initial Power-ON or via chassis reset sources. The register preserves its
value between COP- or watchdog-initiated resets.
Figure 35. Power Status Register (PX_DATA)
01234567
R
W
Reset 00000000
Offset0x0D
DATA
Table 43. PX_DATA Field Descriptions
BitsNameDescription
0–7DATAPX_ADDR-indexed contents of the SRAM array.
P5040/P5020 Reference Design Board User Guide, Rev. 0
60Freescale Semiconductor
Page 61
Programming Model
7.1.15LED Data Register (PX_LED)
The LED data register can directly control indicator LEDs; for example, for software message purposes.
Direct LED control is only possible if PX_CSR[LED] is set to ‘1’.
Figure 36. LED Control Register (PX_LED)
01234567
R
W
Reset 00000000
Offset0x0E
Table 44. FS_LED Field Descriptions
BitsNameDescription
0–7LED • Indicator LEDs (L0:7) have corresponding values.
• Set a bit to ‘1’ to light a LED.
LED
7.1.16FPGA TAG (PX_TAG)
The FPGA T AG register contains the following information: embedded FPGA build date, minor revisions,
image name, and so on.
NOTE
Type “ngPIXIS INFO” under eDINK to display FPGA TAG register data.
Figure 37. TAG Register (PX_TAG)
01234567
RTAG
W
Reset 00000000
Offset0x0F
7.1.17VELA Control Register (PX_VCTL)
The VELA control register can start and control the configuration reset sequencer as well as other
configuration/test-related features.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor61
Page 62
Programming Model
NOTE
Not supported for P5040/P5020RDB.
Figure 38. Configuration Sequencer Control Register (PX_VCTL)
01234567
R————
W
Reset 00000000
Offset0x10
WDEN
Table 45. PX_VCTL Field Descriptions
BitsNameDescription
0–3—Reserved
Watchdog Enable
4WDEN
5—Reserved
6PWROFF
7GO
• 0 - Disabled
• 1 - Enabled; must be disabled with 2^29 clock cycles (> 5 min. at 30ns clock)
or the system will reset. At any time the software can reset the bit and
disable the watchdog.
Power Off
• [Default] 0 - Normal Power-ON
• 1 - Forced Power-OFF; HW must restore power as the software cannot
force Power-ON.
Go
• 0 - VELA sequencer is idle.
• 1 - VELA sequencer starts then halts till software resets GO to ‘0’.
—
PWROFFGO
NOTE
PWROFF = [Default] ‘0’; normal operations do not interfere with the power
switches.
PWROFF = ‘1’ overrides any user- or APM-initiated power switch event.
7.1.18VELA Status Register (PX_VSTAT)
The VELA status register can be used to monitor configuration sequencer activity.
NOTE
Not supported for P5040/P5020RDB.
P5040/P5020 Reference Design Board User Guide, Rev. 0
62Freescale Semiconductor
Page 63
Programming Model
01234567
R———————BUSY
W
Reset 00000000
Offset0x11
Figure 39. Configuration Sequencer Status Register (PX_VSTAT)
Table 46. PX_VSTAT Field Descriptions
BitsNameDescription
0–6—Reserved
7BUSY
• 0 - VELA sequencer is idle.
• 1 - VELA sequencer is busy.
7.1.19P5040/P5020RDB Status Register (PX_HSTAT)
The P5040/P5020RDB status register can be used to monitor optional connectivity.
Figure 40. P5040/P5020RDBP5040/P5020RDB Status Register (PX_HSTAT)
01234567
R——————
W
Reset 00000011
Offset0x12
PRESENT
_1588
NAND_TYPE
Table 47. PX_HSTAT Field Descriptions
BitsNameDescription
0–5—Reserved
6PRESENT_1588
7NAND_TYPE
• 0 - Detects 1588 riser card
• 1 - No riser card
• 0 - Micron MT29F4G08ABADAWP:D
• 1 - Numonix NAND08GW3B2CN1E
7.1.20OCM Control/Status Register (PX_OCMCSR)
The OCM control/status register is a general-purpose R/W register that communicates between
P5040/P5020 and the FPGA GMSA processor.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor63
Page 64
Programming Model
NOTE
Not supported for P5040/P5020RDB.
Figure 41. Configuration Sequencer Status Register (PX_OCMCSR)
01234567
R
W
Reset 00000000
Offset0x14
ACKU0DBGSELU1MSG
Table 48. PX_OCMCSR Field Descriptions
BitsNameDescription
0ACK • 0 - No acknowledgement
• 1 - OCM software signals that message has been processed.
1U0Unassigned values
2–5DBGSELSelects information for the GMDBG register.
6U1Unassigned values
7MSG • 0 - No message
• 1 - Software-initiated signal notifies OCM of a message.
NOTE
Software sets the values. Use different software in the GMSA processor to
redefine the values.
7.1.21OCM Message Register (PX_OCMMSG)
The OCM message register is a general-purpose R/W register used to communicate between P5040/P5020
and the FPGA GMSA processor.
NOTE
Not applicable for P5040/P5020RDB.
Figure 42. Configuration Sequencer Status Register (PX_OCMMSG)
01234567
R
W
Reset 00000000
Offset0x15
MSGADDR
P5040/P5020 Reference Design Board User Guide, Rev. 0
64Freescale Semiconductor
Page 65
Programming Model
Table 49. PX_OCMMSG Field Descriptions
BitsNameDescription
0–7ADDRAddress in the shared SRAM is still being processed.
NOTE
Software sets the values. Use different software in the GMSA processor to
redefine the values.
7.1.22SCLK[0:2] Registers (PX_SCLK[0:2])
The SCLK[0:2] registers control the 24-bit configuration word of the ICS307 system clock generator.
Figure 43. SCLK[0:2] Register (PX_SCLK[0:2])
01234567
R
W
Reset XXXXXXXX
Offset
WORD
0x19 (MSB)
0x1A (midbyte)
0x1B (LSB)
Table 50. PX_SCLK[0:2] Field Descriptions
BitsNameDescription
• R - Returns current programmed values.
0–7WORD
• W - WORD-written values are driven into ICS307 during reset sequencing
if PX_VCFGEN0[SCLK]=1. Otherwise, the encoded value of
CFG_SYSCLK(0:2) is used.
7.1.23Watchdog Register (PX_WATCH)
The watchdog register selects a watchdog timer event for the VELA-controlled sequencer. The selected
watchdog works independently of other watchdog timers; for example, those within P5040/P5020.
Figure 44. Watchdog Register (PX_WATCH)
01234567
R
W
Reset 01111111
Offset0x1F
WVAL
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor65
Page 66
Programming Model
BitsNameDescription
Table 51. PX_WATCH Field Descriptions
0–7WVAL
• R - Returns current programmed values.
• W - Sets the watchdog timer.
The PX_WATCH register has the following characteristics:
•Represents the eight most significant bits of an internal 34-bit watchdog timer.
•New values MUST be written before the PX_VCTL[WDEN] bit is set to ‘1’.
•Rewrites new values (except the PX_VCTL[GO] bit) every time the register is reset due to timeout
or other reset/restart conditions.
•Time formulae:
— Timer Base = 26-bits x 30ns interval = 2.01326592 seconds
— where the upper 8-bit field represents (seconds)
[(decimal value of the 8-bit field) x (2.01326592sec)] + 2.01326592sec
This table lists examples of PX_WATCH register values.
Table 52. Watchdog Timer Values
Timeout Value
Timeout
BinaryHex
111111110xFF0.59 min
011111110x7F4.29 min
001111110x3F2.15min
000111110x1F1.07 min
000011110x0F32.1 sec
000001110x0716.1 sec
000000110x038.05 sec
000000010x014.027 sec
000000000x002.013 sec
7.1.24Switch Register (PX_SWx)
The switch register defines configuration switch overrides. Each SWx register and its bits correspond to a
similarly named board switch.
If a matching ENx bit is set then the value written to the corresponding register bit is selected, not the
corresponding DIP-switch.
P5040/P5020 Reference Design Board User Guide, Rev. 0
66Freescale Semiconductor
Page 67
Programming Model
NOTE
SW registers do NOT reflect the content of physical switches.
Figure 45. Switch Register (PX_SW(1:8))
01234567
R
W
Reset 00000000
Offset0x20, 0x22, 0x24,...
SWx #1SWx #2SWx #3SWx #4SWx #5SWx #6SWx #7SWx #8
Table 53. PX_SW (1:8) Field Descriptions
BitsNameDescription
0–7SWx #bValues that will replace switch SWx #b.
7.1.25Switch Enable Register (PX_ENx)
The switch enable register selects the bit source PX_SWx register or corresponding switches.
Figure 46. Switch Enable Register (PX_EN(1:8))
01234567
R
W
Reset 00000000
Offset0x21, 0x23, 0x25,...
ENx #1ENx #2ENx #3ENx #4ENx #5ENx #6ENx #7ENx #8
Table 54. PX_EN(1:8) Field Descriptions
BitsNameDescription
• 0 - External switch SWx #b controls a corresponding configuration pin; the
0–7ENx #b
value is unaffected by the system controller.
• 1 - Internal register SWx #b controls a corresponding configuration pin; the
value is unaffected by the external switches.
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor67
Page 68
Programming Model
7.1.26GPIO OUT (PX_GPIO_OUT)
The read-only GPIO_OUT register stores GPIO values—values written from the processor when GPIO
signals are used for testing purposes, and the corresponding register PX_GPIO_DIR bit = ‘0’.
When testing processor GPIO signals: reg_BRDCFG2[1] = ‘1’, reg_BRDCFG2[2] = ‘1’, and the corresponding
PX_GPIO_DIR bit = ‘0’.
1
7.1.27GPIO Input (PX_GPIO_IN)
The GPIO input register drives processor GPIO input values when GPIO signals are used for testing
purposes, and the corresponding PX_GPIO_DIR bit = ‘1’.
When testing processor GPIO signals: reg_BRDCFG2[1] = ‘1’, reg_BRDCFG2[2] = ‘1’, and the corresponding
PX_GPIO_DIR bit = ‘1’.
1
7.2EEPROM Data
SystemID EEPROM stores important P5040/P5020RDB system data such as the board ID, errata (as
shipped), manufacturing date, and Ethernet MAC address.
P5040/P5020 Reference Design Board User Guide, Rev. 0
68Freescale Semiconductor
Page 69
Revision History
SystemID EEPROM is a factory-programmed, write-protected device. Data content is described in detail
in AN3638: The SystemID Format for Power Architecture® Development Systems; the document is
found on the http://www.freescale.com website.
8Revision History
This table provides a revision history for this document.
Table 57. Document Revision History
Rev.
Number
005/2013Initial public release
DateSubstantive Change(s)
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor69
Page 70
Reference board Switch Assignments and Defaults When Used with P5040/P5020
Appendix AReference board Switch Assignments and
Defaults When Used with P5040/P5020
NOTE
For the default settings listed in the tables below, ON = 1 and OFF = 0.
The following tables describe the default settings for the devices listed.
This figure describes switch 1 (SW1).
Figure 49. Switch 1 (SW1) description
This figure describes switch 2 (SW2).
P5040/P5020 Reference Design Board User Guide, Rev. 0
70Freescale Semiconductor
Page 71
Reference board Switch Assignments and Defaults When Used with P5040/P5020
Figure 50. Switch 2 (SW2) description
This figure describes switch 3 (SW3).
Figure 51. Switch 3 (SW3) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor71
Page 72
Reference board Switch Assignments and Defaults When Used with P5040/P5020
This figure describes switch 5 (SW5).
Figure 52. Switch 5 (SW5) description
This figure describes switch 6 (SW6).
Figure 53. Switch 6 (SW6) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
72Freescale Semiconductor
Page 73
This figure describes switch 7 (SW7).
Reference board Switch Assignments and Defaults When Used with P5040/P5020
Figure 54. Switch 7 (SW7) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor73
Page 74
Reference board Switch Assignments and Defaults When Used with P5040/P5020
This figure describes switch 8 (SW8).
Figure 55. Switch 8 (SW8) description
This figure describes switch 9 (SW9).
Figure 56. Switch 9 (SW9) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
74Freescale Semiconductor
Page 75
This figure describes switch 11 (SW11).
Reference board Switch Assignments and Defaults When Used with P5040/P5020
Figure 57. Switch 11 (SW11) description
This figure describes switch 12 (SW12).
Figure 58. Switch 12 (SW12) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor75
Page 76
Reference board Switch Assignments and Defaults When Used with P5040/P5020
This figure describes switch 15 (SW15).
This table describes SW17.
Figure 59. Switch 15 (SW15) description
Figure 60. Switch 17 (SW17) description
P5040/P5020 Reference Design Board User Guide, Rev. 0
76Freescale Semiconductor
Page 77
How to Reach Us:
Home Page:
freescale.com
Web Support:
freescale.com/support
Information in this document is provided solely to enable system and software
implementers to use Freescale products. There are no express or implied copyright
licenses granted hereunder to design or fabricate any integrated circuits based on the
information in this document.
Freescale reserves the right to make changes without further notice to any products
herein. Freescale makes no warranty, representation, or guarantee regarding the
suitability of its products for any particular purpose, nor does Freescale assume any
liability arising out of the application or use of any product or circuit, and specifically
disclaims any and all liability, including without limitation consequential or incidental
damages. “Typical” parameters that may be provided in Freescale data sheets and/or
specifications can and do vary in different applications, and actual performance may
vary over time. All operating parameters, including “typicals,” must be validated for each
customer application by customer’s technical experts. Freescale does not convey any
license under its patent rights nor the rights of others. Freescale sells products pursuant
to standard terms and conditions of sale, which can be found at the following address:
freescale.com/SalesTermsandConditions.
Freescale, the Freescale logo, CodeWarrior, and QorIQ are trademarks of Freescale
Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are
the property of their respective owners. The Power Architecture and Power.org word
marks and the Power and Power.org logos and related marks are trademarks and