Type
usageat the command line for online help.
- IAS reads the commands in the file
.iasrcin the current directory at startup.
- With Tcl, you can abbreviate commands to their unique prefixes (Tcl feature). IAS also supports other Tcl features, such as defining Tcl variables, command history, and so on.
- You can input numerical values either as decimals (default) or as hex numbers if they are prefixed by 0x, or as octal numbers if they are prefixed with 0.
- To stop a long-running simulation, press Control-C and return IAS to the prompt. To terminate IAS, press Control-C again.
bmemfile filename
Loads a binary memory file into the simulator in.binitfile format. For details on the.binitfile format, see the chapter, "Test Environment and Reset Code," in picoJavaTM-II Verification Guide.
configure
Configures the core for the I-Cache and D-Cache size and the FPUpresentorabsentoption. For example:configure icache [0|1|2|4|8|16]
configure dcache [0|1|2|4|8|16]
configure fpu [present|absent]
cont
Continues execution of a program from the currentPC.
dis
Disassemble instructions, starting from the currentPC.
dsTraptrapName len
Disassembles a trap handler up to len bytes.
disAsmAddraddress(%h)
Disassembles at address.
disAsmclassName methodName
Looks into picoJavaTM memory and looks for className and methodName; ifdisAsmfinds them, it disassembles them. IAS is aware of some rules for the format of the class data structure, such as where it is stored in memory.
dsaddr len
Disassembles instructions from addr to addr + len.
dumpClass[className]
Dumps the contents of className, including the constant pool, methods, attributes, and so on.With no arguments,
dumpClassdumps all the classes that have been loaded.
dumpDcache[line [count]]
dumpIcache[line [count]]
Performs a raw dump of the contents of the specified cache lines. With no arguments, successivedumpDcacheordumpIcachecommands print the contents of successive lines.
dumpMethodclassName methodName
Dumps methodName in className.
dumpReg[regName]
Prints the contents of regName. With no arguments,dumpRegprints the contents of all the registers. (For the official names of the registers, refer to their dumps.)
dumpStack[depth]
Dumps the stack contents for depth words from the top of the stack. The default depth is 8.
dumpStats[filename]
Shows the statistics about the program IAS is running, which it maintains.
itrace[on|off|level]
Sets the tracing level (0 - 9); on = 3.
loadClassclass1 class2 ...
Loads class files into memory. TheloadClasscommand also loads class_name.initand class_name.binitfiles into memory if they are present.
loadCachepath
Loads the contents of D$ and I$ RAMs from the files in the specified path.
loadRT
Loads a standard subset of runtime classes.
loadElfobjFile1 objFile2...
Loads ELF files.
memfilefilename
Loads a memory file in.initfile format. See picoJava-IITM Verification Guide for details.
memPeekaddress
Looks through the caches and displays the contents of a word at address.
memPeekDirectaddress
Ignores the caches and displays the contents of a word in main memory at address.
memPokeaddress data
Same asmemPokeDirect.
memPokeDirectaddress data
Writes data into memory at address, bypassing caches.
memORaddress data
OR's the data value with the data value at the memory location and writes it back.
readMemoryaddress length
Looks up the caches and displays the program memory.
readMemoryDirectaddress length
Ignores the caches and displays main memory contents.
reset
Resets the processor.
restartfilename
Restores the state of the simulator from a checkpoint file that was saved previously.
run[numOfSteps]
Starts running the program fromPC0 for numOfSteps of instructions. By default, runs till the program halts simulation by writing toEND_ADDRESS.
run2 target_pc
Steps the simulator till it hitstarget_pc. Ifrun2does not hitPC, it may keep running even when program execution is complete. Also,run2is much slower than setting a breakpoint at the address you want to run to because it steps the back-end one instruction at a time whereas the breakpoint functionality is part of the back-end.
s
Single-steps.
scache [on|off]
Signals to the IAS that the stack cache is present or absent. If the stack cache is absent, IAS operates directly on memory for its instructions. In the picoJava-II hardware, however, you cannot switch off the stack cache.
set dumpFilefilename
Redirects output fordump*commands. With no arguments,set dumpFiledumps tostdout.
steps [numOfSteps]
Steps for numOfSteps of instructions. With no arguments, steps for one instruction only.
usage
Outputs online help.
where
Outputs the current register values and disassembles the next instruction.
writeMemoryaddress
Writes a value (number of bytes) into address.
brk list|exec|read|write|enable|disable|ignore ...
Executes breakpoint commands.
intr \[repeat|disable\] \[count\] \[irl\]
Schedules or disables an interrupt.
checkpointfilename
Stores the state of the simulator to filename.
profile createid
Creates a profile.
profile enable|disableid
Enables or disables a profile.
profile freeze|unfreezeid
Freezes or unfreezes a profile.
profile switchid
Switches to a profile.
profile closeid
Closes a profile.
profile printid
Prints a profile.
profile markenter
Marks an entry into a new block in the current profile.
profile markexit
Marks the exit from the topmost block in the current profile.
profile list
Lists the status of all available profiles.