|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.cmp.Memory
com.cmpware.cmp.Processor
com.cmpware.tools.AutoModel
com.cmpware.cmp.models.AutoSimple
public class AutoSimple
This is the 'Simple' processor produced using the AutoModel data-driven interface.
Copyright (c) 2006, 2007 Cmpware, Inc. All Rights Reserved.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.cmpware.tools.AutoModel |
|---|
AutoModel.Asm, AutoModel.Decode, AutoModel.Field, AutoModel.Format, AutoModel.Function, AutoModel.Instruction, AutoModel.Symbol |
| Field Summary | |
|---|---|
protected static byte[] |
BREAKPOINT
The Breakpoint code |
static java.lang.String |
copyright
Copyright string |
protected int |
dest
The index of the destination register (c) |
protected static byte[] |
NOOP
The NOOP instruction |
protected int |
ra
The value in the 'a' register |
protected int |
rb
The value in the 'b' register |
protected int |
rc
The value in the 'c' register |
protected int |
simm12
The sign-extended 12-bit immediate data |
protected int |
simm8
The sign-extended 8-bit immediate data |
| Fields inherited from class com.cmpware.tools.AutoModel |
|---|
currentInstr, currentInstrType, instructionSizes, TRACE |
| Fields inherited from class com.cmpware.cmp.Processor |
|---|
bkpt, branchAddr, branchDelay, breakpointHit, currentBranchDelay, currentInstrCode, cycleCount, elf, idlePower, iMix, instructionSize, name, noop, opcodeName, pc, prevInstr, prevInstrCode, r, regName, runningPower, sr, sregName, stall, stallCount |
| Fields inherited from class com.cmpware.cmp.Memory |
|---|
BIG, LITTLE |
| Constructor Summary | |
|---|---|
AutoSimple()
The constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
This enables the stand-alone assembler and disassembler. |
void |
postExecute(int instr)
This method is called immediately after execution and may be overloaded to do things like save instruction field values to locals. |
void |
preExecute(int instr)
This method is called immediately before execution and may be overloaded to do things like save instruction field values to locals. |
void |
reset()
This method resets the processor. |
| Methods inherited from class com.cmpware.tools.AutoModel |
|---|
advancePC, asmFixup, bitsToBytes, concatenate, dasm, dasm, dasmFixup, decode, defineInstructions, execute, fetch, fetch, getInstruction, getInstructions, getInstructionSizes, getPC, getSymbolNames, instrMatch, main, setPC, signExtend, signExtend, toHexString, toHexString, toLong, traceOff, traceOn |
| Methods inherited from class com.cmpware.cmp.Memory |
|---|
addInput, addMemory, addOutput, getEndian, getLocalMemory, getMemoryManager, getMmio, getProfile, hexDump, hexDump, isReadable, isValidAddress, isWriteable, profile, read, read, read16, read24, read32, read64, removeMemory, resize, setEndian, size, toInt, toShort, write, write, write16, write24, write32, write64 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
protected int ra
protected int rb
protected int rc
protected int dest
protected int simm8
protected int simm12
protected static final byte[] NOOP
protected static final byte[] BREAKPOINT
| Constructor Detail |
|---|
public AutoSimple()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - the command line arguments.public void reset()
reset in class Processorpublic void preExecute(int instr)
AutoModel
preExecute in class AutoModelinstr - The instructionpublic void postExecute(int instr)
AutoModel
postExecute in class AutoModelinstr - The instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||