|
||||||||||
| 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.LatticeMicro32
public class LatticeMicro32
This is an AutoModel implementation of the LatticeMicro32 processor.
Copyright (c) 2006, 2007 Cmpware, Inc. All Rights Reserved.
| Nested Class Summary | |
|---|---|
(package private) static class |
LatticeMicro32.REG
This class defines some Register indicies |
(package private) static class |
LatticeMicro32.SREG
This class defines the Special Register indicies |
| 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 | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| 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 | |
|---|---|
LatticeMicro32()
The constructor |
|
| Method Summary | |
|---|---|
void |
dasmFixup(long instrData,
AutoModel.Instruction instr)
This method can be overloaded to fix up any problems or to do any clean-up in the disassembler. |
int |
getPC()
This method returns the current Program Counter. |
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. |
void |
setPC(int pc)
This method sets the current Program Counter. |
| Methods inherited from class com.cmpware.tools.AutoModel |
|---|
advancePC, asmFixup, bitsToBytes, concatenate, dasm, dasm, decode, defineInstructions, execute, fetch, fetch, getInstruction, getInstructions, getInstructionSizes, getSymbolNames, instrMatch, main, 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
| Constructor Detail |
|---|
public LatticeMicro32()
| 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 instructionpublic void setPC(int pc)
Processor
setPC in class AutoModelpublic int getPC()
Processor
getPC in class AutoModel
public void dasmFixup(long instrData,
AutoModel.Instruction instr)
AutoModel
dasmFixup in class AutoModelinstrData - The instruction to be diassembled.instr - The description of the instruction to
be diassembled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||