• LOGIN

Wesley Peck

Home › EECS 388 Laboratory › Laboratory 1

Directions


Lab 1 Screen Cast
Click to Play

Creating a new Project

  1. Open the Xilinxi Platform Studio Application (XPS)
    • Start -> All Programs -> Xilinxi Platform Studio 9.1i -> Xilinxi Platform Studio
  2. Select "Base System Builder wizard"
    • Then Click OK
  3. Enter "H:\eecs388\lab1\system.xmp" as the project file
    • Then click OK
    • Select "Yes" to create the folder if necessary
  4. Select "I would like to create a new design"
    • Then click Next
  5. Select "I would like to create a system for the following development board"
    • Select "Xilinxi" as the board vendor
    • Select "XUPi Virtex-II Pro Development System" as the board name
    • Select "C" as the board revision
    • Then click on Next
  6. Select "MicroBlazei"
    • Then click on Next
  7. Use "100MHz" as the processor frequency
    • Use "On-chip HW debug module"
    • Select "64KB" for the data and instruction size
    • Then click on Next
  8. 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
  9. 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
  10. 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
  11. Ensure there are no other peripherals listed
    • Then click on Next
  12. 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
  13. Ensure that ilmb_cntrl is the intruction memory
    • Ensure that dlmb_cntlr is the data, stack, and heap memory
    • Then click on Next
  14. Ensure that ilmb_cntrl is the instruction memory
    • Ensure that dlmb_cntlr is the data, stack, and heap memory
    • Then click on Next
  15. Look over the information screen
    • Click on Generate to create your system
  16. Ensure "Save settings file" is selected
    • Click on Finish

Adding the Software Application

  1. Ensure that the Applications tab is active in the Project Information Area on the left of the window
  2. Double click on "Add Software Application Project..."
  3. 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
  4. 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
  5. 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
  6. 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

  1. Select "Update Bitstream" to synthesize your hardware and compile your software
    • Menu: Device Configuration -> Update Bitstream
    • This takes a while
  2. 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
  3. Select "Download Bitstream" to download your design to the board for execution
    • Menu: Device Configuration -> Download Bitstream
    • This takes a while
  4. 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.

‹ Laboratory 1 up Laboratory 2 ›
  • Printer-friendly version

Navigation

  • Home
  • EECS 388
  • EECS 665
  • Glossary
  • Search

Outline

  • EECS 388 Laboratory
    • Syllabus
    • Deliverables
    • Report Format
    • Reference Materials
    • Laboratory 1
      • Directions
    • Laboratory 2
    • Laboratory 3
    • Laboratory 4
    • Laboratory 5
    • Laboratory 6
  • EECS 665 Laboratory
  • Tutorials

(C) 2008 Wesley Peck
All Rights Reserved