Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008...

56
Altera Corporation 2–1 May 2008 Preliminary 2. Cyclone Architecture Functional Description Cyclone ® devices contain a two-dimensional row- and column-based architecture to implement custom logic. Column and row interconnects of varying speeds provide signal interconnects between LABs and embedded memory blocks. The logic array consists of LABs, with 10 LEs in each LAB. An LE is a small unit of logic providing efficient implementation of user logic functions. LABs are grouped into rows and columns across the device. Cyclone devices range between 2,910 to 20,060 LEs. M4K RAM blocks are true dual-port memory blocks with 4K bits of memory plus parity (4,608 bits). These blocks provide dedicated true dual-port, simple dual-port, or single-port memory up to 36-bits wide at up to 250 MHz. These blocks are grouped into columns across the device in between certain LABs. Cyclone devices offer between 60 to 288 Kbits of embedded RAM. Each Cyclone device I/O pin is fed by an I/O element (IOE) located at the ends of LAB rows and columns around the periphery of the device. I/O pins support various single-ended and differential I/O standards, such as the 66- and 33-MHz, 64- and 32-bit PCI standard and the LVDS I/O standard at up to 640 Mbps. Each IOE contains a bidirectional I/O buffer and three registers for registering input, output, and output-enable signals. Dual-purpose DQS, DQ, and DM pins along with delay chains (used to phase-align DDR signals) provide interface support with external memory devices such as DDR SDRAM, and FCRAM devices at up to 133 MHz (266 Mbps). Cyclone devices provide a global clock network and up to two PLLs. The global clock network consists of eight global clock lines that drive throughout the entire device. The global clock network can provide clocks for all resources within the device, such as IOEs, LEs, and memory blocks. The global clock lines can also be used for control signals. Cyclone PLLs provide general-purpose clocking with clock multiplication and phase shifting as well as external outputs for high-speed differential I/O support. Figure 2–1 shows a diagram of the Cyclone EP1C12 device. C51002-1.6

Transcript of Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008...

Page 1: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–1May 2008 Preliminary

2. Cyclone Architecture

Functional Description

Cyclone® devices contain a two-dimensional row- and column-based architecture to implement custom logic. Column and row interconnects of varying speeds provide signal interconnects between LABs and embedded memory blocks.

The logic array consists of LABs, with 10 LEs in each LAB. An LE is a small unit of logic providing efficient implementation of user logic functions. LABs are grouped into rows and columns across the device. Cyclone devices range between 2,910 to 20,060 LEs.

M4K RAM blocks are true dual-port memory blocks with 4K bits of memory plus parity (4,608 bits). These blocks provide dedicated true dual-port, simple dual-port, or single-port memory up to 36-bits wide at up to 250 MHz. These blocks are grouped into columns across the device in between certain LABs. Cyclone devices offer between 60 to 288 Kbits of embedded RAM.

Each Cyclone device I/O pin is fed by an I/O element (IOE) located at the ends of LAB rows and columns around the periphery of the device. I/O pins support various single-ended and differential I/O standards, such as the 66- and 33-MHz, 64- and 32-bit PCI standard and the LVDS I/O standard at up to 640 Mbps. Each IOE contains a bidirectional I/O buffer and three registers for registering input, output, and output-enable signals. Dual-purpose DQS, DQ, and DM pins along with delay chains (used to phase-align DDR signals) provide interface support with external memory devices such as DDR SDRAM, and FCRAM devices at up to 133 MHz (266 Mbps).

Cyclone devices provide a global clock network and up to two PLLs. The global clock network consists of eight global clock lines that drive throughout the entire device. The global clock network can provide clocks for all resources within the device, such as IOEs, LEs, and memory blocks. The global clock lines can also be used for control signals. Cyclone PLLs provide general-purpose clocking with clock multiplication and phase shifting as well as external outputs for high-speed differential I/O support.

Figure 2–1 shows a diagram of the Cyclone EP1C12 device.

C51002-1.6

Page 2: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–2 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–1. Cyclone EP1C12 Device Block Diagram

The number of M4K RAM blocks, PLLs, rows, and columns vary per device. Table 2–1 lists the resources available in each Cyclone device.

Logic Array

PLL

IOEs

M4K Blocks

EP1C12 Device

Table 2–1. Cyclone Device Resources

DeviceM4K RAM

PLLs LAB Columns LAB RowsColumns Blocks

EP1C3 1 13 1 24 13

EP1C4 1 17 2 26 17

EP1C6 1 20 2 32 20

EP1C12 2 52 2 48 26

EP1C20 2 64 2 64 32

Page 3: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–3May 2008 Preliminary

Logic Array Blocks

Logic Array Blocks

Each LAB consists of 10 LEs, LE carry chains, LAB control signals, a local interconnect, look-up table (LUT) chain, and register chain connection lines. The local interconnect transfers signals between LEs in the same LAB. LUT chain connections transfer the output of one LE's LUT to the adjacent LE for fast sequential LUT connections within the same LAB. Register chain connections transfer the output of one LE's register to the adjacent LE's register within a LAB. The Quartus® II Compiler places associated logic within a LAB or adjacent LABs, allowing the use of local, LUT chain, and register chain connections for performance and area efficiency. Figure 2–2 details the Cyclone LAB.

Figure 2–2. Cyclone LAB Structure

LAB Interconnects

The LAB local interconnect can drive LEs within the same LAB. The LAB local interconnect is driven by column and row interconnects and LE outputs within the same LAB. Neighboring LABs, PLLs, and M4K RAM blocks from the left and right can also drive a LAB's local interconnect through the direct link connection. The direct link connection feature minimizes the use of row and column interconnects, providing higher

Direct linkinterconnect fromadjacent block

Direct linkinterconnect toadjacent block

Row Interconnect

Column Interconnect

Local InterconnectLAB

Direct linkinterconnect from adjacent block

Direct linkinterconnect toadjacent block

Page 4: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–4 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

performance and flexibility. Each LE can drive 30 other LEs through fast local and direct link interconnects. Figure 2–3 shows the direct link connection.

Figure 2–3. Direct Link Connection

LAB Control Signals

Each LAB contains dedicated logic for driving control signals to its LEs. The control signals include two clocks, two clock enables, two asynchronous clears, synchronous clear, asynchronous preset/load, synchronous load, and add/subtract control signals. This gives a maximum of 10 control signals at a time. Although synchronous load and clear signals are generally used when implementing counters, they can also be used with other functions.

Each LAB can use two clocks and two clock enable signals. Each LAB's clock and clock enable signals are linked. For example, any LE in a particular LAB using the labclk1 signal will also use labclkena1. If the LAB uses both the rising and falling edges of a clock, it also uses both LAB-wide clock signals. Deasserting the clock enable signal will turn off the LAB-wide clock.

Each LAB can use two asynchronous clear signals and an asynchronous load/preset signal. The asynchronous load acts as a preset when the asynchronous load data input is tied high.

LAB

Direct linkinterconnectto right

Direct link interconnect fromright LAB, M4K memoryblock, PLL, or IOE output

Direct link interconnect fromleft LAB, M4K memory

block, PLL, or IOE output

LocalInterconnect

Direct linkinterconnect

to left

Page 5: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–5May 2008 Preliminary

Logic Elements

With the LAB-wide addnsub control signal, a single LE can implement a one-bit adder and subtractor. This saves LE resources and improves performance for logic functions such as DSP correlators and signed multipliers that alternate between addition and subtraction depending on data.

The LAB row clocks [5..0] and LAB local interconnect generate the LAB-wide control signals. The MultiTrackTM interconnect's inherent low skew allows clock and control signal distribution in addition to data. Figure 2–4 shows the LAB control signal generation circuit.

Figure 2–4. LAB-Wide Control Signals

Logic Elements The smallest unit of logic in the Cyclone architecture, the LE, is compact and provides advanced features with efficient logic utilization. Each LE contains a four-input LUT, which is a function generator that can implement any function of four variables. In addition, each LE contains a programmable register and carry chain with carry select capability. A single LE also supports dynamic single bit addition or subtraction mode selectable by a LAB-wide control signal. Each LE drives all types of interconnects: local, row, column, LUT chain, register chain, and direct link interconnects. See Figure 2–5.

labclkena1

labclk2labclk1

labclkena2

asyncloador labpre

syncload

DedicatedLAB RowClocks

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

labclr1

labclr2

synclr

addnsub

6

Page 6: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–6 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–5. Cyclone LE

Each LE's programmable register can be configured for D, T, JK, or SR operation. Each register has data, true asynchronous load data, clock, clock enable, clear, and asynchronous load/preset inputs. Global signals, general-purpose I/O pins, or any internal logic can drive the register's clock and clear control signals. Either general-purpose I/O pins or internal logic can drive the clock enable, preset, asynchronous load, and asynchronous data. The asynchronous load data input comes from the data3 input of the LE. For combinatorial functions, the LUT output bypasses the register and drives directly to the LE outputs.

Each LE has three outputs that drive the local, row, and column routing resources. The LUT or register output can drive these three outputs independently. Two LE outputs drive column or row and direct link routing connections and one drives local interconnect resources. This allows the LUT to drive one output while the register drives another output. This feature, called register packing, improves device utilization because the device can use the register and the LUT for unrelated

labclk1

labclk2

labclr2labpre/aload

Carry-In1

Carry-In0

LAB Carry-In

Clock &Clock Enable

Select

LAB Carry-Out

Carry-Out1

Carry-Out0

Look-UpTable(LUT)

CarryChain

Row, column,and direct link routing

Row, column,and direct link routing

ProgrammableRegister

PRN/ALD

CLRN

D Q

ENA

Register Bypass

PackedRegister Select

Chip-WideReset

labclkena1labclkena2

SynchronousLoad andClear Logic

LAB-wideSynchronous

LoadLAB-wide

SynchronousClear

AsynchronousClear/Preset/Load Logic

data1

data2data3

data4

LUT chainrouting to next LE

labclr1

Local Routing

Register chainoutput

ADATA

addnsub

RegisterFeedback

Register chainrouting fromprevious LE

Page 7: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–7May 2008 Preliminary

Logic Elements

functions. Another special packing mode allows the register output to feed back into the LUT of the same LE so that the register is packed with its own fan-out LUT. This provides another mechanism for improved fitting. The LE can also drive out registered and unregistered versions of the LUT output.

LUT Chain and Register Chain

In addition to the three general routing outputs, the LEs within a LAB have LUT chain and register chain outputs. LUT chain connections allow LUTs within the same LAB to cascade together for wide input functions. Register chain outputs allow registers within the same LAB to cascade together. The register chain output allows a LAB to use LUTs for a single combinatorial function and the registers to be used for an unrelated shift register implementation. These resources speed up connections between LABs while saving local interconnect resources. “MultiTrack Interconnect” on page 2–12 for more information on LUT chain and register chain connections.

addnsub Signal

The LE's dynamic adder/subtractor feature saves logic resources by using one set of LEs to implement both an adder and a subtractor. This feature is controlled by the LAB-wide control signal addnsub. The addnsub signal sets the LAB to perform either A + B or A − B. The LUT computes addition; subtraction is computed by adding the two's complement of the intended subtractor. The LAB-wide signal converts to two's complement by inverting the B bits within the LAB and setting carry-in = 1 to add one to the least significant bit (LSB). The LSB of an adder/subtractor must be placed in the first LE of the LAB, where the LAB-wide addnsub signal automatically sets the carry-in to 1. The Quartus II Compiler automatically places and uses the adder/subtractor feature when using adder/subtractor parameterized functions.

LE Operating Modes

The Cyclone LE can operate in one of the following modes:

■ Normal mode■ Dynamic arithmetic mode

Each mode uses LE resources differently. In each mode, eight available inputs to the LE⎯the four data inputs from the LAB local interconnect, carry-in0 and carry-in1 from the previous LE, the LAB carry-in from the previous carry-chain LAB, and the register chain connection⎯are directed to different destinations to implement the desired logic function. LAB-wide signals provide clock, asynchronous clear, asynchronous

Page 8: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–8 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

preset/load, synchronous clear, synchronous load, and clock enable control for the register. These LAB-wide signals are available in all LE modes. The addnsub control signal is allowed in arithmetic mode.

The Quartus II software, in conjunction with parameterized functions such as library of parameterized modules (LPM) functions, automatically chooses the appropriate mode for common functions such as counters, adders, subtractors, and arithmetic functions. If required, you can also create special-purpose functions that specify which LE operating mode to use for optimal performance.

Normal Mode

The normal mode is suitable for general logic applications and combinatorial functions. In normal mode, four data inputs from the LAB local interconnect are inputs to a four-input LUT (see Figure 2–6). The Quartus II Compiler automatically selects the carry-in or the data3 signal as one of the inputs to the LUT. Each LE can use LUT chain connections to drive its combinatorial output directly to the next LE in the LAB. Asynchronous load data for the register comes from the data3 input of the LE. LEs in normal mode support packed registers.

Figure 2–6. LE in Normal Mode

Note to Figure 2–6:(1) This signal is only allowed in normal mode if the LE is at the end of an adder/subtractor chain.

data1

4-InputLUT

data2

data3cin (from coutof previous LE)

data4

addnsub (LAB Wide)

clock (LAB Wide)

ena (LAB Wide)

aclr (LAB Wide)

aload(LAB Wide)

ALD/PRE

CLRN

DQ

ENA

ADATA

sclear(LAB Wide)

sload(LAB Wide)

Register chainconnection

LUT chainconnection

Registerchain output

Row, column, anddirect link routing

Row, column, anddirect link routing

Local routing

Register Feedback

(1)

Page 9: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–9May 2008 Preliminary

Logic Elements

Dynamic Arithmetic Mode

The dynamic arithmetic mode is ideal for implementing adders, counters, accumulators, wide parity functions, and comparators. An LE in dynamic arithmetic mode uses four 2-input LUTs configurable as a dynamic adder/subtractor. The first two 2-input LUTs compute two summations based on a possible carry-in of 1 or 0; the other two LUTs generate carry outputs for the two chains of the carry select circuitry. As shown in Figure 2–7, the LAB carry-in signal selects either the carry-in0 or carry-in1 chain. The selected chain's logic level in turn determines which parallel sum is generated as a combinatorial or registered output. For example, when implementing an adder, the sum output is the selection of two possible calculated sums:

data1 + data2 + carry-in0

or

data1 + data2 + carry-in1

The other two LUTs use the data1 and data2 signals to generate two possible carry-out signals⎯one for a carry of 1 and the other for a carry of 0. The carry-in0 signal acts as the carry select for the carry-out0 output and carry-in1 acts as the carry select for the carry-out1 output. LEs in arithmetic mode can drive out registered and unregistered versions of the LUT output.

The dynamic arithmetic mode also offers clock enable, counter enable, synchronous up/down control, synchronous clear, synchronous load, and dynamic adder/subtractor options. The LAB local interconnect data inputs generate the counter enable and synchronous up/down control signals. The synchronous clear and synchronous load options are LAB-wide signals that affect all registers in the LAB. The Quartus II software automatically places any registers that are not used by the counter into other LABs. The addnsub LAB-wide signal controls whether the LE acts as an adder or subtractor.

Page 10: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–10 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–7. LE in Dynamic Arithmetic Mode

Note to Figure 2–7:(1) The addnsub signal is tied to the carry input for the first LE of a carry chain only.

Carry-Select Chain

The carry-select chain provides a very fast carry-select function between LEs in dynamic arithmetic mode. The carry-select chain uses the redundant carry calculation to increase the speed of carry functions. The LE is configured to calculate outputs for a possible carry-in of 0 and carry-in of 1 in parallel. The carry-in0 and carry-in1 signals from a lower-order bit feed forward into the higher-order bit via the parallel carry chain and feed into both the LUT and the next portion of the carry chain. Carry-select chains can begin in any LE within a LAB.

The speed advantage of the carry-select chain is in the parallel pre-computation of carry chains. Since the LAB carry-in selects the precomputed carry chain, not every LE is in the critical path. Only the propagation delays between LAB carry-in generation (LE 5 and LE 10) are now part of the critical path. This feature allows the Cyclone architecture to implement high-speed counters, adders, multipliers, parity functions, and comparators of arbitrary width.

data1 LUTdata2data3

addnsub(LAB Wide)

clock (LAB Wide)

ena (LAB Wide)

aclr (LAB Wide)

ALD/PRE

CLRN

DQ

ENA

ADATA

Register chainconnection

LUT

LUT

LUT

Carry-Out1Carry-Out0

LAB Carry-In

Carry-In0Carry-In1

(1)

sclear(LAB Wide)

sload(LAB Wide)

LUT chainconnection

Registerchain output

Row, column, anddirect link routing

Row, column, anddirect link routing

Local routing

aload(LAB Wide)

Register Feedback

Page 11: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–11May 2008 Preliminary

Logic Elements

Figure 2–8 shows the carry-select circuitry in a LAB for a 10-bit full adder. One portion of the LUT generates the sum of two bits using the input signals and the appropriate carry-in bit; the sum is routed to the output of the LE. The register can be bypassed for simple adders or used for accumulator functions. Another portion of the LUT generates carry-out bits. A LAB-wide carry-in bit selects which chain is used for the addition of given inputs. The carry-in signal for each chain, carry-in0 or carry-in1, selects the carry-out to carry forward to the carry-in signal of the next-higher-order bit. The final carry-out signal is routed to an LE, where it is fed to local, row, or column interconnects.

Figure 2–8. Carry Select Chain

LE4

LE3

LE2

LE1A1B1

A2B2

A3B3

A4B4

Sum1

Sum2

Sum3

Sum4

LE10

LE9

LE8

LE7A7B7

A8B8

A9B9

A10B10

Sum7

LE6A6B6

Sum6

LE5A5B5

Sum5

Sum8

Sum9

Sum10

0 1

0 1LAB Carry-In

LAB Carry-Out

LUT

LUT

LUT

LUT

data1

LAB Carry-In

data2

Carry-In0

Carry-In1

Carry-Out0 Carry-Out1

Sum

Page 12: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–12 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

The Quartus II Compiler automatically creates carry chain logic during design processing, or you can create it manually during design entry. Parameterized functions such as LPM functions automatically take advantage of carry chains for the appropriate functions.

The Quartus II Compiler creates carry chains longer than 10 LEs by linking LABs together automatically. For enhanced fitting, a long carry chain runs vertically allowing fast horizontal connections to M4K memory blocks. A carry chain can continue as far as a full column.

Clear and Preset Logic Control

LAB-wide signals control the logic for the register's clear and preset signals. The LE directly supports an asynchronous clear and preset function. The register preset is achieved through the asynchronous load of a logic high. The direct asynchronous preset does not require a NOT-gate push-back technique. Cyclone devices support simultaneous preset/ asynchronous load and clear signals. An asynchronous clear signal takes precedence if both signals are asserted simultaneously. Each LAB supports up to two clears and one preset signal.

In addition to the clear and preset ports, Cyclone devices provide a chip-wide reset pin (DEV_CLRn) that resets all registers in the device. An option set before compilation in the Quartus II software controls this pin. This chip-wide reset overrides all other control signals.

MultiTrack Interconnect

In the Cyclone architecture, connections between LEs, M4K memory blocks, and device I/O pins are provided by the MultiTrack interconnect structure with DirectDriveTM technology. The MultiTrack interconnect consists of continuous, performance-optimized routing lines of different speeds used for inter- and intra-design block connectivity. The Quartus II Compiler automatically places critical design paths on faster interconnects to improve design performance.

DirectDrive technology is a deterministic routing technology that ensures identical routing resource usage for any function regardless of placement within the device. The MultiTrack interconnect and DirectDrive technology simplify the integration stage of block-based designing by eliminating the re-optimization cycles that typically follow design changes and additions.

The MultiTrack interconnect consists of row and column interconnects that span fixed distances. A routing structure with fixed length resources for all devices allows predictable and repeatable performance when

Page 13: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–13May 2008 Preliminary

MultiTrack Interconnect

migrating through different device densities. Dedicated row interconnects route signals to and from LABs, PLLs, and M4K memory blocks within the same row. These row resources include:

■ Direct link interconnects between LABs and adjacent blocks■ R4 interconnects traversing four blocks to the right or left

The direct link interconnect allows a LAB or M4K memory block to drive into the local interconnect of its left and right neighbors. Only one side of a PLL block interfaces with direct link and row interconnects. The direct link interconnect provides fast communication between adjacent LABs and/or blocks without using row interconnect resources.

The R4 interconnects span four LABs, or two LABs and one M4K RAM block. These resources are used for fast row connections in a four-LAB region. Every LAB has its own set of R4 interconnects to drive either left or right. Figure 2–9 shows R4 interconnect connections from a LAB. R4 interconnects can drive and be driven by M4K memory blocks, PLLs, and row IOEs. For LAB interfacing, a primary LAB or LAB neighbor can drive a given R4 interconnect. For R4 interconnects that drive to the right, the primary LAB and right neighbor can drive on to the interconnect. For R4 interconnects that drive to the left, the primary LAB and its left neighbor can drive on to the interconnect. R4 interconnects can drive other R4 interconnects to extend the range of LABs they can drive. R4 interconnects can also drive C4 interconnects for connections from one row to another.

Page 14: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–14 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–9. R4 Interconnect Connections

Notes to Figure 2–9:(1) C4 interconnects can drive R4 interconnects.(2) This pattern is repeated for every LAB in the LAB row.

The column interconnect operates similarly to the row interconnect. Each column of LABs is served by a dedicated column interconnect, which vertically routes signals to and from LABs, M4K memory blocks, and row and column IOEs. These column resources include:

■ LUT chain interconnects within a LAB■ Register chain interconnects within a LAB■ C4 interconnects traversing a distance of four blocks in an up and

down direction

Cyclone devices include an enhanced interconnect structure within LABs for routing LE output to LE input connections faster using LUT chain connections and register chain connections. The LUT chain connection allows the combinatorial output of an LE to directly drive the fast input of the LE right below it, bypassing the local interconnect. These resources can be used as a high-speed connection for wide fan-in functions from LE 1 to LE 10 in the same LAB. The register chain connection allows the register output of one LE to connect directly to the register input of the next LE in the LAB for fast shift registers. The Quartus II Compiler automatically takes advantage of these resources to improve utilization and performance. Figure 2–10 shows the LUT chain and register chain interconnects.

PrimaryLAB (2)

R4 InterconnectDriving Left

Adjacent LAB canDrive onto AnotherLAB's R4 Interconnect

C4 Column Interconnects (1)R4 InterconnectDriving Right

LABNeighbor

LABNeighbor

Page 15: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–15May 2008 Preliminary

MultiTrack Interconnect

Figure 2–10. LUT Chain and Register Chain Interconnects

The C4 interconnects span four LABs or M4K blocks up or down from a source LAB. Every LAB has its own set of C4 interconnects to drive either up or down. Figure 2–11 shows the C4 interconnect connections from a LAB in a column. The C4 interconnects can drive and be driven by all types of architecture blocks, including PLLs, M4K memory blocks, and column and row IOEs. For LAB interconnection, a primary LAB or its LAB neighbor can drive a given C4 interconnect. C4 interconnects can drive each other to extend their range as well as drive row interconnects for column-to-column connections.

LE 1

LE 2

LE 3

LE 4

LE 5

LE 6

LE 7

LE 8

LE 9

LE 10

LUT ChainRouting to

Adjacent LE

LocalInterconnect

Register ChainRouting to AdjacentLE's Register Input

Local InterconnectRouting Among LEsin the LAB

Page 16: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–16 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–11. C4 Interconnect Connections Note (1)

Note to Figure 2–11:(1) Each C4 interconnect can drive either up or down four rows.

C4 InterconnectDrives Local and R4InterconnectsUp to Four Rows

Adjacent LAB candrive onto neighboringLAB's C4 interconnect

C4 InterconnectDriving Up

C4 InterconnectDriving Down

LAB

RowInterconnect

LocalInterconnect

Page 17: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–17May 2008 Preliminary

MultiTrack Interconnect

All embedded blocks communicate with the logic array similar to LAB-to-LAB interfaces. Each block (i.e., M4K memory or PLL) connects to row and column interconnects and has local interconnect regions driven by row and column interconnects. These blocks also have direct link interconnects for fast connections to and from a neighboring LAB.

Table 2–2 shows the Cyclone device's routing scheme.

Table 2–2. Cyclone Device Routing Scheme

Source

Destination

LUT

Chai

n

Regi

ster

Cha

in

Loca

l Int

erco

nnec

t

Dire

ct L

ink

Inte

rcon

nect

R4 In

terc

onne

ct

C4 In

terc

onne

ct

LE M4K

RAM

Blo

ck

PLL

Colu

mn

IOE

Row

IOE

LUT Chain — — — — — — v — — — —

Register Chain — — — — — — v — — — —

Local Interconnect — — — — — — v v v v v

Direct Link Interconnect — — v — — — — — — — —

R4 Interconnect — — v — v v — — — — —

C4 Interconnect — — v — v v — — — — —

LE v v v v v v — — — — —

M4K RAM Block — — v v v v — — — — —

PLL — — — v v v — — — — —

Column IOE — — — — — v — — — — —

Row IOE — — — v v v — — — — —

Page 18: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–18 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Embedded Memory

The Cyclone embedded memory consists of columns of M4K memory blocks. EP1C3 and EP1C6 devices have one column of M4K blocks, while EP1C12 and EP1C20 devices have two columns (refer to Table 1–1 on page 1–1 for total RAM bits per density). Each M4K block can implement various types of memory with or without parity, including true dual-port, simple dual-port, and single-port RAM, ROM, and FIFO buffers. The M4K blocks support the following features:

■ 4,608 RAM bits■ 250 MHz performance■ True dual-port memory■ Simple dual-port memory■ Single-port memory■ Byte enable■ Parity bits■ Shift register■ FIFO buffer■ ROM■ Mixed clock mode

1 Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both read and write operations.

Memory Modes

The M4K memory blocks include input registers that synchronize writes and output registers to pipeline designs and improve system performance. M4K blocks offer a true dual-port mode to support any combination of two-port operations: two reads, two writes, or one read and one write at two different clock frequencies. Figure 2–12 shows true dual-port memory.

Figure 2–12. True Dual-Port Memory Configuration

dataA[ ]addressA[ ]wrenA

clockA

clockenA

qA[ ]aclrA

dataB[ ]addressB[ ]

wrenB

clockB clockenB

qB[ ]aclrB

A B

Page 19: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–19May 2008 Preliminary

Embedded Memory

In addition to true dual-port memory, the M4K memory blocks support simple dual-port and single-port RAM. Simple dual-port memory supports a simultaneous read and write. Single-port memory supports non-simultaneous reads and writes. Figure 2–13 shows these different M4K RAM memory port configurations.

Figure 2–13. Simple Dual-Port and Single-Port Memory Configurations

Note to Figure 2–13:(1) Two single-port memory blocks can be implemented in a single M4K block as long

as each of the two independent block sizes is equal to or less than half of the M4K block size.

The memory blocks also enable mixed-width data ports for reading and writing to the RAM ports in dual-port RAM configuration. For example, the memory block can be written in ×1 mode at port A and read out in ×16 mode from port B.

The Cyclone memory architecture can implement fully synchronous RAM by registering both the input and output signals to the M4K RAM block. All M4K memory block inputs are registered, providing synchronous write cycles. In synchronous operation, the memory block generates its own self-timed strobe write enable (wren) signal derived from a global clock. In contrast, a circuit using asynchronous RAM must generate the RAM wren signal while ensuring its data and address signals meet setup and hold time specifications relative to the wren

data[ ]wraddress[ ]wren inclockinclockeninaclr

rdaddress[ ]rden

q[ ]outclock outclocken

outaclr

data[ ]address[ ]wren inclockinclockeninaclr

q[ ]outclock outclocken

outaclr

Single-Port Memory (1)

Simple Dual-Port Memory

Page 20: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–20 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

signal. The output registers can be bypassed. Pseudo-asynchronous reading is possible in the simple dual-port mode of M4K blocks by clocking the read enable and read address registers on the negative clock edge and bypassing the output registers.

When configured as RAM or ROM, you can use an initialization file to pre-load the memory contents.

Two single-port memory blocks can be implemented in a single M4K block as long as each of the two independent block sizes is equal to or less than half of the M4K block size.

The Quartus II software automatically implements larger memory by combining multiple M4K memory blocks. For example, two 256×16-bit RAM blocks can be combined to form a 256×32-bit RAM block. Memory performance does not degrade for memory blocks using the maximum number of words allowed. Logical memory blocks using less than the maximum number of words use physical blocks in parallel, eliminating any external control logic that would increase delays. To create a larger high-speed memory block, the Quartus II software automatically combines memory blocks with LE control logic.

Parity Bit Support

The M4K blocks support a parity bit for each byte. The parity bit, along with internal LE logic, can implement parity checking for error detection to ensure data integrity. You can also use parity-size data words to store user-specified control bits. Byte enables are also available for data input masking during write operations.

Shift Register Support

You can configure M4K memory blocks to implement shift registers for DSP applications such as pseudo-random number generators, multi-channel filtering, auto-correlation, and cross-correlation functions. These and other DSP applications require local data storage, traditionally implemented with standard flip-flops, which can quickly consume many logic cells and routing resources for large shift registers. A more efficient alternative is to use embedded memory as a shift register block, which saves logic cell and routing resources and provides a more efficient implementation with the dedicated circuitry.

The size of a w × m × n shift register is determined by the input data width (w), the length of the taps (m), and the number of taps (n). The size of a w × m × n shift register must be less than or equal to the maximum number of memory bits in the M4K block (4,608 bits). The total number of shift

Page 21: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–21May 2008 Preliminary

Embedded Memory

register outputs (number of taps n × width w) must be less than the maximum data width of the M4K RAM block (×36). To create larger shift registers, multiple memory blocks are cascaded together.

Data is written into each address location at the falling edge of the clock and read from the address at the rising edge of the clock. The shift register mode logic automatically controls the positive and negative edge clocking to shift the data in one clock cycle. Figure 2–14 shows the M4K memory block in the shift register mode.

Figure 2–14. Shift Register Memory Configuration

Memory Configuration Sizes

The memory address depths and output widths can be configured as 4,096 × 1, 2,048 × 2, 1,024 × 4, 512 × 8 (or 512 × 9 bits), 256 × 16 (or 256 × 18 bits), and 128 × 32 (or 128 × 36 bits). The 128 × 32- or 36-bit configuration

m-Bit Shift Registerw w

m-Bit Shift Register

m-Bit Shift Register

m-Bit Shift Register

w w

w w

w w

w × m × n Shift Register

n Numberof Taps

Page 22: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–22 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

is not available in the true dual-port mode. Mixed-width configurations are also possible, allowing different read and write widths. Tables 2–3 and 2–4 summarize the possible M4K RAM block configurations.

When the M4K RAM block is configured as a shift register block, you can create a shift register up to 4,608 bits (w × m × n).

Table 2–3. M4K RAM Block Configurations (Simple Dual-Port)

Read PortWrite Port

4K × 1 2K × 2 1K × 4 512 × 8 256 × 16 128 × 32 512 × 9 256 × 18 128 × 36

4K × 1 v v v v v v — — —

2K × 2 v v v v v v — — —

1K × 4 v v v v v v — — —

512 × 8 v v v v v v — — —

256 × 16 v v v v v v — — —

128 × 32 v v v v v v — — —

512 × 9 — — — — — — v v v

256 × 18 — — — — — — v v v

128 × 36 — — — — — — v v v

Table 2–4. M4K RAM Block Configurations (True Dual-Port)

Port APort B

4K × 1 2K × 2 1K × 4 512 × 8 256 × 16 512 × 9 256 × 18

4K × 1 v v v v v — —

2K × 2 v v v v v — —

1K × 4 v v v v v — —

512 × 8 v v v v v — —

256 × 16 v v v v v — —

512 × 9 — — — — — v v

256 × 18 — — — — — v v

Page 23: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–23May 2008 Preliminary

Embedded Memory

Byte Enables

M4K blocks support byte writes when the write port has a data width of 16, 18, 32, or 36 bits. The byte enables allow the input data to be masked so the device can write to specific bytes. The unwritten bytes retain the previous written value. Table 2–5 summarizes the byte selection.

Control Signals and M4K Interface

The M4K blocks allow for different clocks on their inputs and outputs. Either of the two clocks feeding the block can clock M4K block registers (renwe, address, byte enable, datain, and output registers). Only the output register can be bypassed. The six labclk signals or local interconnects can drive the control signals for the A and B ports of the M4K block. LEs can also control the clock_a, clock_b, renwe_a, renwe_b, clr_a, clr_b, clocken_a, and clocken_b signals, as shown in Figure 2–15.

The R4, C4, and direct link interconnects from adjacent LABs drive the M4K block local interconnect. The M4K blocks can communicate with LABs on either the left or right side through these row resources or with LAB columns on either the right or left with the column resources. Up to 10 direct link input connections to the M4K block are possible from the left adjacent LABs and another 10 possible from the right adjacent LAB. M4K block outputs can also connect to left and right LABs through 10 direct link interconnects each. Figure 2–16 shows the M4K block to logic array interface.

Table 2–5. Byte Enable for M4K Blocks Notes (1), (2)

byteena[3..0] datain ×18 datain ×36

[0] = 1 [8..0] [8..0]

[1] = 1 [17..9] [17..9]

[2] = 1 — [26..18]

[3] = 1 — [35..27]

Notes to Table 2–5:(1) Any combination of byte enables is possible.(2) Byte enables can be used in the same manner with 8-bit words, i.e., in ×16 and ×32

modes.

Page 24: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–24 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–15. M4K RAM Block Control Signals

Figure 2–16. M4K RAM Block LAB Row Interface

clocken_a

renwe_aclock_a

alcr_a

alcr_b

renwe_b

DedicatedLAB RowClocks

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

clocken_b

clock_b

6

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

dataout

M4K RAMBlock

datainaddress

10

Direct link interconnectfrom adjacent LAB

Direct link interconnectto adjacent LAB

Direct link interconnectfrom adjacent LAB

Direct link interconnectto adjacent LAB

M4K RAM Block LocalInterconnect Region

C4 Interconnects R4 Interconnects

LAB Row Clocks

Clocks

Byte enable

ControlSignals

6

Page 25: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–25May 2008 Preliminary

Embedded Memory

Independent Clock Mode

The M4K memory blocks implement independent clock mode for true dual-port memory. In this mode, a separate clock is available for each port (ports A and B). Clock A controls all registers on the port A side, while clock B controls all registers on the port B side. Each port, A and B, also supports independent clock enables and asynchronous clear signals for port A and B registers. Figure 2–17 shows an M4K memory block in independent clock mode.

Figure 2–17. Independent Clock Mode Notes (1), (2)

Notes to Figure 2–17:(1) All registers shown have asynchronous clear ports.(2) Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both

read and write operations.

Input/Output Clock Mode

Input/output clock mode can be implemented for both the true and simple dual-port memory modes. On each of the two ports, A or B, one clock controls all registers for inputs into the memory block: data input, wren, and address. The other clock controls the block's data output registers. Each memory block port, A or B, also supports independent clock enables and asynchronous clear signals for input and output registers. Figures 2–18 and 2–19 show the memory block in input/output clock mode.

6D

ENA

Q

D

ENA

Q

D

ENA

Q

dataA[ ]

addressA[ ]

Memory Block256 ´ 16 (2)

512 ´ 81,024 ´ 42,048 ´ 24,096 ´ 1

Data In

Address A

Write/ReadEnable

Data Out

Data In

Address B

Write/ReadEnable

Data Out

clkenA

clockA

D

ENA

Q

wrenA

6 LAB Row Clocks

qA[ ]

6dataB[ ]

addressB[ ]

clkenB

clockB

wrenB

qB[ ]

ENA

A B

ENA

DQ

D

ENA

QbyteenaA[ ] Byte Enable A Byte Enable B byteenaB[ ]

ENA

DQ

ENA

DQ

ENA

DQ

DQ

WritePulse

Generator

WritePulse

Generator

Page 26: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–26 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–18. Input/Output Clock Mode in True Dual-Port Mode Notes (1), (2)

Notes to Figure 2–18:(1) All registers shown have asynchronous clear ports.(2) Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both

read and write operations.

6

D

ENA

Q

D

ENA

Q

D

ENA

Q

dataA[ ]

addressA[ ]

Memory Block256 × 16 (2)

512 × 81,024 × 42,048 × 24,096 × 1

Data In

Address A

Write/ReadEnable

Data Out

Data In

Address B

Write/ReadEnable

Data Out

clkenA

clockA

D

ENA

Q

wrenA

6 LAB Row Clocks

qA[ ]

6

dataB[ ]

addressB[ ]

clkenB

clockB

wrenB

qB[ ]

ENA

A B

ENA

DQ

ENA

DQ

ENA

DQ

DQ

D

ENA

QbyteenaA[ ] Byte Enable A Byte Enable B byteenaB[ ]

ENA

DQ

WritePulse

Generator

WritePulse

Generator

Page 27: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–27May 2008 Preliminary

Embedded Memory

Figure 2–19. Input/Output Clock Mode in Simple Dual-Port Mode Notes (1), (2)

Notes to Figure 2–19:(1) All registers shown except the rden register have asynchronous clear ports.(2) Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both

read and write operations.

6

DENA

Q

D

ENA

Q

D

ENA

Q

D

ENA

Q

DENA

Q

data[ ]

DENA

Qwraddress[ ]

address[ ]

Memory Block256 ´ 16

512 ´ 81,024 ´ 42,048 ´ 24,096 ´ 1

Data In

Read Address

Write Address

Write Enable

Read Enable

Data Out

outclken

inclken

inclock

outclock

wren

rden

6 LAB Row Clocks

To MultiTrackInterconnect

DENA

Qbyteena[ ] Byte Enable

WritePulse

Generator

Page 28: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–28 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Read/Write Clock Mode

The M4K memory blocks implement read/write clock mode for simple dual-port memory. You can use up to two clocks in this mode. The write clock controls the block's data inputs, wraddress, and wren. The read clock controls the data output, rdaddress, and rden. The memory blocks support independent clock enables for each clock and asynchronous clear signals for the read- and write-side registers. Figure 2–20 shows a memory block in read/write clock mode.

Figure 2–20. Read/Write Clock Mode in Simple Dual-Port Mode Notes (1), (2)

Notes to Figure 2–20:(1) All registers shown except the rden register have asynchronous clear ports.(2) Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both

read and write operations.

6

DENA

Q

D

ENA

Q

D

ENA

Q

D

ENA

Q

DENA

Q

data[ ]

DENA

Qwraddress[ ]

address[ ]

Memory Block256 × 16

512 × 81,024 × 42,048 × 24,096 × 1

Data In

Read Address

Write Address

Write Enable

Read Enable

Data Out

rdclken

wrclken

wrclock

rdclock

wren

rden

6 LAB RowClocks

To MultiTrackInterconnect

DENA

Qbyteena[ ] Byte Enable

WritePulse

Generator

Page 29: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–29May 2008 Preliminary

Global Clock Network and Phase-Locked Loops

Single-Port Mode

The M4K memory blocks also support single-port mode, used when simultaneous reads and writes are not required. See Figure 2–21. A single M4K memory block can support up to two single-port mode RAM blocks if each RAM block is less than or equal to 2K bits in size.

Figure 2–21. Single-Port Mode Note (1)

Note to Figure 2–21:(1) Violating the setup or hold time on the address registers could corrupt the memory contents. This applies to both

read and write operations.

Global Clock Network and Phase-Locked Loops

Cyclone devices provide a global clock network and up to two PLLs for a complete clock management solution.

Global Clock Network

There are four dedicated clock pins (CLK[3..0], two pins on the left side and two pins on the right side) that drive the global clock network, as shown in Figure 2–22. PLL outputs, logic array, and dual-purpose clock (DPCLK[7..0]) pins can also drive the global clock network.

6

DENA

Q

D

ENA

Q

D

ENA

Q

DENA

Q

data[ ]

address[ ]

RAM/ROM256 × 16512 × 8

1,024 × 42,048 × 24,096 × 1

Data In

Address

Write Enable

Data Out

outclken

inclken

inclock

outclock

WritePulse

Generator

wren

6 LAB RowClocks

To MultiTrackInterconnect

Page 30: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–30 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

The eight global clock lines in the global clock network drive throughout the entire device. The global clock network can provide clocks for all resources within the device—IOEs, LEs, and memory blocks. The global clock lines can also be used for control signals, such as clock enables and synchronous or asynchronous clears fed from the external pin, or DQS signals for DDR SDRAM or FCRAM interfaces. Internal logic can also drive the global clock network for internally generated global clocks and asynchronous clears, clock enables, or other control signals with large fanout. Figure 2–22 shows the various sources that drive the global clock network.

Figure 2–22. Global Clock Generation Note (1)

Notes to Figure 2–22:(1) The EP1C3 device in the 100-pin TQFP package has five DPCLK pins (DPCLK2, DPCLK3, DPCLK4, DPCLK6, and

DPCLK7).(2) EP1C3 devices only contain one PLL (PLL 1).(3) The EP1C3 device in the 100-pin TQFP package does not have dedicated clock pins CLK1 and CLK3.

8

Global ClockNetwork

PLL1 PLL2(2)

CLK0

CLK1 (3)CLK2

CLK3 (3)

DPCLK1

DPCLK0

DPCLK4

DPCLK5

DPCLK2 DPCLK3

DPCLK7 DPCLK6

2 2

From logicarray

From logicarray

4

4 4

4

Cyclone Device

Page 31: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–31May 2008 Preliminary

Global Clock Network and Phase-Locked Loops

Dual-Purpose Clock Pins

Each Cyclone device except the EP1C3 device has eight dual-purpose clock pins, DPCLK[7..0] (two on each I/O bank). EP1C3 devices have five DPCLK pins in the 100-pin TQFP package. These dual-purpose pins can connect to the global clock network (see Figure 2–22) for high-fanout control signals such as clocks, asynchronous clears, presets, and clock enables, or protocol control signals such as TRDY and IRDY for PCI, or DQS signals for external memory interfaces.

Combined Resources

Each Cyclone device contains eight distinct dedicated clocking resources. The device uses multiplexers with these clocks to form six-bit buses to drive LAB row clocks, column IOE clocks, or row IOE clocks. See Figure 2–23. Another multiplexer at the LAB level selects two of the six LAB row clocks to feed the LE registers within the LAB.

Figure 2–23. Global Clock Network Multiplexers

IOE clocks have row and column block regions. Six of the eight global clock resources feed to these row and column regions. Figure 2–24 shows the I/O clock regions.

Clock [7..0]

Column I/O RegionIO_CLK]5..0]

LAB Row Clock [5..0]

Row I/O RegionIO_CLK[5..0]

Global Clocks [3..0]

PLL Outputs [3..0]

Dual-Purpose Clocks [7..0]

Global ClockNetwork

Core Logic [7..0]

Page 32: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–32 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–24. I/O Clock Regions

PLLs

Cyclone PLLs provide general-purpose clocking with clock multiplication and phase shifting as well as outputs for differential I/O support. Cyclone devices contain two PLLs, except for the EP1C3 device, which contains one PLL.

Column I/O Clock RegionIO_CLK[5..0]

Column I/O Clock RegionIO_CLK[5..0]

6

6

I/O Clock Regions

I/O Clock Regions

8

Global ClockNetwork

RowI/O Regions

Cyclone Logic Array

6

6

LAB Row Clockslabclk[5..0]

LAB Row Clockslabclk[5..0]

LAB Row Clockslabclk[5..0]

LAB Row Clockslabclk[5..0]

LAB Row Clockslabclk[5..0]

LAB Row Clockslabclk[5..0]

6

6

6

6

Page 33: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–33May 2008 Preliminary

Global Clock Network and Phase-Locked Loops

Table 2–6 shows the PLL features in Cyclone devices. Figure 2–25 shows a Cyclone PLL.

Figure 2–25. Cyclone PLL Note (1)

Notes to Figure 2–25:(1) The EP1C3 device in the 100-pin TQFP package does not support external outputs or LVDS inputs. The EP1C6

device in the 144-pin TQFP package does not support external output from PLL2.(2) LVDS input is supported via the secondary function of the dedicated clock pins. For PLL 1, the CLK0 pin’s secondary

function is LVDSCLK1p and the CLK1 pin’s secondary function is LVDSCLK1n. For PLL 2, the CLK2 pin’s secondary function is LVDSCLK2p and the CLK3 pin’s secondary function is LVDSCLK2n.

(3) PFD: phase frequency detector.

Table 2–6. Cyclone PLL Features

Feature PLL Support

Clock multiplication and division m/(n × post-scale counter) (1)

Phase shift Down to 125-ps increments (2), (3)

Programmable duty cycle Yes

Number of internal clock outputs 2

Number of external clock outputs One differential or one single-ended (4)

Notes to Table 2–6:(1) The m counter ranges from 2 to 32. The n counter and the post-scale counters

range from 1 to 32.(2) The smallest phase shift is determined by the voltage-controlled oscillator (VCO)

period divided by 8.(3) For degree increments, Cyclone devices can shift all output frequencies in

increments of 45°. Smaller degree increments are possible depending on the frequency and divide parameters.

(4) The EP1C3 device in the 100-pin TQFP package does not support external clock output. The EP1C6 device in the 144-pin TQFP package does not support external clock output from PLL2.

ChargePump

VCOPFD (3)LoopFilter

CLK0 orLVDSCLK1p (2)

CLK1 orLVDSCLK1n (2)

÷n

÷m

Δt

Δt

Global clock

Global clock

I/O buffer

÷g0

÷g1

÷e

VCO Phase SelectionSelectable at Each PLL

Output Port

Post-ScaleCounters

Page 34: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–34 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–26 shows the PLL global clock connections.

Figure 2–26. Cyclone PLL Global Clock Connections

Notes to Figure 2–26:(1) PLL 1 supports one single-ended or LVDS input via pins CLK0 and CLK1.(2) PLL2 supports one single-ended or LVDS input via pins CLK2 and CLK3.(3) PLL1_OUT and PLL2_OUT support single-ended or LVDS output. If external output is not required, these pins are

available as regular user I/O pins.(4) The EP1C3 device in the 100-pin TQFP package does not support external clock output. The EP1C6 device in the

144-pin TQFP package does not support external clock output from PLL2.

Table 2–7 shows the global clock network sources available in Cyclone devices.

CLK0

CLK1 (1)PLL1 PLL2

g0

g1

e

g0

g1

e

PLL1_OUT (3), (4)

CLK2

CLK3 (2)

PLL2_OUT (3), (4)

G0 G2

G1 G3

G4 G6

G5 G7

Table 2–7. Global Clock Network Sources (Part 1 of 2)

Source GCLK0 GCLK1 GCLK2 GCLK3 GCLK4 GCLK5 GCLK6 GCLK7

PLL Counter Output

PLL1 G0 — v v — — — — —

PLL1 G1 v — — v — — — —

PLL2 G0 (1) — — — — — v v —

PLL2 G1 (1) — — — — v — — v

Dedicated Clock Input Pins

CLK0 v — v — — — — —

CLK1 (2) — v — v — — — —

CLK2 — — — — v — v —

CLK3 (2) — — — — — v — v

Page 35: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–35May 2008 Preliminary

Global Clock Network and Phase-Locked Loops

Clock Multiplication and Division

Cyclone PLLs provide clock synthesis for PLL output ports using m/(n × post scale counter) scaling factors. The input clock is divided by a pre-scale divider, n, and is then multiplied by the m feedback factor. The control loop drives the VCO to match fIN × (m/n). Each output port has a unique post-scale counter to divide down the high-frequency VCO. For multiple PLL outputs with different frequencies, the VCO is set to the least-common multiple of the output frequencies that meets its frequency specifications. Then, the post-scale dividers scale down the output frequency for each output port. For example, if the output frequencies required from one PLL are 33 and 66 MHz, the VCO is set to 330 MHz (the least-common multiple in the VCO's range).

Each PLL has one pre-scale divider, n, that can range in value from 1 to 32. Each PLL also has one multiply divider, m, that can range in value from 2 to 32. Global clock outputs have two post scale G dividers for global clock outputs, and external clock outputs have an E divider for external clock output, both ranging from 1 to 32. The Quartus II software automatically chooses the appropriate scaling factors according to the input frequency, multiplication, and division values entered.

Dual-Purpose Clock Pins

DPCLK0 (3) — — — v — — — —

DPCLK1 (3) — — v — — — — —

DPCLK2 v — — — — — — —

DPCLK3 — — — — v — — —

DPCLK4 — — — — — — v —

DPCLK5 (3) — — — — — — — v

DPCLK6 — — — — — v — —

DPCLK7 — v — — — — — —

Notes to Table 2–7:(1) EP1C3 devices only have one PLL (PLL 1).(2) EP1C3 devices in the 100-pin TQFP package do not have dedicated clock pins CLK1 and CLK3.(3) EP1C3 devices in the 100-pin TQFP package do not have the DPCLK0, DPCLK1, or DPCLK5 pins.

Table 2–7. Global Clock Network Sources (Part 2 of 2)

Source GCLK0 GCLK1 GCLK2 GCLK3 GCLK4 GCLK5 GCLK6 GCLK7

Page 36: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–36 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

External Clock Inputs

Each PLL supports single-ended or differential inputs for source-synchronous receivers or for general-purpose use. The dedicated clock pins (CLK[3..0]) feed the PLL inputs. These dual-purpose pins can also act as LVDS input pins. See Figure 2–25.

Table 2–8 shows the I/O standards supported by PLL input and output pins.

For more information on LVDS I/O support, refer to “LVDS I/O Pins” on page 2–54.

External Clock Outputs

Each PLL supports one differential or one single-ended output for source-synchronous transmitters or for general-purpose external clocks. If the PLL does not use these PLL_OUT pins, the pins are available for use as general-purpose I/O pins. The PLL_OUT pins support all I/O standards shown in Table 2–8.

The external clock outputs do not have their own VCC and ground voltage supplies. Therefore, to minimize jitter, do not place switching I/O pins next to these output pins. The EP1C3 device in the 100-pin TQFP package

Table 2–8. PLL I/O Standards

I/O Standard CLK Input EXTCLK Output

3.3-V LVTTL/LVCMOS v v

2.5-V LVTTL/LVCMOS v v

1.8-V LVTTL/LVCMOS v v

1.5-V LVCMOS v v

3.3-V PCI v v

LVDS v v

SSTL-2 class I v v

SSTL-2 class II v v

SSTL-3 class I v v

SSTL-3 class II v v

Differential SSTL-2 — v

Page 37: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–37May 2008 Preliminary

Global Clock Network and Phase-Locked Loops

does not have dedicated clock output pins. The EP1C6 device in the 144-pin TQFP package only supports dedicated clock outputs from PLL 1.

Clock Feedback

Cyclone PLLs have three modes for multiplication and/or phase shifting:

■ Zero delay buffer mode⎯The external clock output pin is phase-aligned with the clock input pin for zero delay.

■ Normal mode⎯If the design uses an internal PLL clock output, the normal mode compensates for the internal clock delay from the input clock pin to the IOE registers. The external clock output pin is phase shifted with respect to the clock input pin if connected in this mode. You defines which internal clock output from the PLL should be phase-aligned to compensate for internal clock delay.

■ No compensation mode⎯In this mode, the PLL will not compensate for any clock networks.

Phase Shifting

Cyclone PLLs have an advanced clock shift capability that enables programmable phase shifts. You can enter a phase shift (in degrees or time units) for each PLL clock output port or for all outputs together in one shift. You can perform phase shifting in time units with a resolution range of 125 to 250 ps. The finest resolution equals one eighth of the VCO period. The VCO period is a function of the frequency input and the multiplication and division factors. Each clock output counter can choose a different phase of the VCO period from up to eight taps. You can use this clock output counter along with an initial setting on the post-scale counter to achieve a phase-shift range for the entire period of the output clock. The phase tap feedback to the m counter can shift all outputs to a single phase. The Quartus II software automatically sets the phase taps and counter settings according to the phase shift entered.

Lock Detect Signal

The lock output indicates that there is a stable clock output signal in phase with the reference clock. Without any additional circuitry, the lock signal may toggle as the PLL begins tracking the reference clock. Therefore, you may need to gate the lock signal for use as a system-control signal. For correct operation of the lock circuit below–20 C, fIN/N > 200 MHz.

Page 38: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–38 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Programmable Duty Cycle

The programmable duty cycle allows PLLs to generate clock outputs with a variable duty cycle. This feature is supported on each PLL post-scale counter (g0, g1, e). The duty cycle setting is achieved by a low- and high-time count setting for the post-scale dividers. The Quartus II software uses the frequency input and the required multiply or divide rate to determine the duty cycle choices.

Control Signals

There are three control signals for clearing and enabling PLLs and their outputs. You can use these signals to control PLL resynchronization and the ability to gate PLL output clocks for low-power applications.

The pllenable signal enables and disables PLLs. When the pllenable signal is low, the clock output ports are driven by ground and all the PLLs go out of lock. When the pllenable signal goes high again, the PLLs relock and resynchronize to the input clocks. An input pin or LE output can drive the pllenable signal.

The areset signals are reset/resynchronization inputs for each PLL. Cyclone devices can drive these input signals from input pins or from LEs. When areset is driven high, the PLL counters will reset, clearing the PLL output and placing the PLL out of lock. When driven low again, the PLL will resynchronize to its input as it relocks.

The pfdena signals control the phase frequency detector (PFD) output with a programmable gate. If you disable the PFD, the VCO will operate at its last set value of control voltage and frequency with some drift, and the system will continue running when the PLL goes out of lock or the input clock disables. By maintaining the last locked frequency, the system has time to store its current settings before shutting down. You can either use their own control signal or gated locked status signals to trigger the pfdena signal.

f For more information about Cyclone PLLs, refer to Using PLLs in Cyclone Devices chapter in the Cyclone Device Handbook.

Page 39: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–39May 2008 Preliminary

I/O Structure

I/O Structure IOEs support many features, including:

■ Differential and single-ended I/O standards■ 3.3-V, 64- and 32-bit, 66- and 33-MHz PCI compliance■ Joint Test Action Group (JTAG) boundary-scan test (BST) support■ Output drive strength control■ Weak pull-up resistors during configuration■ Slew-rate control■ Tri-state buffers■ Bus-hold circuitry■ Programmable pull-up resistors in user mode■ Programmable input and output delays■ Open-drain outputs■ DQ and DQS I/O pins

Cyclone device IOEs contain a bidirectional I/O buffer and three registers for complete embedded bidirectional single data rate transfer. Figure 2–27 shows the Cyclone IOE structure. The IOE contains one input register, one output register, and one output enable register. You can use the input registers for fast setup times and output registers for fast clock-to-output times. Additionally, you can use the output enable (OE) register for fast clock-to-output enable timing. The Quartus II software automatically duplicates a single OE register that controls multiple output or bidirectional pins. IOEs can be used as input, output, or bidirectional pins.

Page 40: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–40 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–27. Cyclone IOE Structure

Note to Figure 2–27:(1) There are two paths available for combinatorial inputs to the logic array. Each path

contains a unique programmable delay chain.

The IOEs are located in I/O blocks around the periphery of the Cyclone device. There are up to three IOEs per row I/O block and up to three IOEs per column I/O block (column I/O blocks span two columns). The row I/O blocks drive row, column, or direct link interconnects. The column I/O blocks drive column interconnects. Figure 2–28 shows how a row I/O block connects to the logic array. Figure 2–29 shows how a column I/O block connects to the logic array.

Output Register

Output

Combinatorialinput (1)

Input

OE Register

OE

Input Register

Logic Array

D Q

D Q

D Q

Page 41: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–41May 2008 Preliminary

I/O Structure

Figure 2–28. Row I/O Block Connection to the Interconnect

Notes to Figure 2–28:(1) The 21 data and control signals consist of three data out lines, io_dataout[2..0], three output enables,

io_coe[2..0], three input clock enables, io_cce_in[2..0], three output clock enables, io_cce_out[2..0], three clocks, io_cclk[2..0], three asynchronous clear signals, io_caclr[2..0], and three synchronous clear signals, io_csclr[2..0].

(2) Each of the three IOEs in the row I/O block can have one io_datain input (combinatorial or registered) and one comb_io_datain (combinatorial) input.

21

R4 Interconnects C4 Interconnects

I/O Block Local Interconnect

21 Data andControl Signalsfrom Logic Array (1)

io_datain[2..0] andcomb_io_datain[2..0] (2)

io_clk[5:0]

Row I/O BlockContains up to

Three IOEs

Direct LinkInterconnect

to Adjacent LAB

Direct LinkInterconnect

from Adjacent LAB

LAB LocalInterconnect

LAB RowI/O Block

Page 42: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–42 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–29. Column I/O Block Connection to the Interconnect

Notes to Figure 2–29:(1) The 21 data and control signals consist of three data out lines, io_dataout[2..0], three output enables,

io_coe[2..0], three input clock enables, io_cce_in[2..0], three output clock enables, io_cce_out[2..0], three clocks, io_cclk[2..0], three asynchronous clear signals, io_caclr[2..0], and three synchronous clear signals, io_csclr[2..0].

(2) Each of the three IOEs in the column I/O block can have one io_datain input (combinatorial or registered) and one comb_io_datain (combinatorial) input.

21 Data &Control Signals

from Logic Array (1)

Column I/O Block Containsup to Three IOEs

I/O BlockLocal Interconnect

IO_datain[2:0] &comb_io_datain[2..0]

(2)

R4 Interconnects

LAB LocalInterconnect

C4 Interconnects

21

LAB LAB LAB

io_clk[5..0]

Column I/O Block

Page 43: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–43May 2008 Preliminary

I/O Structure

The pin's datain signals can drive the logic array. The logic array drives the control and data signals, providing a flexible routing resource. The row or column IOE clocks, io_clk[5..0], provide a dedicated routing resource for low-skew, high-speed clocks. The global clock network generates the IOE clocks that feed the row or column I/O regions (see “Global Clock Network and Phase-Locked Loops” on page 2–29). Figure 2–30 illustrates the signal paths through the I/O block.

Figure 2–30. Signal Path through the I/O Block

Each IOE contains its own control signal selection for the following control signals: oe, ce_in, ce_out, aclr/preset, sclr/preset, clk_in, and clk_out. Figure 2–31 illustrates the control signal selection.

Row or Columnio_clk[5..0]

io_datain

comb_io_datain

io_dataout

io_coe

oe

ce_in

ce_out

io_cce_inaclr/preset

io_cce_outsclr

io_caclrclk_in

io_cclkclk_out

dataout

Data andControlSignal

Selection

IOE

To LogicArray

From LogicArray

To OtherIOEs

io_csclr

Page 44: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–44 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Figure 2–31. Control Signal Selection per IOE

In normal bidirectional operation, you can use the input register for input data requiring fast setup times. The input register can have its own clock input and clock enable separate from the OE and output registers. The output register can be used for data requiring fast clock-to-output performance. The OE register is available for fast clock-to-output enable timing. The OE and output register share the same clock source and the same clock enable source from the local interconnect in the associated LAB, dedicated I/O clocks, or the column and row interconnects. Figure 2–32 shows the IOE in bidirectional configuration.

clk_out

ce_inclk_in

ce_out

aclr/preset

sclr/preset

Dedicated I/OClock [5..0]

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

LocalInterconnect

oe

io_coe

io_caclr

LocalInterconnect

io_csclr

io_cce_out

io_cce_in

io_cclk

Page 45: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–45May 2008 Preliminary

I/O Structure

Figure 2–32. Cyclone IOE in Bidirectional I/O Configuration

The Cyclone device IOE includes programmable delays to ensure zero hold times, minimize setup times, or increase clock to output times.

A path in which a pin directly drives a register may require a programmable delay to ensure zero hold time, whereas a path in which a pin drives a register through combinatorial logic may not require the delay. Programmable delays decrease input-pin-to-logic-array and IOE input register delays. The Quartus II Compiler can program these delays

Chip-Wide Reset

OE Register

VCCIO

OptionalPCI Clamp

Column or RowInterconect

ioe_clk[5..0]

Input RegisterInput Pin to

Input Register Delayor Input Pin to

Logic Array Delay

Input Pin toLogic Array Delay

Drive Strength Control

Open-Drain Output

Slew Controlsclr/preset

OE

clkout

ce_out

aclr/prn

clkin

ce_in

ProgrammablePull-UpResistor

Bus Hold

PRN

CLRN

D Q

Output Register

PRN

CLRN

D Q

PRN

CLRN

D Q

VCCIO

comb_datain

data_in

ENA

ENA

ENA

OutputPin Delay

Page 46: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–46 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

to automatically minimize setup time while providing a zero hold time. Programmable delays can increase the register-to-pin delays for output registers. Table 2–9 shows the programmable delays for Cyclone devices.

There are two paths in the IOE for a combinatorial input to reach the logic array. Each of the two paths can have a different delay. This allows you adjust delays from the pin to internal LE registers that reside in two different areas of the device. The designer sets the two combinatorial input delays by selecting different delays for two different paths under the Decrease input delay to internal cells logic option in the Quartus II software. When the input signal requires two different delays for the combinatorial input, the input register in the IOE is no longer available.

The IOE registers in Cyclone devices share the same source for clear or preset. The designer can program preset or clear for each individual IOE. The designer can also program the registers to power up high or low after configuration is complete. If programmed to power up low, an asynchronous clear can control the registers. If programmed to power up high, an asynchronous preset can control the registers. This feature prevents the inadvertent activation of another device's active-low input upon power up. If one register in an IOE uses a preset or clear signal then all registers in the IOE must use that same signal if they require preset or clear. Additionally a synchronous reset signal is available to the designer for the IOE registers.

External RAM Interfacing

Cyclone devices support DDR SDRAM and FCRAM interfaces at up to 133 MHz through dedicated circuitry.

DDR SDRAM and FCRAM

Cyclone devices have dedicated circuitry for interfacing with DDR SDRAM. All I/O banks support DDR SDRAM and FCRAM I/O pins. However, the configuration input pins in bank 1 must operate at 2.5 V because the SSTL-2 VCCIO level is 2.5 V. Additionally, the configuration

Table 2–9. Cyclone Programmable Delay Chain

Programmable Delays Quartus II Logic Option

Input pin to logic array delay Decrease input delay to internal cells

Input pin to input register delay Decrease input delay to input registers

Output pin delay Increase delay to output pin

Page 47: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–47May 2008 Preliminary

I/O Structure

output pins (nSTATUS and CONF_DONE) and all the JTAG pins in I/O bank 3 must operate at 2.5 V because the VCCIO level of SSTL-2 is 2.5 V. I/O banks 1, 2, 3, and 4 support DQS signals with DQ bus modes of × 8.

For × 8 mode, there are up to eight groups of programmable DQS and DQ pins, I/O banks 1, 2, 3, and 4 each have two groups in the 324-pin and 400-pin FineLine BGA packages. Each group consists of one DQS pin, a set of eight DQ pins, and one DM pin (see Figure 2–33). Each DQS pin drives the set of eight DQ pins within that group.

Figure 2–33. Cyclone Device DQ and DQS Groups in ×8 Mode Note (1)

Note to Figure 2–33:(1) Each DQ group consists of one DQS pin, eight DQ pins, and one DM pin.

Table 2–10 shows the number of DQ pin groups per device.

DQ Pins DQS Pin DM Pin

Top, Bottom, Left, or Right I/O Bank

Table 2–10. DQ Pin Groups (Part 1 of 2)

Device Package Number of × 8 DQ Pin Groups

Total DQ Pin Count

EP1C3 100-pin TQFP (1) 3 24

144-pin TQFP 4 32

EP1C4 324-pin FineLine BGA 8 64

400-pin FineLine BGA 8 64

Page 48: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–48 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

A programmable delay chain on each DQS pin allows for either a 90° phase shift (for DDR SDRAM), or a 72° phase shift (for FCRAM) which automatically center-aligns input DQS synchronization signals within the data window of their corresponding DQ data signals. The phase-shifted DQS signals drive the global clock network. This global DQS signal clocks DQ signals on internal LE registers.

These DQS delay elements combine with the PLL’s clocking and phase shift ability to provide a complete hardware solution for interfacing to high-speed memory.

The clock phase shift allows the PLL to clock the DQ output enable and output paths. The designer should use the following guidelines to meet 133 MHz performance for DDR SDRAM and FCRAM interfaces:

■ The DQS signal must be in the middle of the DQ group it clocks■ Resynchronize the incoming data to the logic array clock using

successive LE registers or FIFO buffers■ LE registers must be placed in the LAB adjacent to the DQ I/O pin

column it is fed by

Figure 2–34 illustrates DDR SDRAM and FCRAM interfacing from the I/O through the dedicated circuitry to the logic array.

EP1C6 144-pin TQFP 4 32

240-pin PQFP 4 32

256-pin FineLine BGA 4 32

EP1C12 240-pin PQFP 4 32

256-pin FineLine BGA 4 32

324-pin FineLine BGA 8 64

EP1C20 324-pin FineLine BGA 8 64

400-pin FineLine BGA 8 64

Note to Table 2–10:(1) EP1C3 devices in the 100-pin TQFP package do not have any DQ pin groups in

I/O bank 1.

Table 2–10. DQ Pin Groups (Part 2 of 2)

Device Package Number of × 8 DQ Pin Groups

Total DQ Pin Count

Page 49: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–49May 2008 Preliminary

I/O Structure

Figure 2–34. DDR SDRAM and FCRAM Interfacing

Programmable Drive Strength

The output buffer for each Cyclone device I/O pin has a programmable drive strength control for certain I/O standards. The LVTTL and LVCMOS standards have several levels of drive strength that the designer can control. SSTL-3 class I and II, and SSTL-2 class I and II support a minimum setting, the lowest drive strength that guarantees the IOH/IOL

VCC

GND

PLL

Phase Shifted -90˚

DQS

Adjacent LAB LEs

Global Clock

ResynchronizingGlobal Clock

ProgrammableDelay Chain

Output LERegister

Output LERegisters

DQ

Input LERegisters

Input LERegisters

LERegister

LERegister

Δ t

AdjacentLAB LEs

OE OE LERegister

OE LERegister

OE OE LERegister

OE LERegister

Output LERegisters

Output LERegister

DataA

DataB

clk

-90˚ clk

Page 50: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–50 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

of the standard. Using minimum settings provides signal slew rate control to reduce system noise and signal overshoot. Table 2–11 shows the possible settings for the I/O standards with drive strength control.

Open-Drain Output

Cyclone devices provide an optional open-drain (equivalent to an open-collector) output for each I/O pin. This open-drain output enables the device to provide system-level control signals (e.g., interrupt and write-enable signals) that can be asserted by any of several devices.

Table 2–11. Programmable Drive Strength Note (1)

I/O Standard IOH/IOL Current Strength Setting (mA)

LVTTL (3.3 V) 4

8

12

16

24(2)

LVCMOS (3.3 V) 2

4

8

12(2)

LVTTL (2.5 V) 2

8

12

16(2)

LVTTL (1.8 V) 2

8

12(2)

LVCMOS (1.5 V) 2

4

8(2)

Notes to Table 2–11:(1) SSTL-3 class I and II, SSTL-2 class I and II, and 3.3-V PCI I/O Standards do not

support programmable drive strength.(2) This is the default current strength setting in the Quartus II software.

Page 51: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–51May 2008 Preliminary

I/O Structure

Slew-Rate Control

The output buffer for each Cyclone device I/O pin has a programmable output slew-rate control that can be configured for low noise or high-speed performance. A faster slew rate provides high-speed transitions for high-performance systems. However, these fast transitions may introduce noise transients into the system. A slow slew rate reduces system noise, but adds a nominal delay to rising and falling edges. Each I/O pin has an individual slew-rate control, allowing the designer to specify the slew rate on a pin-by-pin basis. The slew-rate control affects both the rising and falling edges.

Bus Hold

Each Cyclone device I/O pin provides an optional bus-hold feature. The bus-hold circuitry can hold the signal on an I/O pin at its last-driven state. Since the bus-hold feature holds the last-driven state of the pin until the next input signal is present, an external pull-up or pull-down resistor is not necessary to hold a signal level when the bus is tri-stated.

The bus-hold circuitry also pulls undriven pins away from the input threshold voltage where noise can cause unintended high-frequency switching. The designer can select this feature individually for each I/O pin. The bus-hold output will drive no higher than VCCIO to prevent overdriving signals. If the bus-hold feature is enabled, the device cannot use the programmable pull-up option. Disable the bus-hold feature when the I/O pin is configured for differential signals.

The bus-hold circuitry uses a resistor with a nominal resistance (RBH) of approximately 7 kΩ to pull the signal level to the last-driven state. Table 4–15 on page 4–6 gives the specific sustaining current for each VCCIO voltage level driven through this resistor and overdrive current used to identify the next-driven input level.

The bus-hold circuitry is only active after configuration. When going into user mode, the bus-hold circuit captures the value on the pin present at the end of configuration.

Programmable Pull-Up Resistor

Each Cyclone device I/O pin provides an optional programmable pull-up resistor during user mode. If the designer enables this feature for an I/O pin, the pull-up resistor (typically 25 kΩ) holds the output to the VCCIO level of the output pin's bank. Dedicated clock pins do not have the optional programmable pull-up resistor.

Page 52: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–52 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Advanced I/O Standard Support

Cyclone device IOEs support the following I/O standards:

■ 3.3-V LVTTL/LVCMOS■ 2.5-V LVTTL/LVCMOS■ 1.8-V LVTTL/LVCMOS■ 1.5-V LVCMOS■ 3.3-V PCI■ LVDS■ RSDS■ SSTL-2 class I and II■ SSTL-3 class I and II■ Differential SSTL-2 class II (on output clocks only)

Table 2–12 describes the I/O standards supported by Cyclone devices.

Cyclone devices contain four I/O banks, as shown in Figure 2–35. I/O banks 1 and 3 support all the I/O standards listed in Table 2–12. I/O banks 2 and 4 support all the I/O standards listed in Table 2–12 except the 3.3-V PCI standard. I/O banks 2 and 4 contain dual-purpose DQS, DQ,

Table 2–12. Cyclone I/O Standards

I/O Standard TypeInput Reference

Voltage (VREF) (V)Output Supply

Voltage (VCCIO) (V)

Board Termination

Voltage (VTT) (V)

3.3-V LVTTL/LVCMOS Single-ended N/A 3.3 N/A

2.5-V LVTTL/LVCMOS Single-ended N/A 2.5 N/A

1.8-V LVTTL/LVCMOS Single-ended N/A 1.8 N/A

1.5-V LVCMOS Single-ended N/A 1.5 N/A

3.3-V PCI (1) Single-ended N/A 3.3 N/A

LVDS (2) Differential N/A 2.5 N/A

RSDS (2) Differential N/A 2.5 N/A

SSTL-2 class I and II Voltage-referenced 1.25 2.5 1.25

SSTL-3 class I and II Voltage-referenced 1.5 3.3 1.5

Differential SSTL-2 (3) Differential 1.25 2.5 1.25

Notes to Table 2–12:(1) There is no megafunction support for EP1C3 devices for the PCI compiler. However, EP1C3 devices support PCI

by using the LVTTL 16-mA I/O standard and drive strength assignments in the Quartus II software. The device requires an external diode for PCI compliance.

(2) EP1C3 devices in the 100-pin TQFP package do not support the LVDS and RSDS I/O standards.(3) This I/O standard is only available on output clock pins (PLL_OUT pins). EP1C3 devices in the 100-pin package

do not support this I/O standard as it does not have PLL_OUT pins.

Page 53: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–53May 2008 Preliminary

I/O Structure

and DM pins to support a DDR SDRAM or FCRAM interface. I/O bank 1 can also support a DDR SDRAM or FCRAM interface, however, the configuration input pins in I/O bank 1 must operate at 2.5 V. I/O bank 3 can also support a DDR SDRAM or FCRAM interface, however, all the JTAG pins in I/O bank 3 must operate at 2.5 V.

Figure 2–35. Cyclone I/O Banks Notes (1), (2)

Notes to Figure 2–35:(1) Figure 2–35 is a top view of the silicon die.(2) Figure 2–35 is a graphic representation only. Refer to the pin list and the Quartus II software for exact pin locations.

Each I/O bank has its own VCCIO pins. A single device can support 1.5-V, 1.8-V, 2.5-V, and 3.3-V interfaces; each individual bank can support a different standard with different I/O voltages. Each bank also has dual-purpose VREF pins to support any one of the voltage-referenced standards (e.g., SSTL-3) independently. If an I/O bank does not use voltage-referenced standards, the VREF pins are available as user I/O pins.

I/O Bank 2

I/O Bank 3

I/O Bank 4

I/O Bank 1

All I/O Banks Support■ 3.3-V LVTTL/LVCMOS ■ 2.5-V LVTTL/LVCMOS■ 1.8-V LVTTL/LVCMOS■ 1.5-V LVCMOS■ LVDS■ RSDS■ SSTL-2 Class I and II■ SSTL-3 Class I and II

I/O Bank 3Also Supportsthe 3.3-V PCII/O Standard

I/O Bank 1Also Supportsthe 3.3-V PCII/O Standard

IndividualPower Bus

Page 54: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–54 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Each I/O bank can support multiple standards with the same VCCIO for input and output pins. For example, when VCCIO is 3.3-V, a bank can support LVTTL, LVCMOS, 3.3-V PCI, and SSTL-3 for inputs and outputs.

LVDS I/O Pins

A subset of pins in all four I/O banks supports LVDS interfacing. These dual-purpose LVDS pins require an external-resistor network at the transmitter channels in addition to 100-Ω termination resistors on receiver channels. These pins do not contain dedicated serialization or deserialization circuitry; therefore, internal logic performs serialization and deserialization functions.

Table 2–13 shows the total number of supported LVDS channels per device density.

MultiVolt I/O Interface

The Cyclone architecture supports the MultiVolt I/O interface feature, which allows Cyclone devices in all packages to interface with systems of different supply voltages. The devices have one set of VCC pins for internal operation and input buffers (VCCINT), and four sets for I/O output drivers (VCCIO).

Table 2–13. Cyclone Device LVDS Channels

Device Pin Count Number of LVDS Channels

EP1C3 100 (1)

144 34

EP1C4 324 103

400 129

EP1C6 144 29

240 72

256 72

EP1C12 240 66

256 72

324 103

EP1C20 324 95

400 129

Note to Table 2–13:(1) EP1C3 devices in the 100-pin TQFP package do not support the LVDS I/O

standard.

Page 55: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

Altera Corporation 2–55May 2008 Preliminary

Power Sequencing and Hot Socketing

The Cyclone VCCINT pins must always be connected to a 1.5-V power supply. If the VCCINT level is 1.5 V, then input pins are 1.5-V, 1.8-V, 2.5-V, and 3.3-V tolerant. The VCCIO pins can be connected to either a 1.5-V, 1.8-V, 2.5-V, or 3.3-V power supply, depending on the output requirements. The output levels are compatible with systems of the same voltage as the power supply (i.e., when VCCIO pins are connected to a 1.5-V power supply, the output levels are compatible with 1.5-V systems). When VCCIO pins are connected to a 3.3-V power supply, the output high is 3.3-V and is compatible with 3.3-V or 5.0-V systems. Table 2–14 summarizes Cyclone MultiVolt I/O support.

Power Sequencing and Hot Socketing

Because Cyclone devices can be used in a mixed-voltage environment, they have been designed specifically to tolerate any possible power-up sequence. Therefore, the VCCIO and VCCINT power supplies may be powered in any order.

Signals can be driven into Cyclone devices before and during power up without damaging the device. In addition, Cyclone devices do not drive out during power up. Once operating conditions are reached and the device is configured, Cyclone devices operate as specified by the user.

Table 2–14. Cyclone MultiVolt I/O Support Note (1)

VCCIO (V)Input Signal Output Signal

1.5 V 1.8 V 2.5 V 3.3 V 5.0 V 1.5 V 1.8 V 2.5 V 3.3 V 5.0 V

1.5 v v v (2) v (2) — v — — — —

1.8 v v v (2) v (2) — v (3) v — — —

2.5 — — v v — v (5) v (5) v — —

3.3 — — v (4) v v (6) v (7) v (7) v (7) v v (8)

Notes to Table 2–14:(1) The PCI clamping diode must be disabled to drive an input with voltages higher than VCCIO.(2) When VCCIO = 1.5-V or 1.8-V and a 2.5-V or 3.3-V input signal feeds an input pin, higher pin leakage current is

expected. Turn on Allow voltage overdrive for LVTTL / LVCMOS input pins in the Assignments > Device > Device and Pin Options > Pin Placement tab when a device has this I/O combinations.

(3) When VCCIO = 1.8-V, a Cyclone device can drive a 1.5-V device with 1.8-V tolerant inputs.(4) When VCCIO = 3.3-V and a 2.5-V input signal feeds an input pin, the VCCIO supply current will be slightly larger

than expected.(5) When VCCIO = 2.5-V, a Cyclone device can drive a 1.5-V or 1.8-V device with 2.5-V tolerant inputs.(6) Cyclone devices can be 5.0-V tolerant with the use of an external resistor and the internal PCI clamp diode.(7) When VCCIO = 3.3-V, a Cyclone device can drive a 1.5-V, 1.8-V, or 2.5-V device with 3.3-V tolerant inputs.(8) When VCCIO = 3.3-V, a Cyclone device can drive a device with 5.0-V LVTTL inputs but not 5.0-V LVCMOS inputs.

Page 56: Cyclone Handbook Volume 1, Chapter 2. Cyclone …...2–6 Altera Corporation Preliminary May 2008 Cyclone Device Handbook, Volume 1 Figure 2–5. Cyclone LE Each LE's programmable

2–56 Altera CorporationPreliminary May 2008

Cyclone Device Handbook, Volume 1

Referenced Documents

This chapter references the following document:

■ Using PLLs in Cyclone Devices chapter in the Cyclone Device Handbook

Document Revision History

Table 2–15 shows the revision history for this chapter.

Table 2–15. Document Revision History

Date and Document

VersionChanges Made Summary of Changes

May 2008v1.6

Minor textual and style changes. Added “Referenced Documents” section.

January 2007 v1.5

● Added document revision history.● Updated Figures 2–17, 2–18, 2–19, 2–20, 2–21, and 2–32.

August 2005 v1.4

Minor updates. —

February 2005 v1.3

● Updated JTAG chain limits. Added test vector information.● Corrected Figure 2-12.● Added a note to Tables 2-17 through 2-21 regarding violating

the setup or hold time.

October 2003 v1.2

● Updated phase shift information.● Added 64-bit PCI support information.

September 2003 v1.1

Updated LVDS data rates to 640 Mbps from 311 Mbps. —

May 2003 v1.0 Added document to Cyclone Device Handbook. —