SourcePoint AMD Help
Table of Contents
- Using Help
- Contacting ASSET InterTech
- Introduction to SourcePoint
- SourcePoint Environment
- SourcePoint Overview
- SourcePoint Parent Window Introduction
- SourcePoint Icon Toolbar
- File Menu
- File Menu - Project Menu Item
- File Menu - Layout Menu Item
- File Menu - Program Menu Item
- File Menu - Macro Menu Item
- File Menu - Print Menu Items
- File Menu - Update Emulator Flash Menu Item
- File Menu - Program Target Device Menu Item
- File Menu - Other Menu Items
- Edit Menu
- View Menu
- Processor Menu
- Options Menu
- Options Menu - Preferences Menu Item
- Options Menu - Target Configuration Menu Item
- Options Menu - Load Target Configuration File Menu Item
- Options Menu - Save Target Configuration File Menu Item
- Options Menu - Emulator Configuration Menu Item
- Options Menu - Emulator Connection Menu Item
- Options Menu - Emulator Reset Menu Item
- Options Menu - Confidence Tests Menu Item
- Window Menu
- Help Menu
- How To -- SourcePoint Environment
- Add Emulator Connections
- Configure Custom Macro Icons
- Configure Autoloading Macros
- Display Text on the Icon Toolbar
- Edit Icon Groups to Customize Your Toolbars
- Modify a Defined Memory Region
- Refresh SourcePoint Windows
- Save a Program
- Start SourcePoint With Command Line Arguments
- Use the New Project Wizard
- Verify Emulator Network Connections
- SourcePoint Overview
- Breakpoints Window
- Breakpoints Window Overview
- How To - Breakpoints
- Code Window
- Command Window
- Command Window Overview
- Confidence Tests Window
- Confidence Tests Window Overview
- Descriptors Tables Window
- Descriptors Tables Window Overview
- How To - Descriptors
- Devices Window
- Devices Window Overview
- How To - Devices Window
- Log Window
- Log Window Overview
- Memory Window
- Memory Window Overview
- How To - Memory Window
- Page Translation Window
- Page Translation Windows Overview
- PCI Devices Window
- PCI Devices Window Overview
- How To - PCI Devices Window
- Registers Window
- Registers Window Overview
- How To - Registers
- Symbols Windows
- Symbols Window Overview
- How To - Symbols Window
- Viewpoint Window
- Viewpoint Window Overview
- Watch Window
- Watch Window Overview
- How To - Watch Window
- Technical Notes
- SourcePoint Command Language
- Overview
- Commands and Control Variables
- aadump
- abort
- abs
- acos
- advanced
- asin
- asm
- asmmode
- atan
- atan2
- autoconfigure
- base
- bell (beep)
- bits
- break
- breakall
- cachememory
- cause
- Character Functions
- clock
- continue
- cos
- cpubreak commands
- cpuid_eax
- cpuid_ebx
- cpuid_ecx
- cpuid_edx
- createprocess
- ctime
- cwd
- dbgbreak commands
- defaultpath
- #define
- define
- definemacro
- deviceconfigure
- devicescan
- disconnect
- displayflag
- do while
- dos
- dport
- drscan
- edit
- editor
- emulatorstate
- encrypt
- error
- eval
- evalprogramsymbol
- execution point ($)
- exit
- exp
- fc
- fclose
- feof
- fgetc
- fgets
- first_jtag_device
- flist
- flush
- fopen
- for
- forward
- fprintf
- fputc
- fputs
- fread
- fseek
- ftell
- fwrite
- getc
- getchar
- getnearestprogramsymbol
- getprogramsymboladdress
- gets
- globalsourcepath
- go
- halt
- help
- homepath
- idcode
- if
- include
- invd
- irscan
- isdebugsymbol
- isem64t
- isprogramsymbol
- isrunning
- issleeping
- issmm
- jtagchain
- jtagconfigure
- jtagdeviceadd
- jtagdeviceclear
- jtagdevices
- jtagscan
- jtagtest
- keys
- last
- last_jtag_device
- left
- license
- linear
- list, nolist
- load
- loadbreakpoints
- loadlayout
- loadproject
- loadtarget
- loadwatches
- log, nolog
- log10
- loge
- logmessage
- macropath
- Memory Access
- messagebox
- mid
- msgclose
- msgdata
- msgdelete
- msgdr
- msgdump
- msgir
- msgopen
- msgreturndatasize
- msgscan
- msr
- num_activeprocessors
- num_all_devices
- num_devices
- num_jtag_chains
- num_jtag_devices
- num_processors
- pause
- physical
- port
- pow
- print cycles
- printf
- proc
- processorcontrol
- processorfamily
- processormode
- processors
- processortype
- projectpath
- putchar
- puts
- rand
- readsetting
- reconnect
- Register Access
- reload
- reloadproject
- remove
- reset
- restart
- return
- right
- runcontroltype
- safemode
- save
- savebreakpoints
- savelayout
- savewatches
- selectdirectory
- selectfile
- shell
- show
- sin
- sizeof
- sleep
- softbreak, softremove, softdisable, softenable
- sprintf
- sqrt
- srand
- step
- stop
- strcat
- strchr
- strcmp
- strcpy
- _strdate
- string [ ] (index into string)
- strlen
- _strlwr
- strncat
- strncmp
- strncpy
- strpos
- strstr
- _strtime
- strtod
- strtol
- strtoul
- _strupr
- swbreak
- switch
- swremove
- tabs
- tan
- tapdatashift
- tapstateset
- targpower
- targstatus
- taskattach
- taskbreak, taskremove, taskdisable, taskenable
- taskend
- taskgetpid
- taskstart
- tck
- time
- #undef
- unload
- unloadproject
- upload
- unlock
- use
- verify
- verifydeviceconfiguration
- verifyjtagconfiguration
- version
- viewpoint
- vpalias
- wait
- wbinvd
- while
- windowrefresh
- wport
- writesetting
- yield
- yieldflag
drscan
Scan the data registers of devices on the JTAG chain.
Syntax
drscan(device, bitCount, readArray [, writeArray])
drscan(device, writeArray)
Where:
device |
is an int4 that specifies the position of the device to access. Device positions are displayed by the devicelist command. |
bitCount |
is an expression that evaluates to the number of bits to scan to or from the data register of the designated device as selected by the current instruction register value. |
readArray |
is a debug array you have defined that is large enough to hold the scanned data register. This array must be equal to or larger than the number of bits specified to scan from the data register. Array elements that are not used are unchanged. |
writeArray |
is a debug array you have defined that holds the value you want to scan into the data register. If this array is smaller than the number of bits to be scanned into the data register, an error occurs. |
Description
Use drscan to read or write the data registers of devices on the JTAG chain. The device specification determines which device in the chain is scanned. All other devices are in bypass.
The instruction current in the instruction register of the specified device determines the data register that is scanned. Use the irscan command to write an instruction to the instruction register.
The bitCount value determines the number of bits that will be scanned. A debug array that will read these scanned bits must contain at least as many bits as are to be scanned. A debug array that will write the scanned bits also must have at least as many bits as the number of bits to be scanned in. The drscan command will only use array types for parameters, you cannot use a signed or unsigned value (e.g., ord8) even though it may contain enough bits.
The drscan command can be used to either read a data register, write a data register, or both read and write a data register. When writing only from a device data register you must use the extra comma ( , ) placeholder to specify the write-array parameter position. The following are acceptable forms for the drscan command:
drscan(0, 1, ReadArray)
drscan(0, 1, , WriteArray)
drscan(0, 1, ReadArray, WriteArray)
Example 1
To write instruction and data to device 0 and ignore return data:
Command input:
irscan(0, 1)
define ord1 a_o1WriteToDeviceArray[0n20] ย ย // big enough to hold 159 bits
drscan(0, 0n159, , a_o1WriteToDeviceArray)
Example 2
To write instruction and data to device 5 and save return data:
Command Input:
irscan(5, 0x10)
define ord1 ReadFromDeviceArray[0n17] ย ย ย ย ย // enough to hold 0x82 bits
define ord1 WriteToDeviceArray[0n17] ย ย ย ย ย ย // filled with 0's to write
drscan(5, 0x82, ReadFromDeviceArray, WriteToDeviceArray)
Example 3
To write instruction and data to device 0 and save return (note that write data is not specified and will default to all 0's):
Command Input:
irscan(5, 2)
define ord4 ReadFromDeviceArray[1] ย ย ย ย ย ย ย ย ย // enough to hold 32 bits
drscan(5, 0x20, ReadFromDeviceArray)
ReadFromDeviceArray[0]
Result:
182C1013
Related Topics