® Enhanced Configuration Devices (EPC4, EPC8 & EPC16) April 2002, ver. 2.0 Features Data Sheet ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ Altera Corporation DS-ECD-2.0 1 13 Development Tools Preliminary Information Enhanced configuration devices include EPC4, EPC8, and EPC16 devices 4-, 8-, and 16-Mbit Flash memory devices that configure StratixTM, APEXTM II, APEX 20K, MercuryTM , ACEXTM 1K, and FLEX® 10K devices – Compression increases effective configuration density of these devices up to 7, 15, or 30 Mbits Available in the 100-pin plastic quad flat pack (PQFP) package and the 88-pin Ultra FineLine BGATM package Standard Flash die and a controller die combined into one package VCCINT and VCCIO are both 3.3 V Supports true N-bit (N = 1, 2, 4, and 8) programmable logic device (PLD) concurrent configuration mode – Configures multiple PLDs in parallel – Supports an 8-bit parallel data output on every DCLK cycle Pin-selectable 2-ms or 100-ms power-on reset (POR) time Programmable clock speed with three clock modes for faster configuration time – Internal oscillator defaults to 10 MHz – Programmable internal oscillator for higher frequencies of 33, 50, and 66 MHz – External clock source with frequencies up to 133 MHz EPC16 configuration device allows PLD or processor to access unused Flash memory locations via external flash interface Flash memory can hold up to eight pages of configuration files, enabling systems to reconfigure PLDs with different configuration files Flash block/sector protection capability (EPC16 configuration devices only) Compliant with IEEE Std. 1532 in-system programmability (ISP) specification Supports ISP via JamTM Standard Test and Programming Language (STAPL) Supports Joint Test Action Group (JTAG) boundary scan nINIT_CONF pin allows private JTAG instruction to initiate PLD configuration Programmable configuration done error detection capability Internal programmable weak pull-ups on nCS and OE pins, Flash address, and control lines, and bus hold on data line Standby mode with reduced power consumption Enhanced Configuration Devices Data Sheet 1 Architecture Description Preliminary Information A future version of this data sheet will include more information on Stratix device support. The Altera® enhanced configuration devices support a single-device solution for very high-density PLDs while decreasing configuration time. The core of an enhanced configuration device is divided into two major blocks, the controller and the Flash memory. The Flash memory can be used for APEX II, APEX 20K, Mercury, ACEX, and FLEX 10K device configuration, and its unused locations can be used as memory storage for the PLD or processor. 1 All references to the direct Flash interface in this document are for EPC16 configuration devices only. For information on using Flash memory interface in the EPC4 or EPC8 configuration devices, please contact Altera Applications. Figure 1 shows a block diagram of the enhanced configuration device’s core blocks, their connection to the PLD, and their interface with the JTAG/ISP interface. Figure 1. Enhanced Configuration Device Block Diagram JTAG/ISP Interface Enhanced Configuration Device Flash 2 Controller PLD Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Enhanced Configuration Device Controller Unit The controller unit of the enhanced configuration device has a 3.3-V core and an I/O interface. The controller is a synchronous system that includes the following: Power-on reset circuitry (POR) Internal oscillator (IOSC) Clock divider unit (CDU) Decompression engine PLD configuration unit (PCU) JTAG interface unit (JIU) ■ ■ ■ ■ ■ ■ Figure 2 shows a block diagram of the enhanced configuration device controller unit. Figure 2. Enhanced Configuration Device Controller Unit Block Diagram Page Mode Select EXCLK (1) TDI, TDO, TMS , TCK Enhanced Configuration Device Controller 13 nINIT_CONF 3 Development Tools OE# nCONFIG IOSC Oscillator 4 WE# CE# WP# INTOSC CDU A[20:0] JIU Flash Memory 16 DCLK Divide by N SYSCLK Divide by M PLD Flash Data Out Bus DQ[15:0] 16 Flash Data In Bus 16 Decompression Engine PCU DCLK Pause [7:0] 16 DCLK 1 DATA[7:0] 8 DATA[7:0] POR Unit POR RP# RD/BY# POR Counter [15:8] Flash Reset CONF_DONE nCS 7 PLD Reset OE nSTATUS PORSEL Note to Figure 2: (1) EXCLK should be connected to VCC or GND if it is not being used. Altera Corporation 3 Enhanced Configuration Devices Data Sheet Preliminary Information Power-On Reset Unit The POR circuit keeps the system in reset until the power supply voltage levels have stabilized. The enhanced configuration device has two options for the POR time: the user can either keep the POR time at the 100-ms default value or reduce the POR time through the selectable input pin to 2 ms for applications that require fast power-up. The PORSEL input pin controls the POR reduction time from 100 ms to 2 ms. See Table 7 on page 28 for more information. The POR unit manages the controller’s reset scheme. When the POR counter expires, the POR unit releases the OE pin. The POR time can be further extended from an external source by driving the OE pin low. 1 Do not execute JTAG or ISP instructions until POR is complete. The enhanced configuration device reset can be divided into three categories: ■ ■ ■ The POR reset starts at initial power-up reset during VCC ramp or if VCC drops anytime after VCC has stabilized. The PLD initiates re-configuration by driving nSTATUS low, which occurs if the PLD detects a cyclic redundancy check (CRC) error or if the nCONFIG input pin is asserted in the PLD. The controller detects an error and asserts the OE to initiate reconfiguration of APEX II, APEX 20K, Mercury, ACEX 1K, and FLEX 10K devices when the auto restart upon error option is enabled in software. Internal Oscillator Frequencies for the internal oscillator (IOSC) of the enhanced configuration device, which supports four modes of internal clock frequencies, are shown in Table 1. The user can program the oscillator, which is controlled by option bits through the software. Table 1. Internal Oscillator Frequencies 4 Mode Min (MHz) Typ (MHz) Max (MHz) A 6.4 8.0 10.0 B 21.0 26.5 33.0 C 32.0 40.0 50.0 D 42.0 53.0 66.0 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Clock Divider Unit The CDU generates SYSCLK and DCLK for the controller by dividing the internal oscillator clock (INTOSC) or external clock (EXCLK). The CDU’s clock division architecture has two dividers. The first divider (N) divides down the selected reference clock to generate DCLK. The second divider (M) divides down DCLK to generate SYSCLK. Each divider contains a 1 to 16 integer divider. Both a 1.5 divider and a 2.5 divider are also implemented in the first divider (N), but the second divider (M) can only divide integers. As a default from power-up, the INTOSC is in mode A, the first divider is set to divide by one to generate the DCLK, and the second divider is set to divide by two to generate the SYSCLK (see Figure 3). f The maximum DCLK frequency for each PLD family is specified in Application Note 116 (Configuring SRAM-Based LUT Devices). Figure 3. Clock Divider Unit CDU INTOSC EXCLK Divide by N DCLK Divide by M SYSCLK Altera Corporation 5 13 Development Tools The default duty cycle for all clock divisions other than non-integer divisions is 50% (for the non-integer dividers, the duty cycle will not be 50%). For integer divisions, the CDU allows the duty cycle of DCLK and SYSCLK to be programmable by setting appropriate option bits through the software. The DCLK frequency is limited by the maximum DCLK frequency of the PLD, but the SYSCLK frequency is limited by the maximum Flash performance (about 10 MHz). Therefore, DCLK and SYSCLK might run at different frequencies. See Figure 3 for details on the CDU. Enhanced Configuration Devices Data Sheet Preliminary Information Decompression Engine Enhanced configuration devices support decompression. Configuration data is compressed by the QuartusTM II software and stored in the enhanced configuration device. During configuration, the decompression engine inside the enhanced configuration device will decompress or expand data. This feature increases the effective configuration density of the enhanced configuration device up to 7, 15, or 30 Mbits in EPC4, EPC8, and EPC16, respectively. The enhanced configuration device also supports a parallel data bus to the PLD to reduce configuration time. However, in some cases, the PLD data transfer is limited by the Flash data transfer rate. With parallel programming mode in the PLD (when N = 8 and the DCLK frequency is 66 MHz), the data output bandwidth to the PLD is faster than the data input bandwidth reading from the Flash. Because configuration time depends on the ratio of data bits read and the bandwidth used, the compression will improve configuration time. The decompression engine decompresses the configuration data before sending it to the PLD configuration unit (PCU) for PLD configuration. PLD Configuration Unit The function of the PCU is to transmit decompressed data to the PLD, depending on the configuration mode. The enhanced configuration device supports four concurrent configuration modes, with N = 1, 2, 4, or 8. Depending on the data width, the PCU shifts the data to transmit appropriate data to the valid data pins. Unused data pins drive low. In addition to transmitting data to the PLD, the PCU is responsible for delaying the DCLK to the PLD whenever there is insufficient decompressed data, i.e., when waiting for the decompression engine to decompress data. This technique is called “Pausing DCLK.” The PCU manages the CONF_DONE error detection logic. A CONF_DONE error occurs when nCS is not de-asserted within a certain number of clock cycles after the last data bit is transmitted to the PLD. When a CONF_DONE error is detected, the PCU asserts signals to the POR unit, which asserts the OE pin to start re-configuring the PLD. This is done only when the auto-restart configuration upon frame error option is enabled in software. 6 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet JTAG Interface Unit The IEEE Std. 1149.1 JTAG Boundary Scan is implemented in enhanced configuration devices to facilitate the testing of its interconnection and functionality. Enhanced configuration devices also support the ISP mode. The enhanced configuration device’s ISP is compliant with the IEEE Std. 1532 draft 2.0 specification. In addition to programming, erasing, and verifying the Flash, enhanced configuration devices (EPC16 configuration devices) also support block/sector protection through IEEE Std. 1532compliant instructions. The JTAG interface unit (JIU) communicates directly with the Flash memory (see Figure 4). The JIU operates at the maximum JTAG TCK frequency of 10 MHz. Figure 4. JTAG/ISP Interface JTAG/ISP Interface 13 Development Tools Controller Flash Memory JIU Before the JTAG/ISP interface programs the Flash memory, a JTAG instruction (PENDCFG) asserts the PLD’s nCONFIG pin (connected to nINIT_CONF pin), which will terminate any access to Flash. When the ISP mode starts, the JIU takes over the Flash memory. If the ISP mode starts during PLD configuration, the configuration terminates immediately. Altera Corporation 7 Enhanced Configuration Devices Data Sheet Preliminary Information Flash Memory The Flash memory in EPC4, EPC8, and EPC16 devices is 4, 8, or 16 Mbits, respectively, with the boot block at the bottom. The Flash memory is divided into three types of blocks: the boot block, parameter block, and main block. Each block has protection capability and can be erased individually. The enhanced configuration device can also program and erase the Flash lock bits through the JTAG interface. The lock bits protect Flash against an inadvertent erase; a block cannot be erased when the lock bit is set. Boot Block The boot block, which is 8K words on the EPC16 configuration device, can replace a dedicated boot PROM for a microprocessor (as found in ExcaliburTM embedded processor solutions). It can also store other system data, but not configuration data. The boot block features hardwarecontrollable write protection to protect the crucial microprocessor boot code from accidental modification using a combination of RP# and WP# pins and a block lock bit. Each block contains a lock bit that disables a program or an erase operation on the block. To use the bottom boot block in the Flash memory, WP# should be connected to VCC. If WP# is connected to GND, the bottom boot block is locked so it cannot be programmed or erased. WP# only exists in the bottom boot blocks; the other blocks are not affected. 1 When using the Quartus II software versions 2.0, WP# should be connected to VCC when programming with a Programmer Object File (.pof), otherwise, the Quartus II software cannot successfully program the device. JamTM (.jam) and Jam Byte-Code (.jbc) files can be used to successfully program EPC4, EPC8, and EPC16 devices when WP# is floating. Parameter Block The parameter block is used for storing small, frequently updated parameters. In EPC16 devices, there are six parameter blocks of 4K words. Parameter block protection is controlled by using a combination of RP# and block lock bits. Main Block The main block fills the remainder of the Flash memory and contains configuration and user memory space. In EPC16 configuration devices, there are 31 blocks of 32K words. Similar to the parameter block, the protection of the main block is controlled using a combination of RP# and block lock bits. 8 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Memory Map The EPC16 configuration device memory map can be divided into two main sections: controller memory space and user memory space. The controller memory space consists of the controller’s option bits and a maximum of eight pages of configuration data. The memory space starts with address 08000h (after 32K words of boot/parameter blocks) and continues upward. 512 bits reside from address 08000h to 00801fh, and they are reserved for option bits. Figure 5 shows the 16-Mbit Flash memory map for EPC16 devices. 13 Development Tools Altera Corporation 9 Enhanced Configuration Devices Data Sheet Preliminary Information Figure 5. Flash Memory in EPC16 Configuration Device (Bottom Boot) FFFFFh Empty locations that can be used by PLD/processor Not Used Not used by PLD/processor Page 7 Main Block Page mode section Page 0 08020h 0801Fh Option Bits Controller's 512 option bits 08000h Boot/Parameter Block Reserved Bottom Boot/Parameter Bottom 32K words are reserved for processor 00000h 10 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet In EPC16 configuration devices, the boot blocks and the parameter blocks are located at the bottom of the 32K-word blocks. Due to the lock bit flexibility available with 4K blocks and the WP# feature in the two 4K boot blocks, the user may want to use the bottom 32K-word block (boot and parameter blocks) for PLD or processor memory space. Altera recommends using the bottom 32K-word blocks (boot/parameter blocks). However, if the PLD or processor will boot from the top 32K-word blocks, the user should re-map the address to the bottom block by using glue logic. In systems that do not use PLD or processor memory space, the system user can use the bottom 32K-word blocks for configuration data memory space. Page Mode Selection The Page Mode Selection feature allows the enhanced configuration device to store up to eight different designs per PLD. The user chooses which design will configure the PLD at configuration. The Page Mode Selection will enable designers to switch the functionality of a PLD (or PLDs) by switching PGM [ ] pins. 1 Three input pins (PGM[2:0]) select one of eight pages of the configuration files that configure the PLDs. Page 0 is defined as the default page (see Figure 5 on page 10). Connect these pins on the board to select the user-specified page in the Quartus II software when generating the EPC4, EPC8, or EPC16 POF file. PGM2 is the most significant bit (MSB). Operating Modes The operating modes define the enhanced configuration device’s process flow of data and control signals. The data process flow explains how data is transferred between blocks during read and write cycles. The control process flow explains how control signals handshake between the blocks to facilitate data transfer. The main modes are normal mode and programming mode. Normal Mode The Normal mode controls the PLD configuration process using compressed data in the Flash memory. The process involves reading data from the Flash memory, data decompression, and sending data to the PLD. Altera Corporation 11 13 Development Tools Each page mode can have up to 8-bit concurrent configuration of devices. Enhanced Configuration Devices Data Sheet Preliminary Information Upon power-up, the POR unit generates all the reset signals. The POR unit resets all enhanced configuration device’s control units using the 10-MHz default internal clock as the main clock source. After the POR counter expires, the POR unit de-asserts OE. By holding OE low, the POR time can be extended. Upon start of the configuration process, the device samples the PGM[] select pins to determine which page of the configuration files in Flash memory should be used for PLD configuration. The CDU will switch the internal clock to the new clock settings according to the option bit setting. The device starts to read the Flash configuration data. When OE goes high, the PCU starts the DCLK and configures the PLD. When the last configuration data bits have been read from the Flash memory, the page counter expires and the PCU stops reading from the Flash memory. If no error is detected on CONF_DONE, DCLK will continue toggling until nCS goes high, indicating a successful PLD configuration cycle. If CONF_DONE error detection detects an error, the POR unit will assert OE and start a new PLD reconfiguration. After the PLD configuration process is complete, PCU stops DCLK. To keep the Flash memory in an idle state, the device enables pull-ups, pulldowns, and/or bus-keepers to the Flash interface pins. Programming Mode During ISP mode, the JTAG interface accesses the Flash memory. The controller processes the ISP instructions to access the Flash memory through the JIU. After receiving an ISP instruction, the JIU decodes the instruction and performs the necessary Flash bus cycle. At the end of the programming mode, the JIU interfaces with the PLD to initiate a PLD reconfiguration cycle. When the JTAG interface takes the bus-mastership, it starts to reconfigure the PLD. During PLD configuration, the JTAG interface should not be used, as using it may interfere with the PLD configuration. After the re-configuration cycle is successfully completed, the PLD asserts CONF_DONE high. Upon this assertion, DCLK drives low, and DATA[7:0] remains in the last logic state. Device Configuration f 12 The control signals from the enhanced configuration device (DATA[], DCLK, nCS, nINIT_CONF, and OE) interface directly with the APEX II, APEX 20K, Mercury, ACEX, or FLEX 10K devices’ control signals. For more information on parallel configuration, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet The DCLK pin, which is driven from the enhanced configuration device to the PLD, acts as the configuration cycle reference clock. It functions as the configuration data “write-enable” strobe signal. The OE pin is an opendrain pin and is driven low when POR is not complete. A built-in 2-ms or 100-ms counter holds the release of OE during the initial power-up to permit voltage level stabilization. After POR expires, the POR time can be extended externally by driving OE low. When OE is driven low, the enhanced configuration device resets the address counters. The nCS pin of the enhanced configuration device is connected to the CONF_DONE pin of the PLD. The nCS pin checks for a successful PLD configuration after the last configuration data has been transmitted to the PLD. The PLD always drives the nCS low when the OE is pulled low. Both the nCS and OE pins have a programmable weak internal pull-up resistor. Serial Configuration Mode APEX II, APEX 20K, Mercury, ACEX, and FLEX 10K devices can be configured through the enhanced configuration device in the serial programming mode. In this mode, the enhanced configuration device sends a serial bit-stream of configuration data to its DATA0 pin, which is routed to the DATA0 input pin on LUT-based PLDs. Figure 6 shows APEX II, APEX 20K, Mercury, ACEX, or FLEX 10K devices configured with an enhanced configuration device in the serial programming mode. Altera Corporation 13 13 Development Tools The enhanced configuration device allows the user to initiate configuration of APEX II, APEX 20K, Mercury, ACEX, or FLEX 10K devices via the nINIT_CONF pin, which can be tied to the nCONFIG pin of LUT-based PLDs. A JTAG instruction causes the enhanced configuration device to drive nINIT_CONF low, which, in turn, pulls nCONFIG low. The enhanced configuration device then drives nINIT_CONF high to start configuration. When the JTAG state machine exits this stage, nINIT_CONF releases the nCONFIG, and the PLD configuration is initiated. Enhanced Configuration Devices Data Sheet Preliminary Information Figure 6. Serial Configuration Mode VCC VCC (3) PLD VCC GND PLD or Processor (2) VCCW TMI WE#C WE#F RP#C RP#F DCLK A[20..0] (4) DATA0 OE RY/BY# nCS CE# nINIT_CONF (6) OE# (3) DCLK DATA0 (5) nSTATUS CONF_DONE nCONFIG MSEL0 MSEL1 Enhanced Configuration VCC Device (1) VCC nCE WE# RP# A[20..0] RY/BY# CE# OE# DQ[15..0] WP# DQ[15..0] (7) PORSEL (9) GND PGM[2..0] (9) TMO EXCLK (8) Optional External Clock Source GND Notes to Figure 6: (1) (2) (3) (4) (5) (6) (7) (8) (9) 14 If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to the controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ (except APEX 20KE devices require 10 kΩ). Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. nSTATUS should not have an external pull-up resistor for ACEX or FLEX devices. Instead, the programmable internal resistor on OE should be used. nINIT_CONF has an internal pull-up resistor that is always active. If nINIT_CONF is not available or not used, nCONFIG must be pulled to VCC either directly or through a 1-kΩ resistor. When configuring an APEX 20KE device, an external pull-up should not be used. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select EXCLK or internal oscillator as the clock source. For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet In the enhanced configuration device, the Flash memory stores the configuration data, and the controller transfers the configuration data through the DATA0 pin to LUT-based PLDs. DATA0, DCLK, nCS, nINIT_CONF, and OE pins interface the enhanced configuration device to the PLD. External Flash Memory Interface In EPC16 configuration devices, the unused memory portion of the main block (i.e., memory that was not used for the configuration file) can be used by an external source such as a microprocessor or PLD. This external source uses the unused Flash memory to store application codes. The address, data, and control ports of the Flash memory are internally connected to the enhanced configuration device controller and to external device pins. An external source can drive these external device pins to access the Flash memory when the interface to Flash is available, (i.e., when the controller is not accessing Flash memory). Flash memory access is available after successful configuration of the PLD, as indicated in Table 2, which lists the signals that indicate when the Flash memory is available. Table 2. Enhanced Configuration Devices Interface Signals (Part 1 of 2) nINIT_CONF/ nCONFIG OE/ nSTATUS nCS/ CONF_DONE External Flash Interface PLD State 0 X X Not available PLD or enhanced configuration device is in power-on reset (POR) mode, or nCONFIG is asserted by external source (PLD or processor), or private JTAG initiates configuration instruction. 1 0 0 Not available PLD or enhanced configuration device is in POR mode or has failed configuration. 1 1 0 (DCLK active) Not available Configuration is in process when DCLK is toggling. Altera Corporation 15 13 Development Tools When the controller accesses Flash memory while configuring a PLD or programming an enhanced configuration device, the processor must tristate the Flash interface pins to avoid contention. When the controller is not accessing Flash memory, the interface pins tri-state and allow the processor or PLD to access the Flash memory. Enhanced Configuration Devices Data Sheet Preliminary Information Table 2. Enhanced Configuration Devices Interface Signals (Part 2 of 2) nINIT_CONF/ nCONFIG OE/ nSTATUS nCS/ CONF_DONE External Flash Interface PLD State 1 1 0 (DCLK inactive) Available Enhanced configuration device is blank when CONF-DONE is low and DCLK is not toggling. 1 1 1 Available PLD is configured. When using an external source (processor or PLD) to access Flash memory, the following considerations should be made: ■ ■ ■ User cannot force the enhanced configuration device’s controller to relinquish Flash access to the external source (processor or PLD). The external source (processor or PLD) must wait until configuration is complete, or when CONF_DONE goes high, before accessing the Flash memory. If the Auto_Restart configuration option is enabled and corrupted programming data is in the Flash memory, enhanced configuration devices will continuously try to configure the PLD. In such cases, the external source (processor or PLD) cannot access the Flash memory until a valid programming file is downloaded to the enhanced configuration device. The external source (processor or PLD) can cause the configuration process to restart by releasing control of the interface and then toggling nCONFIG. 1 Because sharing causes contention during in-system programming and configuration, external flash interface signals cannot be shared between multiple enhanced configuration devices. The controller chips inside all the EPC16 devices are actively accessing flash memory during this time, causing contention on the external flash interface pins. Therefore, enhanced configuration devices do not support shared flash bus interfaces. Multiple Device Configuration in Serial Mode The enhanced configuration device supports parallel configuration of multiple devices in serial configuration mode (see Figure 7). The enhanced configuration device can simultaneously output 1, 2, 4, or 8 parallel DATA outputs to multiple LUT-based PLDs. The user selects the configuration modes via the software. 16 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Figure 7. Concurrent Configuration of Multiple Devices in Serial Mode (Different Data with N = 8) VCC (3) PLD0 VCC VCC TMI WE#C RP#C DCLK DATA0 (3) DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG VCCW WE#F WE# RP#F RP# A[20..0] (4) A[20..0] RY/BY# RY/BY# DATA1 DATA[2..6] nCE MSEL1 MSEL0 External PLD or Processor (2) Enhanced Configuration VCC Device (1) OE CE# CE# OE# OE# DQ[15..0] DQ[15..0] nCS nINIT_CONF (6) GND PLD1 GND (7) DATA 7 (9) DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG VCC PORSEL (9) WP# PGM[2..0] TMO EXCLK (8) Optional External Clock Source nCE MSEL1 MSEL0 13 GND GND Development Tools GND PLD7 DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG MSEL1 MSEL0 nCE GND GND Notes to Figure 7: (1) (2) (3) (4) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ (except APEX 20KE devices require 10 kΩ). Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. Altera Corporation 17 Enhanced Configuration Devices Data Sheet (5) (6) (7) (8) (9) Preliminary Information nSTATUS should not have an external pull-up resistor for ACEX or FLEX devices. Instead, the programmable internal resistor on OE should be used. nINIT_CONF has an internal pull-up resistor which is always active. If nINIT_CONF is not available or not used, an external pull-up should not be used. When configuring an APEX 20KE device, an external pull-up should not be used. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select the EXCLK or the internal oscillator as the clock source. For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. Table 3 summarizes the passive serial configuration modes in the enhanced configuration device. Table 3. Enhanced Configuration Devices in Passive Serial Mode Mode Name Mode Used Outputs (1) Unused Outputs Passive serial mode 1 DATA0 DATA[7..1] drive out Multi-device passive serial mode 2 DATA[1..0] DATA[7..2] drive out Multi-device passive serial mode 4 DATA[3..0] DATA[7..4] drive out Multi-device passive serial mode 8 DATA[7..0] – Note to Table 3: (1) The mode category gives the number of valid DATA outputs at each configuration mode. Figure 8 shows parallel configuration of multiple devices in passive serial mode with the same DATA. 18 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Figure 8. Concurrent Configuration of Multiple Devices in Serial Mode (Same Data with N = 1) VCC (3) PLD0 VCC VCC nCE (3) VCC WE# RP# A[20..0] RY/BY# CE# OE# DQ[15..0] WP# DQ[15..0] (7) GND PLD1 GND PLD or Processor (2) VCCW TMI WE#C WE#F RP#C RP#F DCLK A[20..0] (4) DATA0 OE RY/BY# nCS CE# nINIT_CONF (6) OE# DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG MSEL1 MSEL0 EPC16 Configuration VCC Device (1) PORSEL (9) DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG PGM[2..0] (9) TMO EXCLK (8) Optional External Clock Source nCE MSEL1 MSEL0 13 GND GND Development Tools GND PLD7 DCLK DATA0 nSTATUS (5) CONF_DONE nCONFIG MSEL1 MSEL0 nCE GND GND Notes to Figure 8: (1) (2) (3) (4) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in external EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ (except APEX 20KE devices require 10 kΩ). Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. Altera Corporation 19 Enhanced Configuration Devices Data Sheet (5) (6) (7) (8) (9) Preliminary Information nSTATUS should not have an external pull-up resistor for ACEX or FLEX devices. Instead, the programmable internal resistor on OE should be used. nINIT_CONF has an internal pull-up resistor that is always active. If nINIT_CONF is not available or not used, nCONFIG must be pulled to VCC either directly or through a 1-kΩ resistor. When configuring an APEX 20KE device, an external pull-up should not be used. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select the EXCLK or the internal oscillator as the clock source. For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. Fast Passive Parallel Configuration Mode APEX II devices can be configured through enhanced configuration devices in the FPP configuration mode. In this mode, the enhanced configuration device sends a byte of data to the DATA[7..0] pins, which route to the DATA[7..0] input pins in the APEX II device. APEX II devices receive byte-wide configuration data per each clock cycle. Figure 9 shows the enhanced configuration device FPP configuration mode. Figure 9. FPP Configuration Mode VCC APEX II Device (3) VCC MSEL0 MSEL1 Enhanced Configuration VCC Device (1) PLD or Processor (2) VCCW TMI WE#C WE#F RP#C RP#F DCLK DATA[7..0] A[20..0] (4) OE RY/BY# nCS CE# nINIT_CONF (5) OE# (3) DCLK DATA[7..0] nSTATUS CONF_DONE nCONFIG VCC GND VCC VCC nCE WE# RP# A[20..0] RY/BY# CE# OE# DQ[15..0] WP# DQ[15..0] (6) PORSEL (8) GND PGM[2..0] (8) TMO EXCLK (7) Optional External Clock Source GND 20 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Notes to Figure 9: (1) (2) (3) (4) (5) (6) (7) (8) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to the controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ. Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. nINIT_CONF has an internal pull-up resistor that is always active. If nINIT_CONF is not available or not used, nCONFIG must be pulled to VCC either directly or through a 1-kΩ resistor. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select EXCLK or internal oscillator as the clock source. For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. 13 Because CONF_DONE pins are tied together, all devices initialize and simultaneously enter user mode. If the enhanced configuration device detects an error, the configuration stops for the whole chain because nSTATUS pins are tied together. Altera Corporation 21 Development Tools Figure 10 shows a diagram of multiple APEX II device configuration with an enhanced configuration device in parallel programming mode. In this mode, multiple APEX II devices are cascaded together. After the first APEX II device completes configuration, its nCEO pin activates the second APEX II device’s nCE pin. This pin activation prompts the second device to start configuration. (See Figure 10.) Enhanced Configuration Devices Data Sheet Preliminary Information Figure 10. FPP Configuration of Multiple Devices in a Chain VCC VCC APEX II Device N DCLK DATA[7..0] nSTATUS CONF_DONE nCONFIG MSEL0 MSEL1 (3) APEX II Device 1 DCLK DATA[7..0] nSTATUS VCC CONF_DONE nCEO nCONFIG MSEL0 MSEL1 nCE nCE VCC Enhanced Configuration Device (1) VCC External PLD or Processor (2) VCC VCCW TMI WE#C WE#F RP#C RP#F DCLK DATA[7..0] A[20..0] (4) OE RY/BY# nCS CE# nINIT_CONF (5) OE# (3) VCC RP# A[20..0] RY/BY# CE# OE# DQ[15..0] WP# GND WE# DQ[15..0] (6) GND GND PORSEL (8) PGM[2..0] (8) TMO Optional External Clock Source EXCLK (7) GND Notes to Figure 10: (1) (2) (3) (4) (5) (6) (7) (8) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to the controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ (except APEX 20KE devices require 10 kΩ). Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. nINIT_CONF has an internal pull-up resistor that is always active. If nINIT_CONF is not available or not used, nCONFIG must be pulled to VCC either directly or through a 1-kΩ resistor. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select EXCLK or internal oscillator as the clock source. For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. Serial Configuration of Multiple Devices in a Chain Because enhanced configuration devices contain a significant amount of Flash memory, the user does not need to cascade multiple enhanced configuration devices to configure large devices. 22 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet An enhanced configuration device can configure a chain of PLDs that are cascaded together. Figure 11 shows the enhanced configuration device configuring a chain of multiple PLDs in serial mode. Figure 11. Serial Configuration of Multiple Devices in a Chain VCC PLDN DCLK DATA0 (5) nSTATUS CONF_DONE nCONFIG MSEL0 MSEL1 (3) PLD0 DCLK DATA0 (5) nSTATUS CONF_DONE nCEO nCONFIG MSEL0 MSEL1 nCE nCE GND GND VCC VCC Enhanced Configuration Device (1) External PLD or Processor (2) VCC VCCW TMI WE#C WE#F RP#C RP#F DCLK A[20..0] (4) DATA0 OE RY/BY# nCS CE# nINIT_CONF (6) OE# (3) VCC RP# A[20..0] RY/BY# CE# OE# DQ[15..0] WP# GND WE# DQ[15..0] (7) PORSEL (9) PGM[2..0] (9) TMO EXCLK (8) 13 Optional External Clock Source Notes to Figure 11: (1) (2) (3) (4) (5) (6) (7) (8) (9) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in external EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). For Flash interface in EPC4 and EPC8 configuration devices, please contact Altera Applications. The OE, nCS, and nINIT_CONF pins on enhanced configuration devices have internal pull-up resistors. The internal pull-up resistor on the nINIT_CONF pin is always active. However, on OE and nCS pins, the user has the option of turning these resistors on or off through the software. The internal pull-up resistors are used by default in the Quartus II software. To turn off the internal pull-up resistors, check the Disable nCS and OE pull-ups on configuration device option when generating programming files. If external pull-up resistors are used, they should be 1 kΩ. Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices should be left floating. These pins should not be connected to any signal, i.e., they are no-connect pins. nSTATUS should not have an external pull-up resistor for ACEX or FLEX devices. Instead, the programmable internal resistor on OE should be used. nINIT_CONF has an internal pull-up resistor that is always active. If nINIT_CONF is not available or not used, nCONFIG must be pulled to VCC either directly or through a 1-kΩ resistor. When configuring an APEX 20KE device, an external pull-up should not be used. For more information, refer to Application Note 116 (Configuring SRAM-Based LUT Devices). The Flash interface exists only in EPC16 configuration devices and is a tri-state interface. The signals displayed as dotted lines should not be driven when the Flash interface is not available. For Flash interface availability, refer to Table 2 on page 15. EXCLK is an input only. In the Quartus II software, the user can select the EXCLK or the internal oscillator as the clock source.For pin connections, refer to Table 7 on page 28. For pin connections, refer to Table 7 on page 28. Altera Corporation 23 Development Tools GND Enhanced Configuration Devices Data Sheet Preliminary Information Figure 12 shows the timing waveform for the enhanced configuration device scheme. Figure 12. Enhanced Configuration Device Scheme Timing Waveform nINIT_CONF or VCC/nCONFIG Note (1) tLOE OE/nSTATUS nCS/CONF_DONE tCE tHC tLC DCLK DATA Driven High bit/byte bit/byte 1 2 bit/byte n (2) tOE User I/O Tri-State Tri-State User Mode (3) INIT_DONE Notes to Figure 12: (1) (2) (3) 24 For timing information, refer to the Table 4 on page 25. The configuration device will drive DATA low after configuration. APEX II and APEX 20K devices enter user mode 40 clock cycles after CONF_DONE goes high. Mercury devices enter user mode 136 clock cycles after CONF_DONE goes high. ACEX 1K, FLEX 10K, and FLEX 6000 devices enter user mode 10 clock cycles after CONF_DONE goes high. Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Table 4 defines the enhanced configuration device timing parameters when using enhanced configuration devices at 3.3 V. Table 4. Enhanced Configuration Device Configuration Parameters (PLD Interface) Symbol Parameter Condition Min Typ Unit 66.7 MHz fDCLK DCLK frequency tDCLK DCLK period 15 ns tHC DCLK duty cycle high time 40% duty cycle 6 ns tLC DCLK duty cycle low time 40% duty cycle 6 ns tCE OE to first DCLK delay 40 µs tOE OE to first DATA available 40 tOH DCLK rising edge to DATA change (1) tCF (2) OE assert to DCLK disable delay 277 ns tDF (2) OE assert to DATA disable delay 277 ns tRE (3) DCLK rising edge to OE 60 ns tLOE OE assert time to assure reset 60 ns EXCLK input frequency EXCLK input period tECLKH EXCLK input duty cycle high time tECLKL µs (3) 40% duty cycle (3) 133 ns 13 Development Tools fECLK tECLK 40% duty cycle Max MHz 7.5 ns 40% duty cycle 3.375 ns EXCLK input duty cycle low time 40% duty cycle 3.375 ns tECLKR EXCLK input rise time 133 MHz 3 tECLKF EXCLK input fall time 133 MHz 3 ns tPOR (4) POR time 2 ms 1 2 3 ms 100 ms 50 100 120 ms ns Notes to Table 4: (1) (2) (3) (4) To calculate tOH , use the following equation: tOH = 0.5(DCLK period) - 2.5 ns. This parameter is used in cyclic redundancy check (CRC) error detection by CPLD. This parameter is used for CONF_DONE error detection by the enhanced configuration device. The VCC ramp time should be less than 1 ms for 2-ms POR, and it should be less than 100 ms for 100-ms POR. Altera Corporation 25 Enhanced Configuration Devices Data Sheet Preliminary Information Power Sequencing Altera recommends that you power-up the PLD before the enhanced configuration device’s POR expires. The pin-selectable POR time feature is useful for ensuring this power-up sequence. The enhanced configuration device has two POR settings, 2 ms and 100 ms. For more margin, the 100-ms setting can be selected to allow the PLD to power-up before configuration is attempted. Enhanced Configuration Device Pin-Outs Tables 5 through 7 describe pin definitions for the enhanced configuration device. These tables include PLD interface pins, Flash interface pins, JTAG interface pins, and other pins. Table 5. PLD Interface Pins with Respect to Controller Pin Name Pin Type Description DATA[7..0] Output This is the PLD configuration output data bus. DATA changes on each rising edge of DCLK. DCLK Output The DCLK pin is always an output. The enhanced configuration device drives the DCLK signal to the PLD as the configuration clock. nCS Input The nCS pin is an input to the enhanced configuration device and is used to input the PLD’s CONF_DONE signal for error detection after the last configuration data is transmitted to the PLD. The PLD will always drive nCS low when OE is asserted. This pin contains a programmable internal weak pull-up. nINIT_CONF Output The nINIT_CONF pin can be connected to the nCONFIG pin on LUT-based PLDs to initiate configuration for the enhanced configuration device via a private JTAG instruction. This pin contains a programmable internal weak pull-up. OE Open-Drain I/O This pin is driven low when POR is not complete. A user-selectable 2-ms or 100-ms counter holds off the release of OE during initial power up to permit voltage levels to stabilize. POR time can be extended externally by driving OE low. After the enhanced configuration device controller releases OE, it waits for OE to go high before starting the PLD configuration process. This pin contains a programmable internal weak pull-up. 26 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Table 6. Flash Interface Pins Pin Name Note (1) Pin Type Description A[20:0] (2) Input These pins are the address input to the Flash memory for read and write operations. The addresses are internally latched during a write cycle. DQ[15:0] Input/Output These pins are a Data bus that interface with the Flash memory and the controller. The controller or an external source drives DQ[15:0] during the Flash command and the data write bus cycles. During the data read cycle, Flash memory drives the DQ[15:0] to the controller. CE# (3) Input When asserted, it activates the Flash memory. When it is high, it deselects the device and reduces power consumption to standby levels. RP# (3), (4) Input When asserted, it resets the Flash memory. When high, it enables normal operation. When low, it inhibits write operation in the Flash memory, which provides data protection during power transitions. OE# (3) Input The controller asserts this pin during Flash read cycles. When asserted, it enables the drivers of Flash output pins. WE# (3), (5) Input The controller asserts WE# during Flash write cycle. When asserted, it controls writes to the Flash memory. In the Flash memory, addresses and data are latched on the rising edge of the WE# pulse. WP# (3), (5) Input This pin is usually tied to VCC or ground on the board. The controller does not drive this pin because it could cause contention. VCCW Supply Block erase, full chip erase, word write, or lock bit configuration power supply. RY/BY# (3) Output Flash asserts this pin when a write or erase operation is complete. This is a Flash only pin. 13 (1) (2) (3) (4) (5) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to controller unit. The only pins that need external connection are WP#, WE#, and RP#, which are shown in Figure 13 on page 29. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). Pin A20 in EPC16 devices, pins A20 and A19 in EPC8 devices, and pins A20, A19, and A18 in EPC4 devices are floating. These pins should not be connected to any signal, i.e., they are no-connect pins. The # symbol means active low. RP#F and WE#F are pins on the Flash die. RP#C and WE#C are pins on the controller die. WE#C and WE#F should be connected together on the PCB. RP#F and RP#C should also be connected together on the PCB. These pins can be driven to 12 V during Flash testing. Because the controller cannot tolerate the 12-V level, connection on these pins from the controller to the Flash will not be bonded internally in the package and they will be available as two separate pins. The user is required to connect the two pins at the board level (for example, on the PCB, connect the WE# pin from controller to WE# pin from the Flash memory, as shown in Figure 13 on page 29). WP# should be connected to VCC on the board when using the Quartus II software versions 1.0 and 1.1. Altera Corporation 27 Development Tools Notes to Table 6: Enhanced Configuration Devices Data Sheet Preliminary Information Table 7. JTAG Interface Pins and Other Pins with Respect to Controller Pin Name Pin Type Description TDI Input This is a JTAG data input pin. Connect this pin to VCC if the JTAG circuitry is not used. TDO Output This is a JTAG data output pin. Do not connect this pin if the JTAG circuitry is not used. TCK Input This is a JTAG clock pin. Connect this pin to ground if the JTAG circuitry is not used. TMS Input This is a JTAG mode select pin. Connect this pin to VCC if the JTAG circuitry is not used. PGM[2..0] Input These three input pins select one of the eight pages of the configuration files to configure the PLD. Connect these pins on the board to select the page specified by the designer in the Quartus II software when generating the enhanced configuration device POF file. PGM[2] is the MSB. EXCLK Input During Normal mode, the EXCLK pin operates as the external clock source. PORSEL Input This pin selects a 2-ms or 100-ms POR counter delay during power up. When PORSEL is Low, POR time is 100 ms. When PORSEL is High, POR time is 2 ms. TMO Input Test mode pin selects different test modes. In operating mode, this pin should be connected to GND TMI Input Test mode pin selects different test modes. In operating mode, this pin should be connected to VCC Package The EPC16 configuration device is available in both the 88-pin Ultra FineLine BGA package and the 100-pin PQFP package. The Ultra FineLine BGA package, which is based on 0.8-mm pitch, maximizes board space efficiency. A board can be laid out for this package using only one PCB layer. The EPC8 and EPC4 devices are available in the 100-pin PQFP package. Figure 13 shows the PCB routing for the 88-pin Ultra FineLine BGA package. The Gerber file for this layout is on the Altera web site at http://www.altera.com. 28 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Figure 13. PCB Routing for 88-Pin Ultra FineLine BGA Package Notes (1), (4) NC VCC A20 A11 A15 A14 A13 A12 GND DCLK DATA7 NC OE WE# C A16 A8 A10 A9 DQ15 PGM0 DQ14 DQ7 DATA5 DATA6 TCK WE# F RY/BY# nINIT CONF PGM1 DQ13 DQ6 DQ4 DQ5 DATA4 TDI GND RP# F TM1 VCC DQ12 RP# C VCC VCC DATA3 (2) TDO (2) (2) WP# (2) VCCW A19 DQ11 VCC DQ10 DQ2 DQ3 DATA2 (3) NC NC PGM2 PORSEL DQ9 DQ8 DQ0 DQ1 DATA1 VCC nCS A18 A17 A7 A6 A3 A2 A1 VCC GND DATA0 NC GND EXCLK A5 A4 A0 CE# GND OE# TM0 GND NC 13 Development Tools TMS Notes to Figure 13: (1) (2) (3) (4) If the direct Flash interface is not used in an enhanced configuration device, then the Flash pins should be left unconnected because they are internally connected to controller unit. The only pins that need external connection are WP#, WE#, and RP#. If Flash is being used as an external memory source (in EPC16 configuration devices), then the Flash pins should be connected. For more information, consult the LHF16J06 Data Sheet on the Altera web site (http://www.altera.com). RP#F and WE#F are pins on the Flash die. RP#C and WE#C are pins on the controller die. WE#C and WE#F should be connected together on the PCB. RP#F and RP#C should also be connected together on the PCB. WP# should be connected to 3.3 V to be able to program the bottom boot block, which is required when programming the device from the Quartus II software. For pin connections, refer to the Altera web site at http://www.altera.com. Altera Corporation 29 Enhanced Configuration Devices Data Sheet Preliminary Information Package Layout Recommendation Enhanced configuration devices in 100-pin PQFP packages have different package dimension than other 100-pin PQFP devices. Figure 14 shows the 100-pin PQFP PCB footprint specifications for enhanced configuration devices. These footprint dimensions are based on vendor-supplied package outline diagrams. Figure 14. Enhanced Configuration Device PCB Footprint Specifications for 100-Pin PQFP Packages Notes (1), (2), (3) 0.65-mm pad pitch 0.325 mm 19.3 mm 0.410 mm 25.3 mm 2.4 mm 0.5 1.5 1.0 30 2.0 mm Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Notes to Figure 14: (1) (2) (3) Used 0.5-mm increase for front and back of nominal foot length Used 0.3-mm increase to maximum foot width. Diagrams are based on vendor-supplied drawings. ISP Programming & Configuration File Support The Quartus II development software provides programming support for the enhanced configuration device and automatically generates the programming files for the EPC4, EPC8, and EPC16 configuration devices. In a multi-device project, the software can combine the programming files for multiple APEX II, APEX 20K, Mercury, ACEX, or FLEX 10K devices into one EPC4, EPC8, or EPC16 configuration device. Enhanced configuration devices can be programmed in-system through its industry-standard 4-pin JTAG interface. ISP in the enhanced configuration device provides ease in prototyping and updating APEX II, APEX 20K, Mercury, ACEX, or FLEX device functionality. Enhanced configuration devices can also be programmed by third-party Flash programmers. Altera Corporation 31 13 Development Tools After programming an enhanced configuration device in-system, LUTbased PLD configuration can be initiated by including the enhanced configuration device’s JTAG INIT_CONF instruction. See Table 8. Enhanced Configuration Devices Data Sheet Preliminary Information The ISP circuitry in the enhanced configuration device is compliant with the IEEE Std. 1532 specification. The IEEE Std. 1532 is a standard that allows concurrent ISP between devices from multiple vendors. Table 8. Enhanced Configuration Device JTAG Instructions JTAG Instruction Description SAMPLE/PRELOAD Allows a snapshot of the state of the enhanced configuration device pins to be captured and examined during normal device operation and permits an initial data pattern output at the device pins. EXTEST Allows the external circuitry and board-level interconnections to be tested by forcing a test pattern at the output pins and capturing results at the input pins. BYPASS Places the 1-bit bypass register between the TDI and the TDO pins, which allow the BST data to pass synchronously through a selected device to adjacent devices during normal device operation. IDCODE (1) Selects the device IDCODE register and places it between TDI and TDO, allowing the device IDCODE to be serially shifted out to TDO. The device IDCODE for the enhanced configuration device is shown below: 0100A0DDh USERCODE Selects the USERCODE register and places it between TDI and TDO, allowing the USERCODE to be serially shifted out the TDO. The 32-bit USERCODE is a programmable user-defined pattern. INIT_CONF This function initiates the PLD re-configuration process by tying nINIT_CONF to the PLD(s) nCONFIG pin(s). After this instruction is updated, the nINIT_CONF is released and starts the PLD configuration. PENDCFG This function asserts nINIT_CONF before accessing the Flash memory, if the external PLD/processor is connected to the Flash. This avoids a Flash bus contention when both JTAG/ISP and external PLD/processor want to access the Flash. Before JTAG/ISP can access the Flash, the external PLD/processor needs to be reset by asserting nINIT_CONF, which puts the external PLD/processor in a “reset” state and waits for the de-assertion of the INIT_CONF. Note to Table 8: (1) 32 For enhanced configuration devices, instruction register length is 10 and boundary scan length is 174. Altera Corporation Preliminary Information IEEE Std. 1149.1 (JTAG) Boundary-Scan Testing Enhanced Configuration Devices Data Sheet The enhanced configuration device provides JTAG BST circuitry that complies with the IEEE Std. 1149.1-1990 specification. JTAG boundaryscan testing can be performed before or after configuration, but not during configuration. Table 9 shows the timing parameters and values for the enhanced configuration device. Table 9. JTAG Timing Parameters & Values Symbol Min Max 100 Unit tJCP TCK clock period tJCH TCK clock high time 50 ns ns tJCL TCK clock low time 50 ns tJPSU JTAG port setup time 20 ns tJPH JTAG port hold time 45 tJPCO JTAG port clock output 25 ns tJPZX JTAG port high impedance to valid output 25 ns tJPXZ JTAG port valid output to high impedance 25 ns tJSSU Capture register setup time 20 tJSH Capture register hold time 45 tJSCO Update register clock to output 25 ns tJSZX Update register highimpedance to valid output 25 ns tJSXZ Update register valid output to high impedance 25 ns ns 13 Development Tools Altera Corporation Parameter ns ns 33 Enhanced Configuration Devices Data Sheet Operating Conditions Preliminary Information Tables 10 through 15 provide information on absolute maximum ratings, recommended operating conditions, DC operating conditions, supply current values, capacitance, and configuration parameters for the enhanced configuration device. Table 10. Enhanced Configuration Device Absolute Maximum Rating Symbol Parameter Condition Min Max Unit VCC Supply voltage With respect to ground –0.5 4.6 V VI DC input voltage With respect to ground –0.5 3.6 V 100 mA IMAX DC VCC or ground current IOUT DC output current, per pin PD Power dissipation TSTG Storage temperature No bias –65 TAMB Ambient temperature Under bias –65 TJ Junction temperature Under bias –25 25 mA 360 mW 150 °C 135 °C 135 °C Min Max Unit 3.0 3.6 V With respect to ground –0.3 VCC + 0.3 V 0 VCC V For commercial use 0 70 °C Table 11. Enhanced Configuration Device Recommended Operating Conditions Symbol Parameter VCC Supplies voltage for 3.3-V operation VI Input voltage Condition VO Output voltage TA Operating temperature 85 °C TR Input rise time 20 ns TF Input fall time 20 ns For industrial use 34 –40 Altera Corporation Preliminary Information Enhanced Configuration Devices Data Sheet Table 12. Enhanced Configuration Device DC Operating Conditions Symbol Parameter Condition Min Typ Max Unit 3.3 3.6 V VCC + 0.3 V VCC Supplies voltage to core 3.0 2.0 VIH High-level input voltage VIL Low-level input voltage VOH 3.3-V mode high-level TTL output voltage 0.8 IOH = –4 mA 3.3-V mode high-level CMOS IOH = –0.1 mA output voltage V VCC – 0.2 V Low-level output voltage TTL IOL = –4 mA DC VOL V 2.4 0.45 V 0.2 V IOL = –0.1 mA DC II Input leakage current VI = VCC or ground –10 10 µA IOZ Tri-state output off-state current VO = VCC or ground –10 10 µA RCONF Configuration pins Internal pull up (OE, nCS, nINIT, CONF) 6 kΩ Table 13. Enhanced Configuration Device ICC Supply Current Values Symbol Parameter Condition Min Typ Max Unit ICC0 VCC supply current (standby) 50 100 µA ICC1 VCC supply current (during configuration) 50 100 mA Table 14. Enhanced Configuration Device Capacitance Symbol Parameter Condition Min Max Unit CIN Input pin capacitance 10 pF COUT Output pin capacitance 10 pF Altera Corporation 35 13 Development Tools Low-level output voltage CMOS Enhanced Configuration Devices Data Sheet Preliminary Information Table 15. Enhanced Configuration Device Configuration Parameters (Flash Interface) Symbol Parameter Condition Min Typ Max Unit – 10 MHz – ns fSCLK SYSCLK frequency tSCLK SYSCLK period 100 tSCLKH SYSCLK duty cycle high time 50 ns tSCLKL SYSCLK duty cycle low time 50 ns tAVQV(F) Flash address to data DQ[15:0] delay – 85 ns tGLQV(F) Flash OE# to data DQ[15:0] delay – 40 ns tWLWH(F) Flash WE# pulse width 50 – ns tWHR0(F) Flash WE# high to SR7 ready – 100 ns Device Pin-Outs 101 Innovation Drive San Jose, CA 95134 (408) 544-7000 http://www.altera.com Applications Hotline: (800) 800-EPLD Literature Services: [email protected] 36 See the Altera web site (http://www.altera.com) or the Altera Digital Library for pin-out information. Copyright © 2002 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device designations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Altera products are protected under numerous U.S. and foreign patents and pending applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services. Altera Corporation Printed on Recycled Paper.