CPLD Device with designator U21: LCMX02-256HC
See Document Change History
| Name | Direction | Pin | I/O Bank | Pullmode | IO_Type | Description |
|---|---|---|---|---|---|---|
| C_TCK | in | 30 | 0 | NONE | LVCMOS33 | JTAG B2B
|
| C_TDI | in | 32 | 0 | UP | LVCMOS33 | JTAG B2B
|
| C_TDO | out | 1 | 0 | NONE | LVCMOS33 | JTAG B2B
|
| C_TMS | in | 29 | 0 | UP | LVCMOS33 | JTAG B2B
|
| RST_EN | inout | 27 | 0 | UP | LVCMOS33 | Reset input signal
|
| USR_LED | out | 4 | 3 | NONE | LVCMOS33 | Priority dependend User LED - Blink Code, see chapter User LED |
| PG_ALL | in | 5 | 3 | NONE | LVCMOS33 | Power good input signal |
| JTAGEN | in | 26 | 0 | --- | LVCMOS33 | Enable JTAG access to CPLD for Firmware update
|
| MODE | in | 25 | 0 | UP | LVCMOS33 | Boot Mode for ZynqMP Devices
|
| MODE0 | out | 12 | 2 | NONE | LVCMOS18 | ZynqMP Boot Mode Pin 0
|
| MODE1 | out | 13 | 2 | NONE | LVCMOS18 | ZynqMP Boot Mode Pin 1
|
| MODE2 | out | 14 | 2 | NONE | LVCMOS18 | ZynqMP Boot Mode Pin 2
|
| MODE3 | out | 16 | 2 | NONE | LVCMOS18 | ZynqMP Boot Mode Pin 3
|
| NOSEQ | inout | 23 | 0 | UP | LVCMOS33 | No Sequencing
|
| PGOOD | inout | 28 | 0 | UP | LVCMOS33 | Dual use of PGOOD
|
| PUDC_B | out | 17 | 2 | NONE | LVCMOS18 | Pull up during configuration
|
| TCK | out | 9 | 2 | NONE | LVCMOS18 | JTAG ZynqMP
|
| TDI | out | 8 | 2 | NONE | LVCMOS18 | JTAG ZynqMP
|
| TDO | in | 10 | 2 | NONE | LVCMOS18 | JTAG ZynqMP
|
| TMS | out | 11 | 2 | NONE | LVCMOS18 | JTAG ZynqMP
|
| X0 | in | 20 | 1 | UP | LVCMOS18 | Used as SCL I²C clock pin |
| X1 | inout | 21 | 1 | UP | LVCMOS18 | Used as SDA I²C data pin |
JTAG signals routed directly through the CPLD to FPGA. Access between CPLD and FPGA can be multiplexed via JTAGEN (logical one for CPLD, logical zero for FPGA) on JM1-89.
There is no additional power management controlled by CPLD. PGOOD output signal is feedback from PG_ALL input signal.
RST_EN is used as reset input signal.
Constant 1 → The I/Os will be 3-stated after power-on when PUDC_B is High.
Boot mode adjustment via Software is removed as it is adjustable via XSCT console and to keep the code as simple as necessary. → BootMode via XSCT
Boot mode can be changed between SD, QSPI, JTAG or eMMC. Due to too few input pins, the PGOOD pin is used as an additional input pin. If necessary, variants without additional PGOOD pin can be provided on request (SD/QSPI, JTAG/QSPI, SD/JTAG). For other UltraScale+ Boot Modes options custom firmware is needed, see also Table 11.1 Boot Modes from Xilinx UG1085.
| Boot mode | PGOOD (B2B JM1-30) | Mode (B2B JM1-32) | comments |
|---|---|---|---|
| SD1 (SD card) | 1 | 0 | with carrier TE0703 Dip Switch
|
| QSPI | 1 | 1 | with carrier TE0703 Dip Switch
|
| JTAG | 0 | 0 | with carrier TE0703 Dip Switch
|
| SD0 (eMMC) | 0 | 1 | with carrier TE0703 Dip Switch
|
The I2C_info_core module provides read-only access to configuration and status registers (8-bit) implemented inside the CPLD. These registers are exposed via an I²C interface and follow a simple address-based protocol. The block uses I²C chip address 0x20 on I²C bus 1.
To read register from Linux
root# i2cget -y 1 0x20 <Index>
Where <index> is the register address described below
| Index | Bits | Name | Description | Default |
|---|---|---|---|---|
| 0x00 | [7:0] | CPLD_REVISION_MAJOR | Major CPLD firmware revision | 0x02 |
| 0x01 | [7:0] | CPLD_REVISION_MINOR | Minor CPLD firmware revision | 0x00 |
| 0x02 | [3:0] |
| Boot mode indicator:
| — |
| 0x3 | [7:0] | GIT_HASH[7:0] | 32-bit GIT commit hash of CPLD Firmware | 0x9E0B18EC |
| 0x4 | [7:0] | GIT_HASH[15:8] | ||
| 0x5 | [7:0] | GIT_HASH[23:16] | ||
| 0x6 | [7:0] | GIT_HASH[31:24] | ||
| 0x7 | [3:0] |
| Bootmode variant (depending on firmware):
|
|
| 0x8 | [7:0] | PUDC | Read generic PUDC (depending on firmware):
|
|
The gpio_expander module implements a VHDL-based PCA9538-compatible I²C GPIO expander core. It is accessible via I²C chip address 0x42 on I²C bus 1. Since the PCA9538 has robust driver support in both Linux and U-Boot, this module can be seamlessly integrated using the Device Tree. It works with common tools such as:
libgpiod (Linux user-space GPIO access)
gpioset, gpioget (Linux CLI)
gpio (U-Boot command)
ZynqMP> gpio status -a Example output: .... Bank gpio@42: gpio@42_0: input: 0 [ ] gpio@42_1: input: 0 [ ] ....
ZynqMP> gpio set gpio@42_0 gpio: pin gpio@42_1 is one
This sets GPIO 0 of I²C chip address 0x42 to high.
root# gpiodetect Example output: gpiochip0 [a40a0000.gpio] (2 lines) gpiochip1 [a40b0000.gpio] (8 lines) gpiochip2 [a40c0000.gpio] (12 lines)
gpioset 2 0=1
This sets line 0 of gpiochip2 (i.e., GPIO index 0) to high.
| gpiochip | Line | GPIO Pin | Description | Default |
|---|---|---|---|---|
| 2 |
| NOSEQ | Output control:
| 1 |
| 2 |
| USR_LED | Output control:
| 0 |
The User LED D2 indicates various system states using an 8-bit blink pattern. The pattern plays in a loop and reflects system status based on priority — higher-priority conditions override lower-priority ones.
| Priority | Pattern | Description |
|---|---|---|
0 | *0000000 | Power good failed |
1 | ******00 | Reset enabled |
2 | ******** | PGOOD = '0' - JTAG or eMMC Boot mode |
3 | (custom) | User-defined via I²C register |
4 | '0' | Default/inactive state |
Each asterisk (*) represents a short flash; each o represents an off-state of the same duration. For example, a pattern of **oooooo means 2 short flashes followed by a pause equal to six flash durations.
As module power management is not supported for this series, NOSEQ is used as GPIO pin. It can be accessed via I²C interface.
Dual use pin.
work.types_pkg.allROM128X1AI2C_info_core for CPLD informationgpio_expander.vhd (PCA9535_Emulator)led_blink_codes.vhdbood_mode_i to boot_mode_iTo get content of older revision got to "Change History" of this page and select older document revision number.
| Date | Document Revision | CPLD Firmware Revision | Supported PCB Revision | Authors | Description |
|---|---|---|---|---|---|
| REV02.00 | REV02 | Manuela Strücker |
| ||
| 2019-10-30 | v.4 | REV01 | REV01 | John Hartfiel |
|
| All |
Please also note our data protection declaration at https://www.trenz-electronic.de/en/Data-protection-Privacy
The material contained in this document is provided “as is” and is subject to being changed at any time without notice. Trenz Electronic does not warrant the accuracy and completeness of the materials in this document. Further, to the maximum extent permitted by applicable law, Trenz Electronic disclaims all warranties, either express or implied, with regard to this document and any information contained herein, including but not limited to the implied warranties of merchantability, fitness for a particular purpose or non infringement of intellectual property. Trenz Electronic shall not be liable for errors or for incidental or consequential damages in connection with the furnishing, use, or performance of this document or of any information contained herein.
In no event will Trenz Electronic, its suppliers, or other third parties mentioned in this document be liable for any damages whatsoever (including, without limitation, those resulting from lost profits, lost data or business interruption) arising out of the use, inability to use, or the results of use of this document, any documents linked to this document, or the materials or information contained at any or all such documents. If your use of the materials or information from this document results in the need for servicing, repair or correction of equipment or data, you assume all costs thereof.
Products (incl. Software and Firmware) are exclusively designed, manufactured, and distributed for industrial applications. They are not intended, authorized, or certified for use in critical safety applications, medical devices, aerospace, nuclear, life-support, traffic-control, military, or other environments where malfunction or failure could result in personal injury, death, or significant property or environmental damage.
Trenz Electronic GmbH (“Manufacturer”) excludes any liability for inappropriate use in such contexts. The Customer bears all responsibility for verifying suitability and compliance with applicable regulations when deploying in any critical-use scenario. The Customer also agrees to indemnify and hold harmless the Manufacturer from any third-party claims or liabilities arising from such use.
No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Trenz Electronic.
The hardware / firmware / software described in this document are furnished under a license and may be used /modified / copied only in accordance with the terms of such license.
To confront directly with the responsibility toward the environment, the global community and eventually also oneself. Such a resolution should be integral part not only of everybody's life. Also enterprises shall be conscious of their social responsibility and contribute to the preservation of our common living space. That is why Trenz Electronic invests in the protection of our Environment.
REACH
Trenz Electronic is a manufacturer and a distributor of electronic products. It is therefore a so called downstream user in the sense of REACH. The products we supply to you are solely non-chemical products (goods). Moreover and under normal and reasonably foreseeable circumstances of application, the goods supplied to you shall not release any substance. For that, Trenz Electronic is obliged to neither register nor to provide safety data sheet. According to present knowledge and to best of our knowledge, no SVHC (Substances of Very High Concern) on the Candidate List are contained in our products. Furthermore, we will immediately and unsolicited inform our customers in compliance with REACH - Article 33 if any substance present in our goods (above a concentration of 0,1 % weight by weight) will be classified as SVHC by the European Chemicals Agency (ECHA).
RoHS
Trenz Electronic GmbH herewith declares that all its products are developed, manufactured and distributed RoHS compliant.
WEEE
Information for users within the European Union in accordance with Directive 2002/96/EC of the European Parliament and of the Council of 27 January 2003 on waste electrical and electronic equipment (WEEE).
Users of electrical and electronic equipment in private households are required not to dispose of waste electrical and electronic equipment as unsorted municipal waste and to collect such waste electrical and electronic equipment separately. By the 13 August 2005, Member States shall have ensured that systems are set up allowing final holders and distributors to return waste electrical and electronic equipment at least free of charge. Member States shall ensure the availability and accessibility of the necessary collection facilities. Separate collection is the precondition to ensure specific treatment and recycling of waste electrical and electronic equipment and is necessary to achieve the chosen level of protection of human health and the environment in the European Union. Consumers have to actively contribute to the success of such collection and the return of waste electrical and electronic equipment. Presence of hazardous substances in electrical and electronic equipment results in potential effects on the environment and human health. The symbol consisting of the crossed-out wheeled bin indicates separate collection for waste electrical and electronic equipment.
Trenz Electronic is registered under WEEE-Reg.-Nr. DE97922676.