UG081 v6.0 June 1
MicroBlaze Processor Reference Guide
 MicroBlaze Processor Reference Guide
 Date Version Revision
MicroBlaze Processor Reference Guide UG081 v6.0 June 1
 UG081 v6.0 June 1
 Preface About This Guide
 MicroBlaze Application Binary Interface
 Additional Resources
Manual Contents
 Typographical
Conventions
 Conventions Meaning or Use Example
Online Document
 UG081 v6.0 June 1
 Overview
Features
 Version Status Deprecated Active
MicroBlaze Architecture
 Instructions
Data Types and Endianness
 ESR
MSR
EAR
FSR
 Op1 if cond else op2
 MicroBlaze Processor Reference Guide
 MicroBlaze Processor Reference Guide UG081 v6.0 June 1
 MicroBlaze Processor Reference Guide
 MicroBlaze Processor Reference Guide UG081 v6.0 June 1
 Registers
 Special Purpose Registers
General Purpose Registers
Program Counter PC
Registers
 Machine Status Register MSR
8Program Counter PC Bits Name Description Reset Value
9Machine Status Register MSR Bits Name Description
PVR
 DCE
EIP
ICE
FSL
 Exception Address Register EAR
Buslock Enable
 ESS
Exception Status Register ESR
 Source/Destination Register
Branch Target Register BTR
 Processor Version Register PVR
Floating Point Status Register FSR
 Cusebarrel
CFG
DIV
Cusediv
 OP0EXEC
Cdebugenabled
Unexec
Cunalignedexception
 Cicachelinelen
Icll
Icbs
Ccachebytesize
 Pipeline Architecture
Cresetmsr
Arch
Rstmsr
 Memory Architecture
Delay Slots
Branches
 Reset, Interrupts, Exceptions, and Break
Reset, Interrupts, Exceptions, and Break
 Hardware Exceptions
Reset
Equivalent Pseudocode
Exception Causes
 Hardware Breaks
Breaks
 User Vector Exception
Interrupt
Software Breaks
Latency
 Overview
Instruction Cache
General Instruction Cache Functionality
Instruction Cache
 Instruction Cache Operation
Data Cache
Instruction Cache Software Support
MSR Bit
 Data Cache Operation
General Data Cache Functionality
Data Cache
 Data Cache Software Support
Floating Point Unit FPU
WDC Instruction
 Rounding
Format
Operations
Arithmetic
 Fast Simplex Link FSL
Hardware Acceleration using FSL
Exceptions
Comparison
 Debug Overview
Debug and Trace
Trace Overview
 MicroBlaze Architecture
 Ilmb
MicroBlaze I/O Overview
Ixcl
Dxcl
 Dmrnw Dopb
MicroBlaze Signal Interface Description
 DAS Dlmb
Imrnw Iopb
IAS Ilmb
Mfsl
 Ixclm
On-Chip Peripheral Bus OPB Interface Description
Dxcls
Dxclm
 ByteEnable03
LMB Signal Interface
Local Memory Bus LMB Interface Description
Addr031
 ReadStrobe
DataWrite031
WriteStrobe
DataRead031
 Generic Write Operation
LMB Transactions
Generic Read Operation
 Single Cycle Back-to-Back Read Operation
Back-to-Back Write Operation
Back-to-Back Mixed Read/Write Operation
BE0 BE1 BE2
 RD1623 RD2431
Read and Write Data Steering
RD07 RD815 RD1623 RD2431
 Slave FSL Signal Interface
Master FSL Signal Interface
Fast Simplex Link FSL Interface Description
 FSL Transactions
Xilinx CacheLink XCL Interface Description
FSL BUS Write Operation
FSL BUS Read Operation
 CacheLink Signal Interface
 CacheLink Transactions
 Data Cache Read Miss
Instruction Cache Read Miss
Data Cache Write
 Trace Interface Description
Debug Interface Description
Debug Interface Description
MDM
 MicroBlaze Processor Reference Guide
 11 Type of Trace Exception TraceExceptionKind Description
MicroBlaze Core Configurability
 Values Assigned Type
 Cusemsrinstr
Cusepcmpinstr
Pcmpne Cunalignedexception
Cnumberofrdaddrbrk
 Cicacheusefsl
Ffff
Cdcacheusefsl
 Data Types
Scope
 MicroBlaze Application Binary Interface
Register Usage Conventions
2Register usage conventions Type Enforcement Purpose
 Stack Convention
Stack Convention
 High Memory Low Memory Func
 Memory Model
 Interrupt and Exception Handling
 Summary
1Symbol notation Meaning
Notation
 Type a
Formats
Type B
Opcode Destination Reg Source Reg a Immediate Value
 Description
Add
Registers Altered
 Addi
 RD, rA, rB
Registers Altered Latency
 Logial and with Immediate Andi RD, rA, IMM
Andi
 Logical and not
Andn
Andn RD, rA, rB
 Logical and not with Immediate Andni RD, rA, IMM
Andni
 Branch if Equal Beq
Beq
Beqd
 Branch Immediate if Equal Beqi
Beqi
Beqid
 Branch if Greater or Equal Bge
Bge
Bged
 Branch Immediate if Greater or Equal Bgei
Bgei
Bgeid
 Branch if Greater Than Bgt
Bgt
Bgtd
 Branch Immediate if Greater Than Bgti
Bgti
Bgtid
 Branch if Less or Equal Ble
Ble
Bled
 Branch Immediate if Less or Equal Blei
Blei
Bleid
 Branch if Less Than Blt
Blt
 Blti
Blti
Bltid
 Branch if Not Equal Bne
Bne
Bned
 Branch Immediate if Not Equal Bnei
Bnei
Bneid
 Bra
Instructions Unconditional Branch
Brd
Brad
 MicroBlaze Instruction Set Architecture
 Bri
 MicroBlaze Instruction Set Architecture
 Msrbip
Instructions BrkBreak RD, rB
 Break Immediate Brki RD, IMM
Brki
 Bsra
Instructions Barrel Shift Bsrl
Bsll
 Barrel Shift Immediate Bsrli
Bsi
Bsrai
Bslli
 Integer Compare Cmp
Cmp
Cmpu
 Floating Point Arithmetic Add Fadd
Fadd
Esrec FSRIO,UF,OF,DO
 Reverse Floating Point Arithmetic Subtraction
Frsub
Frsub RD, rA, rB Reverse subtract
 Floating Point Arithmetic Multiplication Fmul
Fmul
 Floating Point Arithmetic Division
Fdiv
Fdiv RD, rA, rB Divide
Esrec FSRIO,UF,OF,DO,DZ
 Fcmp
 Esrec FSRIO,DO
 Get from fsl interface
Get
Nget
Cget
 Integer Divide Idiv
Idiv
Idivu
 Immediate ImmIMM
Imm
 Load Byte Unsigned
Lbu
Lbu RD, rA, rB
 Load Byte Unsigned Immediate Lbui RD, rA, IMM
Lbui
 Lhu RD, rA, rB
Lhu
 Load Halfword Unsigned Immediate Lhui RD, rA, IMM
Lhui
 Load Word
 Load Word Immediate Lwi RD, rA, IMM
Lwi
 Mfs RD, rS
Mfs
 Read MSR and clear bits in MSR Msrclr RD, Imm
Msrclr
 Msrset RD, Imm
Msrset
 Move To Special Purpose Register Mts RS, rA
Mts
 Instructions Mul Multiply RD, rA, rB
 Multiply Immediate Muli RD, rA, IMM
Muli
 Logical or
 Logical or with Immediate Ori RD, rA, IMM
Ori
 Pattern Compare Byte Find Pcmpbf
Pcmpbf
 Pattern Compare Equal Pcmpeq
Pcmpeq
 Pattern Compare Not Equal Pcmpne
Pcmpne
 Put to fsl interface
Put
Nput
Cput
 Arithmetic Reverse Subtract Rsub
Rsub
Rsubc
Rsubk
 Arithmetic Reverse Subtract Immediate Rsubi
Rsubi
Rsubic
Rsubik
 Return from Break
Rtbd
Rtbd RA, IMM
 Return from Interrupt Rtid RA, IMM
Rtid
Msrie
 Return from Exception Rted RA, IMM
Rted
Msree Msreip ESR
 Return from Subroutine Rtsd RA, IMM
Rtsd
 None
 Store Byte Immediate Sbi RD, rA, IMM
Sbi
 Sext16 RD, rA
Sext16
 Sign Extend Byte
Sext8
Sext8 RD, rA
 Instructions Store Halfword RD, rA, rB
 Store Halfword Immediate Shi RD, rA, IMM
Shi
 Sra RD, rA
Sra
 Shift Right with Carry Src RD, rA
Src
 Shift Right Logical
Srl
Srl RD, rA
 Addr ← rA + rB Addr3031 ← MemAddr ← rD031
 Store Word Immediate Swi RD, rA, IMM
Register Altered
 Write to Data Cache
Wdc
 Wic
 Logical Exclusive or Xor RD, rA, rB
Xor
 Logical Exclusive or with Immediate
Xori
Xori RA, rD, IMM
 148