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: rd10112000_4100
Last Modified: Oct 12, 2002
Product Category: Other
Product Area: N/A
Product Sub-area: N/A

Problem

When programming devices with the JamTM standard test and programming language (STAPL) files, how do I set the security bits?

Solution

Standardized Jam STAPL Files

Setting the security bit during programming is controlled by the DO_SECURE procedure. If this flag is set, then all devices that are being programmed will have their security bits set. If the flag is not set, no devices will have their security bits set. See the following examples of setting the security bit in the command-line players.

    Don't set security
    ==================
    Jam STAPL Player:            jam -aPROGRAM file_name.jam
    Jam STAPL Bytecode Player:   jbi -aPROGRAM file_name.jbc

    Set security
    ============
    Jam STAPL Player:            jam -aPROGRAM -dDO_SECURE=1 file_name.jam
    Jam STAPL Bytecode Player:   jbi -aPROGRAM -dDO_SECURE=1 file_name.jbc

Pre-Standardized Jam1.1 Files

Setting the security bit during programming is controlled by two initialization variables: DO_SECURE and DO_SECURE_ALL. If neither variable is set, the security bits will not be set. If the DO_SECURE_ALL flag is set, then all devices that are being programmed will have their security bits set; additionally, if the DO_SECURE flag is set, the devices will have their security bit set as specified in design entry. See the following examples of setting the security bit in the command-line players.

    Don't set security
    ==================
    Jam STAPL Player:            jam  -dDO_PROGRAM=1 file_name.jam
    Jam STAPL Bytecode Player:   jbi -dDO_PROGRAM=1 file_name.jbc

    Set security
    ============
    Jam STAPL Player:            jam  -dDO_PROGRAM=1 -dDO_SECURE_ALL=1 file_name.jam
    Jam STAPL Bytecode Player:   jbi -dDO_PROGRAM=1 -dDO_SECURE_ALL=1 file_name.jbc

    Set security as set in the original design files
    ================================================
    Jam STAPL Player:            jam  -dDO_PROGRAM=1 -dDO_SECURE=1 file_name.jam
    Jam STAPL Bytecode Player:   jbi -dDO_PROGRAM=1 -dDO_SECURE=1 file_name.jbc


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