English
Language : 

EP4CE30F29C7N Datasheet, PDF (223/488 Pages) Altera Corporation – Cyclone IV Device Handbook, Volume 1
Chapter 8: Configuration and Remote System Upgrades in Cyclone IV Devices
Configuration
8–59
ACTIVE_DISENGAGE
The ACTIVE_DISENGAGE instruction places the active configuration controller (AS and
AP) into an idle state prior to JTAG programming. The two purposes of placing the
active controller in an idle state are:
■ To ensure that it is not trying to configure the device during JTAG programming
■ To allow the controllers to properly recognize a successful JTAG programming
that results in the device reaching user mode
The ACTIVE_DISENGAGE instruction is required before JTAG programming regardless
of the current state of the Cyclone IV device if the MSEL pins are set to an AS or AP
configuration scheme. If the ACTIVE_DISENGAGE instruction is issued during a passive
configuration scheme (PS or FPP), it has no effect on the Cyclone IV device. Similarly,
the CONFIG_IO instruction is issued after an ACTIVE_DISENGAGE instruction, but is no
longer required to properly halt configuration. Table 8–17 lists the required,
recommended, and optional instructions for each configuration mode. The ordering
of the required instructions is a hard requirement and must be met to ensure
functionality.
Table 8–17. JTAG Programming Instruction Flows (1)
Configuration Scheme and Current State of the Cyclone IV Device
JTAG Instruction
Prior to User Mode (Interrupting
Configuration)
User Mode
Power Up
PS
FPP
AS
AP PS FPP AS AP PS FPP AS AP
ACTIVE_DISENGAGE
O
O
R
R
OOORO O RR
CONFIG_IO
Rc
Rc
O
O
O O O 0 NA NA NA NA
Other JTAG instructions O
O
O
O
OOO 0 O O O 0
JTAG_PROGRAM
R
R
R
R
RRRRR R RR
CHECK_STATUS
Rc
Rc
Rc
Rc Rc Rc Rc Rc Rc Rc Rc Rc
JTAG_STARTUP
R
R
R
R
RRRRR R RR
JTAG TAP Reset/other
instruction
R
R
R
R
RRRRR R RR
Note to Table 8–17:
(1) “R” indicates that the instruction must be executed before the next instruction, “O” indicates the optional instruction, “Rc” indicates the
recommended instruction, and “NA” indicates that the instruction is not allowed in this mode.
In the AS or AP configuration scheme, the ACTIVE_DISENGAGE instruction puts the
active configuration controller into idle state. If a successful JTAG programming is
executed, the active controller is automatically re-engaged after user mode is reached
through JTAG programming. This causes the active controller to transition to their
respective user mode states.
If JTAG programming fails to get the Cyclone IV device to enter user mode and
re-engage active programming, there are available methods to achieve this:
■ In AS configuration scheme, you can re-engage the AS controller by moving the
JTAG TAP controller to the reset state or by issuing the ACTIVE_ENGAGE instruction.
May 2013 Altera Corporation
Cyclone IV Device Handbook,
Volume 1