com.cmpware.cmp.models
Class XtensaEX

java.lang.Object
  extended by com.cmpware.cmp.Memory
      extended by com.cmpware.cmp.Processor
          extended by com.cmpware.tools.AutoModel
              extended by com.cmpware.cmp.models.Xtensa
                  extended by com.cmpware.cmp.models.XtensaEX
All Implemented Interfaces:
ReadWriteInterface

public class XtensaEX
extends Xtensa

This is an AutoModel implementation of the Xtensa processor with an extension. It is used to demonstrate how to extend the Xtensa simulation model.

Copyright (c) 2006, 2007 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Nested Class Summary
 
Nested classes/interfaces inherited from class com.cmpware.cmp.models.Xtensa
Xtensa.SREG
 
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.cmp.models.Xtensa
all24, ar, as, at, extui, f_all24, f_b, f_b16_17, f_b16_18, f_b18_19, f_b19, f_b8, f_b8_9, f_bHi, f_imm12, f_imm12Hi, f_imm16, f_imm8, f_mask, f_nall16, f_nimm6Hi, f_nop0, f_nr, f_nrimm, f_nrop, f_ns, f_nt, f_ntimm, f_ntimm7Hi, f_offset, f_op0, f_op1, f_op1Hi, f_op2, f_op2Hi, f_r, f_rimm, f_rop, f_ropHi, f_s, f_sHi, f_simm, f_simm4, f_simm5Hi, f_sop, f_sr, f_t, f_timm, f_timm5Hi, f_top, i18, imm8, nrsi4, nrst, nsi6, nsi7, nts, ntsi4, rs, rsi5, rst, rt, rti5, rtsi4, s, sbi8, si12, si5, sri4i8, sti8, ti12, ti16, ts, tsi8, tsr
 
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
XtensaEX()
          The constructor
 
Method Summary
static void main(java.lang.String[] args)
          This enables the stand-alone assembler and disassembler.
 
Methods inherited from class com.cmpware.cmp.models.Xtensa
all24, nall16, nop, op, op, op, postExecute, preExecute, reset
 
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.Processor
branch, branchNoDelay, defineBranchDelay, defineBreakpoint, defineInstructionSize, defineName, defineNoop, defineOpcodeNames, defineRegisterNames, defineRegisters, defineSpecialRegisterNames, defineSpecialRegisters, get, getBreakpoint, getBreakpointData, getBreakpoints, getCycleCount, getDebugRegisters, getElf, getIdlePower, getInstructionMix, getInstructionSize, getName, getNoop, getOpcodeNames, getRegister, getRegisterNames, getRegisters, getRunningPower, getSpecialRegister, getSpecialRegisterNames, getSpecialRegisters, getStallCount, isBreakpoint, isStalled, load, postLoad, removeAllBreakpoints, removeBreakpoint, setBreakpoint, setIdlePower, setRegister, setRunningPower, setSpecialRegister, stall, statistics, step
 
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

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

XtensaEX

public XtensaEX()
The constructor

Method Detail

main

public static void main(java.lang.String[] args)
This enables the stand-alone assembler and disassembler. The command line should be either: java XtensaEX -dasm or java XtensaEX -asm

Parameters:
args - the command line arguments.