|
||||||||||
| 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.cmp.models.MicroBlaze_old
public class MicroBlaze_old
This implements the Xilinx Microblaze according to the specification: "MicroBlaze Processor Reference Guide", Embedded Development Kit EDK 6.3.i (UG081 August 24, 2004)
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static int |
BE
|
static int |
BIP
|
static int |
C
|
static java.lang.String |
copyright
Copyright string |
static int |
DCE
|
static int |
DZ
|
static int |
EAR
|
static int |
EE
|
static int |
EIP
|
static int |
ESR
|
static int |
FSL
|
static int |
ICE
|
static int |
IE
|
static int |
MSR
|
static int |
PC
|
| Fields inherited from class com.cmpware.cmp.Processor |
|---|
bkpt, branchAddr, branchDelay, breakpointHit, currentBranchDelay, currentInstr, currentInstrCode, cycleCount, elf, idlePower, iMix, instructionSize, name, noop, prevInstr, prevInstrCode, r, runningPower, sr, stall, stallCount |
| Fields inherited from class com.cmpware.cmp.Memory |
|---|
BIG, LITTLE |
| Constructor Summary | |
|---|---|
MicroBlaze_old()
The constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
dasm(byte[] instr)
This method disassembles an instruction. |
int |
decode(int instr)
A unique code identifying the instruction is returned by this method. |
void |
execute(int instr)
This method is called after the fetch() and decode() and represents the execution phase of the instruction. |
int |
getPC()
This method returns the current Program Counter. |
void |
reset()
This method resets the MicroBlaze processor. |
void |
setPC(int pc)
This method sets the current Program Counter. |
| 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 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
| Constructor Detail |
|---|
public MicroBlaze_old()
| Method Detail |
|---|
public int decode(int instr)
throws IllegalOpcodeException
Processor
decode in class Processorinstr - The instruction to be decoded.
IllegalOpcodeException - if an illegal opcode
is encountered.
public void execute(int instr)
throws MemoryAccessException,
IllegalRegisterException
Processor
execute in class Processorinstr - The instruction to be executed.
MemoryAccessException - A Memory Access
Exception is thrown is an illegal memory
access is attempted.
IllegalRegisterException - if an attempt is made
to access a register illegally.public int getPC()
Processor
getPC in class Processorpublic void setPC(int pc)
Processor
setPC in class Processorpublic java.lang.String dasm(byte[] instr)
Processor
dasm in class Processorinstr - The instruction to be disassembled.
public void reset()
reset in class Processor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||