0% found this document useful (0 votes)
170 views1 page

Microblaze C Programming Guide

This document provides a cheat sheet for Microblaze C programming including initialization of the platform library and GPIO, UART functions for printing and input/output, and Tcl commands for updating the bitstream and debugging programs. It lists the key libraries and functions for initializing the platform and GPIO, printing output with UART, and reading/writing discrete GPIO pins.

Uploaded by

amreshjha22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views1 page

Microblaze C Programming Guide

This document provides a cheat sheet for Microblaze C programming including initialization of the platform library and GPIO, UART functions for printing and input/output, and Tcl commands for updating the bitstream and debugging programs. It lists the key libraries and functions for initializing the platform and GPIO, printing output with UART, and reading/writing discrete GPIO pins.

Uploaded by

amreshjha22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Microblaze C Cheat Sheet General Purpose I/O Tcl Console Commands

Get TCL commands source


Initialization/Platform ipcore dir/microblaze mcs setup.tcl
Platform library "platform.h" Update bitstream microblaze mcs data2mem
Parameters library "xparameters.h" workspace/sdk-program /
Initialize platform init platform()
Inputoutput library "xiomodule.h" Debug/sdk-program.elf
Clean up platform cleanup platform()
Input and output type. XIOModule gpiOrGpo 2013 Sren Nrgaard http://github.com/soerenbnoergaard.
UART Initialize GPIO XIOModule Initialize(&gpiOrGpo, Public domain.
UART I/O library <stdio.h> XPAR IOMODULE 0 DEVICE ID)
Print string print(s ) Start GPIO XIOModule Start(&gpiOrGpo )
Print number as hex putnum(n ) Read from GPI XIOModule DiscreteRead(&gpi,
Small printf function. xil printf("format ", arg 1 ,...) gpiNum )
Large printf function printf("format ", arg 1 ,...) Write data to GPO XIOModule DiscreteWrite(&gpo,
Large scanf function scanf("format ", &name 1 ,...) gpoNum, data )

You might also like