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 13–9. Reserved Keywords (Part 2 of 2)IEEE Std. 1149.1 JTAG State NamesShift-IRExit1-IRPause-IRExit2-IRUpdate-IRJam Reserved State NamesIRSHIFTIREXIT1IRPAUSEIREXIT2IRUPDATEExam<strong>pl</strong>e Jam File that Reads the IDCODEThe following illustrates the flexibility and utility of the Jam STAPL. Theexam<strong>pl</strong>e code 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.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], CAPTURE read_data[0..31];‘CAPTURE IDCODEPRINT “IDCODE:”;FOR i=0 to 31;PRINT read_data[i];NEXT i;EXIT 0;13–44 Altera CorporationCyclone Device <strong>Handbook</strong>, Volume 1 January 2007

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

Saved successfully!

Ooh no, something went wrong!