Directions
Lab 1 Screen Cast
Click to Play
Click to Play
Creating a new Project
- Open the Xilinxi Platform Studio Application (XPS)
- Select "Base System Builder wizard"
- Then Click OK
- Enter "H:\eecs388\lab1\system.xmp" as the project file
- Then click OK
- Select "Yes" to create the folder if necessary
- Select "I would like to create a new design"
- Then click Next
- Select "I would like to create a system for the following development board"
- Select "MicroBlazei"
- Then click on Next
- Use "100MHz" as the processor frequency
- Use "On-chip HW debug module"
- Select "64KB" for the data and instruction size
- Then click on Next
- Enable "RS232_Uart_1"
- Use "OPB UARTLITE" at the peripheral
- Use 9600 as the baud rate
- Use 8 as the data bits value
- Use NONE as the parity
- Ensure that interrupts are not enabled
- Ensure "Ethernet_MAC" is unselected
- Ensure "SysAce_CompactFlash" is unselected
- Then click on Next
- Enable LEDs_4Bit, DIPSWs_4Bit, and PushButtons_5Bit
- Use OPB GPIOi for all of them
- Ensure interrupts are not enabled for all of them
- Ensure DDR_512MB_64Mx64_rank2_row13_col10_cl2_5 is not enabled
- Ensure DDR_512MB_64Mx64_rank1_row13_col11_cl2_5 is not enabled
- Then click on Next
- Ensure DDR_256MB_32Mx64_rank1_row13_col1_cl2_5 is not enabled
- Ensure DDR_128MB_16Mx64_rank1_row13_col9_cl2_5 is not enabled
- Then click on Next
- Ensure there are no other peripherals listed
- Then click on Next
- Ensure STDIN is RS232_Uart_1
- Ensure STDOUT is RS232_Uart_1
- Ensure boot memory is ilmb_cntlr
- Ensure Memory test is enabled
- Ensure Peripheral self test is enabled
- Then click on Next
- Ensure that ilmb_cntrl is the intruction memory
- Ensure that dlmb_cntlr is the data, stack, and heap memory
- Then click on Next
- Ensure that ilmb_cntrl is the instruction memory
- Ensure that dlmb_cntlr is the data, stack, and heap memory
- Then click on Next
- Look over the information screen
- Click on Generate to create your system
- Ensure "Save settings file" is selected
- Click on Finish
Adding the Software Application
- Ensure that the Applications tab is active in the Project Information Area on the left of the window
- Double click on "Add Software Application Project..."
- In the Software Application Project dialog enter "lab1" as the name
- Ensure microblaze_0 is selected as the processor
- Ensure "Project is an ELF-only Project" is not selected
- Click on OK
- Locate "Project: lab1" in the software application list
- Right click on "sources" and select "Add new file"
- Create a new folder named "lab1" in the file dialog
- Enter the lab1 folder
- Enter lab1.c as the file name
- Click save
- Click on the "+" next to "sources"
- Double click on lab1.c
- Enter the following into the source file
/* <comments with your name and KUID> */
/* <comments with a description of this source file> */#include <stdio.h>
int main(void)
{
<your code here>
return 0;
}
- Fill in the main function to print out your name and KUID five times
- Hint: the printf function and a for loop would be useful for this
- Right click on "Project: lab1" and select "Mark to initialize BRAMs"
- Right click on "Project: TestApp_Memory" and click on "Mark to initialize BRAMs" to unselect it
Testing the Design
- Select "Update Bitstream" to synthesize your hardware and compile your software
- Menu: Device Configuration -> Update Bitstream
- This takes a while
- Open up HyperTerminal
- Menu: Start -> All Programs -> Accessories -> Communications -> HyperTerminal
- Enter an area code if needed and click on OK until you have the main window
- Create a new connection using COM1, a 9600 baud rate, 8 data bits, 1 stop bit, no parity, and no flow control
- Select "Download Bitstream" to download your design to the board for execution
- Menu: Device Configuration -> Download Bitstream
- This takes a while
- You should see you name output in the HyperTerminal window that you opened
Cleaning up for Submission
Before you submit a project to your TA you will need to clean out all of the XPS generated files. You can do this by selecting "Project -> Clean All Generated Files" from the menu. Please do this before submitting all projects.
