12.07.2015 Views

Configuration Handbook - Kamami.pl

Configuration Handbook - Kamami.pl

Configuration Handbook - Kamami.pl

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Configuration</strong> SchemesTable 11–14. Reserved Keywords (Part 2 of 2)IEEE Std. 1149.1 JTAG State NamesCapture-IRShift-IRExit1-IRPause-IRExit2-IRUpdate-IRJam Reserved State NamesIRCAPTUREIRSHIFTIREXIT1IRPAUSEIREXIT2IRUPDATEExam<strong>pl</strong>e Jam File that Reads the IDCODEFigure 11–27 illustrates the flexibility and utility of the Jam STAPL. Theexam<strong>pl</strong>e reads the IDCODE out of a single device in a JTAG chain.1 The array variable, I_IDCODE, is initialized with the IDCODEinstruction bits ordered the LSB first (on the left) to mostsignificant bit (MSB) (on the right). This order is importantbecause the array field in the IRSCAN instruction is alwaysinterpreted, and sent, MSB to LSB.Figure 11–27. Exam<strong>pl</strong>e Jam File Reading IDCODEBOOLEAN read_data[32];BOOLEAN I_IDCODE[10] = BIN 1001101000; ‘assumedBOOLEAN ONES_DATA[32] = HEX FFFFFFFF;INTEGER i;‘Set up stop state for IRSCANIRSTOP IRPAUSE;‘Initialize deviceSTATE RESET;IRSCAN 10, I_IDCODE[0..9]; ‘LOAD IDCODE INSTRUCTIONSTATE IDLE;WAIT 5 USEC, 3 CYCLES;DRSCAN 32, ONES_DATA[0..31], CAPTUREread_data[0..31];‘CAPTURE IDCODEPRINT “IDCODE:”;FOR i=0 to 31;PRINT read_data[i];NEXT i;EXIT 0;11–50 Altera CorporationStratix Device <strong>Handbook</strong>, Volume 2 July 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!