Xilinx UG129 Answering Machine User Manual


 
104 www.xilinx.com PicoBlaze 8-bit Embedded Microcontroller
UG129 (v1.1.2) June 24, 2008
Appendix : PicoBlaze Instruction Set and Event Reference
R
OUTPUT sX, Operand — Write Register sX Value to OUT_PORT,
Set PORT_ID to Operand
The OUTPUT instruction sets the PORT_ID port address to the value specified by either the
register sY or the immediate constant kk. The instruction writes the contents of register sX
to the OUT_PORT output port. FPGA logic captures the output value by decoding the
PORT_ID value and WRITE_STROBE output, as shown in Figure C-7.
Examples
OUTPUT sX, sY ; Write register sX to OUT_PORT, set PORT_ID to the
; contents of sY
OUTPUT sX, kk ; Write register sX to OUT_PORT, set PORT_ID to the
; immediate constant kk
Pseudocode
PORT_ID Å Operand
OUT_PORT Å sX
PC Å PC + 1
Registers/Flags Altered
Registers: PC
Flags: None
Notes
pBlazIDE Equivalent: OUT
The WRITE_STROBE output is asserted during the second CLK cycle of the two-cycle
OUTPUT operation.
Figure C-7: OUTPUT Operation and FPGA Interface Logic
m
EN
D Q
FPGA Logic
n
WRITE_STROBE
OUT_PORT[7:0]
PORT_ID[7:0]
PicoBlaze Microcontroller
8
8
Register sY or
Literal kk
Register sX
UG129_c6_05_052004