![](/images/new-backgrounds/1210773/21077397x1.webp)
R
Chapter 6
Input and Output Ports
The PicoBlaze™ microcontroller supports up to 256 input ports and 256 output ports that can also be combined to create input/output ports. The interface signals from Figure
•The PORT_ID[7:0] output port presents the port identifier number or port address for both INPUT and OUTPUT operations.
•The IN_PORT[7:0] input port captures input data during INPUT operations.
•The OUT_PORT[7:0] output port presents output data during OUTPUT operations.
•The READ_STROBE output is asserted High during the second cycle of the
•The WRITE_STROBE output is asserted High during the second cycle of the
In timing critical designs, set timing constraints for the PORT_ID and data paths allowing two clock cycles. Only the read and write strobes need to be constrained to a single clock cycle. For maximum performance and to simplify timing constraints, insert a pipeline register where possible, as described in the following sections.
PORT_ID Port
The
INPUT and OUTPUT operations support both direct and indirect addressing. The port address is supplied as either as an
Adding external peripherals to the PicoBlaze microcontroller is relatively straightforward. The only challenge is decoding the PORT_ID value using the minimum required logic for the application. The decoding challenge depends on the number of input, output, or bidirectional ports, as described in Table
PicoBlaze | www.xilinx.com | 49 |
UG129 (v1.1.2) June 24, 2008