|
||||||||||
| 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.MicroBlaze
public class MicroBlaze
This implements the Xilinx Microblaze according to the specification: "MicroBlaze Processor Reference Guide", Embedded Development Kit EDK 9.1.i (UG081 9/15/2006)
Copyright (c) 2004 - 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 int |
a
The local value of the 'a' register index |
protected int |
b
The local value of the 'b' register index |
static int |
BE
|
static int |
BIP
|
static int |
BTR
|
static int |
C
|
static java.lang.String |
copyright
Copyright string |
protected int |
d
The local value of the 'd' register index |
static int |
DCE
|
static int |
DZ
|
static int |
EAR
|
static int |
EE
|
static int |
EIP
|
static int |
ESR
|
static int |
FSL
|
protected int[] |
fslIn
The FSL memory mapped address inputs |
protected int[] |
fslOut
The FSL memory mapped address outputs |
static int |
ICE
|
static int |
IE
|
protected boolean |
immFlag
A flag to indicate that the IMM instruction was just executed |
protected int |
immTmp
A temporary value to hold IMM until the next cycle |
protected AutoModel.Instruction[] |
instructions
|
static int |
MSR
|
static int |
PC
|
protected int |
simm32
The 32-bit sign extended imm16 field |
| 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 | |
|---|---|
MicroBlaze()
The constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
This enables the stand-alone assembler and disassembler. |
protected static AutoModel.Decode |
op(int a)
This is just a simple helper function used in decoding basic TypeB instructions. |
protected static AutoModel.Decode |
op(int a,
int b)
This is just a simple helper function used in decoding basic Type A instructions. |
protected static AutoModel.Decode |
opGet(int a,
int b)
This is just a simple helper function used in decoding get instructions. |
protected static AutoModel.Decode |
opPut(int a,
int b)
This is just a simple helper function used in decoding put instructions. |
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 |
setFslIn(int i,
int mmioAddr)
This method is used to set the FSL inputs. |
void |
setFslOut(int i,
int mmioAddr)
This method is used to set the FSL outputs. |
| 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
public static final int PC
public static final int MSR
public static final int EAR
public static final int ESR
public static final int BTR
public static final int BE
public static final int IE
public static final int C
public static final int BIP
public static final int FSL
public static final int ICE
public static final int DZ
public static final int DCE
public static final int EE
public static final int EIP
protected int a
protected int b
protected int d
protected int simm32
protected int immTmp
protected boolean immFlag
protected int[] fslIn
protected int[] fslOut
protected final AutoModel.Instruction[] instructions
| Constructor Detail |
|---|
public MicroBlaze()
| 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
public void setFslIn(int i,
int mmioAddr)
i - The FSL input number (0 - 7)mmioAddr - the Memory Mapped IO address.
public void setFslOut(int i,
int mmioAddr)
i - The FSL output number (0 - 7)mmioAddr - the Memory Mapped IO address.protected static AutoModel.Decode op(int a)
a - The code for the opcode field.
protected static AutoModel.Decode op(int a,
int b)
a - The code for the primary opcode field.b - The code for the secondary opcode field.
protected static AutoModel.Decode opGet(int a,
int b)
a - The code for the Ra opcode field.b - The code for the secondary opcode field.
protected static AutoModel.Decode opPut(int a,
int b)
a - The code for the Rd opcode field.b - The code for the secondary opcode field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||