Application Note Automatic Configuration of IQX Family 1.0 Introduction I-Cube's Digital Crosspoint Switching (DCS) products are SRAM-based, thus requiring configuration at power-on. The configuration data can be stored in an EEPROM device and downloaded to the device(s) upon power-up. This application note presents an example showing how to automatically configure the IQX family of Digital Crosspoint Switching (DCS) products using dual serial EEPROMs. 2.0 Design Description 2.1 Block diagram EEPROM #1 Hardware Reset DATA IQX Device CLK External Clock TRST* EEPROM #2 TMS TDI DATA TCK CLK TDO Note: Figure 1. * means "Active Low" Auto-Configuration Using Dual Serial EEPROM's Block Diagram A Serial EEPROM can be used to store the bit stream for the IQX family of products. Using minimal external logic, the bit stream stored in the EEPROM can be downloaded into the IQX device(s) over the TDI and TMS pins, with the TCK pin used for synchronization. Since the configuration of IQX requires two bit streams, one for TDI and one for TMS, it is recommended to have two EEPROMs, one for each bit-stream. IQX devices do not provide a clock output. Therefore, external logic is required to provide a clock source to both the EEPROMs and the IQX devices. Rev 3.0 - July 2001 [Doc. # IQX_AutoConfig_ApNote] 1 of 4 Automatic Configuration of IQX Family Most connections between the serial EEPROMs and the IQX devices (refer to the Figure 1) are simple and self-explanatory. * The first EEPROM stores the test mode information; therefore, its DATA output drives the TMS of the IQX device. * The second EEPROM stores the test data information; therefore, its DATA output drives the TDI of the IQX device. * External logic is needed to generate a clock signal for the TCK pin of the IQX device and the CLK input of each EEPROM. 2.2 EEPROM size Table 1 shows the EEPROM size recommended for each IQX device. Note: two EEPROMs are required in this application in order to store the bit infor-mation for TMS and TDI. Table 1 2.3 EEPROM Size by IQX Device Devices EEPROM Size IQX320 256K x 1 bit IQX240B 128K x 1 bit IQX160 65K x 1 bit IQX128B 65K x 1 bit Software I-Cube's IDS100 software provides an option to convert a bit stream file into an ASCII hex file suitable for use with an EPROM programmer. It can generate hex files in either Motorola 32bit hex or Intel Hex-32 format. The "IDS100 IQX Family User's Guide" document, under "Make EPROM file option" section, provides step-by-step instructions on how to make EEPROM files. * If using IDS100 under Windows, option 4 in the "Make EEPROM" dia-log box of the IDS100 software will separate the TMS bits and the TDI bits from the bit stream file into two different files for serial EEPROM devices. * If using IDS100 under DOS, the following command is used to convert a bit stream file into an EEPROM file. mkeprom bin_file hex_File [-f{M/I}] [-s{4}] [-axxxx] [-exxx] Where, bin_file a binary bit stream file generated by the I-Cube program hex_file the resulting output hex file -f{M/I} specify the format for the output hex file; specify M for Motorola 32-bit hex and I for Intel Hex-32 -s(4) specify the ordering or sequencing of the TMS/TDI bits in the hex data bytes. Option 4 is used to convert a bit stream file into two separate TMS and TDI files for serial EEPROM devices. -a specify the starting address -e specify the ending address 2 of 4 [Doc. # IQX_AutoConfig_ApNote] Rev 3.0 - July 2001 Automatic Configuration of IQX Family Both the IDS100 software and the "IDS100 IQX Family User's Guide" docu-ment can be downloaded from I-Cube's web site, http://www.icube.com. 2.4 Design Example This is an example demonstrating how to automatically configure an IQX320 device using dual serial EEPROM. Two 256K x 1 serial EEPROMs from ATMEL, part number AT17C256, are used to store the bit streams. Refer to Atmel's AT17C256 data sheet for more details on these devices. The layout of the circuitry is shown in the Figure 2. Upon power-up, an active low RESET signal will reset the IQX320 device and the two serial EEPROMs. An external clock is used to synchronize all devices. The bit stream stored in each EEPROM is downloaded to the IQX320 device through the TDI and TMS pins. At the end of the bit stream, the CEO pin will be a logic "0". Once the CEO pin is at logic "0" for the first EEPROM, it generates a STOP signal that will disable the clock for both EEPROMs. The logic "0" state of the second CEO will turn on the LED to signify that the configuration is completed. VCC 10 K AT17C256 Reset*/OE 10 K VCC SER_EN* IQX320 DATA RESET* CE* CEO* VCC 10 K CLK TRST* STOP* TDI CLOCK* RESET* VCC 10 K 1.1 F 10 K TDO TCK TMS RCE AT17C256 VCC Reset*/OE VCC 10 K SER_EN* DATA VCC CE* CEO* CLK 1K LED VCC STOP* RESET* OSC CLOCK 10 K CLOCK* Note: Figure 2. Rev 3.0 - July 2001 * means "Active Low" Auto-Configuring the IQX320 Using Dual Serial EEPROMs Schematic [Doc. # IQX_AutoConfig_ApNote] 3 of 4 Automatic Configuration of IQX Family I-Cube(R) is a registered trademark and ActiveArray, ImpliedDisconnect, RapidConnect, RapidConfigure, IQ, IQX, MSX, OCX, and PSX are trademarks of I-Cube, Inc. All other trademarks or registered trademarks are the property of their respective holders. I-Cube, Inc., does not assume any liability arising out of the applications or use of the product described herein; nor does it convey any license under its patents, copyright rights or any rights of others. The information contained in this document is believed to be current and accurate as of the publication date. I-Cube reserves the right to make changes, at any time, in order to improve reliability, function, performance or design in order to supply the best product possible. I-Cube assumes no obligation to correct any errors contained herein or to advise any user of this text of any correction if such be made. This product is protected under the U.S. patents: 5202593, 5282271, 5426738, 5428750, 5428800, 5465056, 5530814, 5559971, 5625780, 5710550, 5717871, 5734334, 5754791, 5781717, 5784003, 5790048, 5884101. Additional patents pending. Automatic Configuration of IQX Family-- Rev 3.0, July 2001 Copyright (c) 1992-2001 I-Cube, Inc. All rights reserved. Unpublished--rights reserved under the copyright laws of the United States. Use of copyright notices is precautionary and does not imply publication or disclosure. I-Cube(R), Inc. 2605 S. Winchester Blvd. Campbell, CA 95008 USA Phone: Fax: Email: Internet: 4 of 4 +(408) 341-1888 +(408) 341-1899 marketing@icube.com http://www.icube.com Automatic Configuration of IQX Family Revision 3.0, July 2001 Document#: IQX_AutoConfig_ApNote_3.0 [Doc. # IQX_AutoConfig_ApNote] Rev 3.0 - July 2001