R

Appendix A: Related Materials and References

 

Appendix B: Example Program Templates

 

KCPSM3 Syntax

91

pBlazIDE Syntax

92

Appendix C: PicoBlaze Instruction Set and Event Reference

ADD sX, Operand —Add Operand to Register sX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 ADDCY sX, Operand —Add Operand to Register sX with Carry . . . . . . . . . . . . . 94 AND sX, Operand — Logical Bitwise AND Register sX with Operand. . . . . . . . 95 CALL [Condition,] Address — Call Subroutine at Specified Address. . . . . . . . . 96 COMPARE sX, Operand — Compare Operand with Register sX. . . . . . . . . . . . . . 98 DISABLE INTERRUPT — Disable External Interrupt Input. . . . . . . . . . . . . . . . . . 99 ENABLE INTERRUPT — Enable External Interrupt Input . . . . . . . . . . . . . . . . . . . 99 FETCH sX, Operand — Read Scratchpad RAM Location to Register sX . . . . . . 100 INPUT sX, Operand — Set PORT_ID to Operand, Read value on IN_PORT . 101 INTERRUPT Event, When Enabled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 JUMP [Condition,] Address — Jump to Specified Address . . . . . . . . . . . . . . . . . . 103 LOAD sX, Operand — Load Register sX with Operand. . . . . . . . . . . . . . . . . . . . . . 104 OR sX, Operand — Logical Bitwise OR Register sX with Operand . . . . . . . . . . 105 OUTPUT sX, Operand — Write Register sX Value to OUT_PORT . . . . . . . . . . . 106 RESET Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 RETURN [Condition] — Return from Subroutine Call . . . . . . . . . . . . . . . . . . . . . . 108 RETURNI [ENABLE/DISABLE] — Return from Interrupt Service Routine . . 109 RL sX — Rotate Left Register sX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 RR sX — Rotate Right Register sX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 SL[ 0 1 X A ] sX — Shift Left Register sX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 SR[ 0 1 X A ] sX — Shift Right Register sX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 STORE sX, Operand — Write Register sX Value to Scratchpad RAM . . . . . . . . 114 SUB sX, Operand —Subtract Operand from Register sX. . . . . . . . . . . . . . . . . . . . . 115 SUBCY sX, Operand —Subtract Operand from Register sX with Borrow . . . . 116 TEST sX, Operand — Test Bit Location in Register sX, Generate Odd Parity . 118 XOR sX, Operand — Logical Bitwise XOR Register sX with Operand. . . . . . . . 120

Appendix D: Instruction Codes

Appendix E: Register and Scratchpad RAM Planning Worksheets

Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Scratchpad RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

10

www.xilinx.com

PicoBlaze 8-bit Embedded Microcontroller

 

 

UG129 (v1.1.2) June 24, 2008

Page 10
Image 10
Xilinx UG129 manual Appendix C PicoBlaze Instruction Set and Event Reference