Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Reference Designs   |   Design Examples   |   mySupport  

 Altera Troubleshooters
      Overview
      Licensing
      Simulating with ModelSim
      Timing Analysis
      PLL Loss of Lock
      FPGA Configuration
      JTAG Config & ISP
      PFL Troubleshooter
      Jam, JBC and SVF
      Usage Guidelines
      Optimization Advisor
  

Solution ID: rd11201998_4611
Last Modified: Oct 01, 2008
Product Category: Devices
Product Area: Configuration
Product Sub-area: JTAG

Problem

How do I read the USERCODE instruction out of Altera devices that support it without using a JAM File or JAM Byte-Code File?

Solution

The USERCODE instruction can be read out of devices simply by loading the JTAG instruction register with the USERCODE instruction and shifting out the 32-bit code.

Reading the USERCODE instruction out of a device is a relatively simple JTAG process. Below is psuedocode that summarizes the process:

  1. Traverse the JTAG state machine to the Shift-IR state
  2. Load the USERCODE instruction
  3. Traverse the JTAG state machine to the Shift-DR state
  4. Shift out the 32-bit USERCODE value

The easiest way is to obtain the USERCODE is to use Jam™ Files or Jam Byte-Code Files, especially for embedded systems that already implement a Jam Player. The Jam language provides an easy interface to the JTAG port.

Refer to the device family data sheets for information on which devices support the USERCODE instruction.

Related Solutions


Feedback

 Rate This Page
     This solution answers my question:
Strongly Disagree
   
Strongly Agree
 
  1 2 3 4 5  
     This solution was easy to find:
Strongly Disagree
   
Strongly Agree
 
  1 2 3 4 5  

    Please provide additional feedback to improve support solutions:


Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.

  Please Give Us Feedback