Specifications
126 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 7: Library Generator
R
XMDSTUB Peripherals (MicroBlaze Specific)
These are peripherals that are used specifically for debug with the xmdstub program (For 
more information about the debug program xmdstub, refer to Chapter 13, “Xilinx 
Microprocessor Debugger (XMD)”). The attribute XMDSTUB_PERIPHERAL is used for 
denoting the debug peripheral instance. LibGen uses this attribute to generate the debug 
program xmdstub.
STDIN and STDOUT Peripherals
Peripherals that handle I/O need drivers to access data. Two files inbyte.c and 
outbyte.c are automatically generated with calls to the driver I/O functions for STDIN 
and STDOUT peripherals. The driver I/O functions are specified in the MDD as the 
parameters INBYTE and OUTBYTE. These inbyte and outbyte functions are used by C 
library functions such as scanf and printf. The peripheral instance should be specified as 
STDIN or STDOUT in the MSS file. The STDIN/STDOUT parameters are attributes of the 
standalone OS. The inbyte and outbyte functions are generated only when the STDIN and 
STDOUT attributes are specified in MSS file for the standalone OS. Each OS is responsible 
for handling the STDIN/STDOUT functionality.










