Altera Virtual JTAG IP Core Manual de usuario

Busca en linea o descarga Manual de usuario para Instrumentos de medición Altera Virtual JTAG IP Core. Altera Virtual JTAG IP Core User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 42
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
Virtual JTAG Megafunction (sld_virtual_jtag)
2014.03.19
UG-SLDVRTL
Subscribe
Send Feedback
The Virtual JTAG (SLD_VIRTUAL_JTAG) megafunction is an Altera
®
-provided megafunction IP core
optimized for Altera device architectures. Using megafunctions in place of coding your own logic saves
valuable design time, and offers more efficient logic synthesis and device implementation. You can scale the
megafunction's size by setting parameters.
Introduction
The Virtual JTAG megafunction provides access to the PLD source through the JTAG interface.
The Quartus
®
II software or JTAG control host identifies each instance of this megafunction by a unique
index. Each megafunction instance functions in a flow that resembles the JTAG operation of a device. The
logic that uses this interface must maintain the continuity of the JTAG chain on behalf the PLD device when
this instance becomes active. The Virtual JTAG megafunction) allows you to create your own software
solution for monitoring, updating, and debugging designs through the JTAG port without using I/O pins
on the device, and is one feature in the On-Chip Debugging Tool Suite.
When you create your megafunction, you can use the MegaWizard Plug-In Manager to generate a
netlist for third-party synthesis tools.
Note:
With the SLD Virtual JTAG megafunction you can build your design for efficient, fast, and productive
debugging solutions. Debugging solutions can be part of an evaluation test where you use other logic analyzers
to debug your design, or as part of a production test where you do not have a host running an embedded
logic analyzer. In addition to debugging features, you can use the Virtual JTAG megafunction to provide a
single channel or multiple serial channels through the JTAG port of the device. You can use serial channels
in applications to capture data or to force data to various parts of your logic.
Each feature in the On-Chip Debugging Tool Suite leverages on-chip resources to achieve real time visibility
to the logic under test. During runtime, each tool shares the JTAG connection to transmit collected test data
to the Quartus II software for analysis. The tool set consists of a set of GUIs, megafunction intellectual
property (IP) cores, and Tcl application programming interfaces (APIs). The GUIs provide the configuration
of test signals and the visualization of data captured during debugging. The Tcl scripting interface provides
automation during runtime.
The Virtual JTAG megafunction provides you direct access to the JTAG control signals routed to the FPGA
core logic, which gives you a fine granularity of control over the JTAG resource and opens up the JTAG
resource as a general-purpose serial communication interface. A complete Tcl API is available for sending
and receiving transactions into your device during runtime. Because the JTAG pins are readily accessible
during runtime, this megafunction enables an easy way to customize a JTAG scan chain internal to the
device, which you can then use to create debugging applications.
ISO
9001:2008
Registered
©
2014 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words
and logos are trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other
words and logos identified as trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with
Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes
no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly
agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device specifications before relying on any published
information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Vista de pagina 0
1 2 3 4 5 6 ... 41 42

Indice de contenidos

Pagina 1 - Introduction

Virtual JTAG Megafunction (sld_virtual_jtag)2014.03.19UG-SLDVRTLSubscribeSend FeedbackThe Virtual JTAG (SLD_VIRTUAL_JTAG) megafunction is an Altera®-p

Pagina 2 - On-Chip Debugging Tool Suite

The figure below shows the input and output ports of the virtual JTAG megafunction. The JTAG TAPcontroller outputs and TMS signals are used for inform

Pagina 3

Output PortsTable 3: Output Ports for the Virtual JTAG MegafunctionCommentsDescriptionRequiredPort NameConnected directly to the TCKdevice pin. Shared

Pagina 4 - JTAG Protocol

Table 5: Low-Level Virtual JTAG State SignalsCommentsDescriptionRequiredPort NameShared among all virtualJTAG instances.Indicates that the device JTAG

Pagina 5 - JTAG Circuitry Architecture

CommentsDescriptionRequiredPort NameShared among all virtualJTAG instances.Indicates that the device JTAGcontroller is in the Exit1_IRstate.Nojtag_sta

Pagina 6

Design Flow of the Virtual JTAG MegafunctionDesigning with the Virtual JTAG megafunction includes the following processes:• Configuring the Virtual JT

Pagina 7

Figure 8: Block Diagram of a Design with a Single Virtual JTAG InstantiationInferred by Instantiationof MegafunctionGlue Logic between VJI and User De

Pagina 8 - SLD Hub Finite State Machine

Table 7: Tcl Commands Used with the Virtual JTAG MegafunctionDescriptionArgumentsCommandPerform an IR shift operation to thevirtual JTAG instance spec

Pagina 9

Each device_virtual_ir_shift command issues a USER1 instruction to the JTAG Instruction Registerfollowed by a DR shift containing the VIR value provid

Pagina 10 - Input Ports

Figure 9: Compilation ReportTable 8: Virtual JTAG Settings DescriptionDescriptionSettingInstance index of the virtual JTAG megafunction. Assignedat co

Pagina 11 - Output Ports

To use the Tcl API to query for the bit pattern in your design, use theshow_equivalent_device_ir_dr_shift argument with the device_virtual_ir_shift an

Pagina 12 - 2014.03.19

Examples of debugging applications include induced trigger conditions evaluated by a SignalTap®II LogicAnalyzer by exercising test signals connected t

Pagina 13 - Parameters

four bits long, the minimum length for the VIR value field for all SLD nodes in the design is at least four bitsin length. The Quartus II Tcl API auto

Pagina 14

HUB_FORCE_IR capture must be issued whenever you capture the VIR from a target SLD node that is differentthan the current active node. DR Scan Shift 1

Pagina 15 - Simulation Model

TAP controller or the system logic. Both the JTAG TAP controller and the sld_hub controller are guaranteedto be in the Test Logic Reset state after fi

Pagina 16 - DescriptionArgumentsCommand

Page 4 defines the stimuli that are used during the simulation of your megafunction. A stimulus is eithera Data Register shift (DR shift) or an Instru

Pagina 17

• The ir_in output port of the Virtual JTAG megafunction is the parallel output of the contents that getshifted into the virtual IR of the Virtual JTA

Pagina 18 - DescriptionSetting

else tdo <= bypass_reg;endmoduleThe decode logic is produced by defining a wire load to be active high whenever the IR of the Virtual JTAGm

Pagina 19

be edited for generating different stimuli, though the preferred way to specify stimuli for DR and IR scanshifts is to use the MegaWizard Plug-In Mana

Pagina 20 - Virtual DR Shift

• In a real system, each instance of the Virtual JTAG megafunction works independently. In simulation,multiple instances can work at the same time. Fo

Pagina 21 - Related Information

Compiling the DesignYou can instantiate a maximum of 128 instances of the Virtual JTAG megafunction in a design. Aftercompilation, each instance has a

Pagina 22

Figure 15: Logic Resources Utilizedsld_virtual_jtaginstancesRelated Information• Design Implementation and Optimization• VerificationThird-Party Synth

Pagina 23

Typical Circumstances for UseDescriptionToolYou want to view and edit thecontents of either the instructioncache or data cache of a Nios®IIprocessor a

Pagina 24

Table 10: USER1 and USER2 Instruction ValuesBinary PatternInstruction00 0000 1100USER000 0000 1110USER1The USER1 instruction targets the virtual IR of

Pagina 25 - Simulation Support

The SLD_NODE_INFO register is used to determine the address mapping for Virtual JTAG instance in yourdesign. This register set is shifted out by issui

Pagina 26 - CommentsParameter

Table 14: SLD_NODE_INFO Register DescriptionsFunctionFieldIdentifies the version of the SLD nodeNode VersionIdentifies the type of NODE IP (0x8 for th

Pagina 27 - Send Feedback

Figure 16: Functional Model Interaction between USER1 DR CHAIN and SLD Node VIRsTDI TDOADDR[n - 1..0] VIR_valuemsb lsbADDR[n - 1..0]ADDR[n - 1..0]SLD

Pagina 28 - Compiling the Design

jtag_state_cir, jtag_state_e1dr, jtag_state_e1ir, jtag_state_e2dr, jtag_state_e2ir, jtag_state_pdr,

Pagina 29 - Third-Party Synthesis Support

jtag_state_uir : out std_logic; tck : out std_logic; tdi : out std_logic;

Pagina 30 - Binary PatternInstruction

Figure 17: JTAG TAP Controller State MachineCAPTURE_DRSHIFT_DREXIT1_DRPAUSE_DREXIT2_DRUPDATE_DRCAPTURE_IRSHIFT_IREXIT1_IRPAUSE_IREXIT2_IRUPDATE_IRRUN_

Pagina 31 - SLD_NODE Info Register

Functional DescriptionTAP Controller StateThis is a hold state. Once entered, the controller remains inthis state as long as TMS is held low.Run-Test/

Pagina 32 - FunctionField

Table 16: Instruction Register ValuesFunctionInstruction Register ValueInstruction to write a single value to the write side logic of the DCFIFO.PUSHI

Pagina 33 - AHDL Function Prototype

Figure 19: Read Side Logic for DCFIFO Design ExampleIR Decode/StateDecode LogicIR_registerStateInformationTDOTDOWrite_reqData[7:0]Write_clockRead_reqR

Pagina 34 - VHDL Component Declaration

simple stimulus patterns to solicit a response from the design under test during run-time, including thefollowing applications:• To diagnose, sample,

Pagina 35 - VHDL LIBRARY-USE Declaration

Figure 20: Runtime ExecutionFigure 21: SignalTap II Logic Analyzer Capture Triggering on a Flush OperationVirtual JTAG Megafunction (sld_virtual_jtag)

Pagina 36

Design Example: Offloading Hardwired Revision InformationThis example demonstrates how you can use a GUI to offload revision information that is hardw

Pagina 37 - Write Logic

Document Revision HistoryTable 18: Document Revision HistoryChangesVersionDateUpdated the description of the SLD_IR_WIDTH parameter inthe "Parame

Pagina 38 - Read Logic

JTAG Circuitry ArchitectureThe basic architecture of the JTAG circuitry consists of the following components:• A set of Data Registers (DRs)• An Instr

Pagina 39 - Runtime Communication

Figure 3: Functional Model of the JTAG CircuitryIR Shift RegistersIR Update RegistersDR Shift Register 1DR Update Register 1DR Shift Register 2DR Upda

Pagina 40 - Figure 20: Runtime Execution

Figure 4: System Level Debugging Infrastructure Functional ModelJTAG TapControllerTCTMTDTDFPGASLD NodeSLD NodeSLD NodeSLD NodeSLD HubUser’s Design(Cor

Pagina 41

Figure 5: Extension of the JTAG Protocol for PLD ApplicationsIR Shift RegistersIR Update RegistersDR Shift Register 1DR Update Register 1USER 0 Data R

Pagina 42 - Document Revision History

This state information, including a bank of enable signals, is forwarded to each of the SLD nodes. The SLDnodes perform the updates to the VIR and VDR

Comentarios a estos manuales

Sin comentarios