14
Tutorial on using the DE2i- 150 development board 04/17/2014 Y. O. M. Moctar CSE, UCR 1

Tutorial on using the DE2i-150 development board

  • Upload
    pekelo

  • View
    108

  • Download
    33

Embed Size (px)

DESCRIPTION

Tutorial on using the DE2i-150 development board. Outline. This Tutorial covers the following topics: Getting started – materials and software Intel Atom Altera Cyclone IV Configuration steps Running an application Summary. Getting Started. Materials and Software: - PowerPoint PPT Presentation

Citation preview

Page 1: Tutorial on using the DE2i-150 development board

Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 1

Page 2: Tutorial on using the DE2i-150 development board

Outline This Tutorial covers the following

topics: Getting started – materials and

software Intel Atom Altera Cyclone IV Configuration steps Running an application Summary

04/17/2014 Y. O. M. Moctar CSE, UCR 2

Page 3: Tutorial on using the DE2i-150 development board

Getting Started Materials and Software:

DE2i-150 development board Laptop or desktop running Linux or

Windows Keyboard and VGA Monitor connected to

the board Power adapter and cord Ethernet Cable (Linux Desktop to Yocto

communication) TFTP (for transfering files from the

Linux Desktop to the Yocto)

04/17/2014 Y. O. M. Moctar CSE, UCR 3

Page 4: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 4

The DE2i-150

Block diagram from the DE2i-150 System Manuel

Page 5: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 5

USB Cable

Development setup

Ethernet cable for quick file Xfer USB connection for FPGA configuration Keyboard/Monitor for DE2i-150

Page 6: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 6

The Atom-N2600

Page 7: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 7

Altera-Cyclone IV GX-150

Page 8: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 8

Devices are listed as bus:slot:function Use lspci –v and lspci –vv for more verbosity

PCI Devices in Linux

Page 9: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 9

Configuration steps (1)

On Linux Desktop computer: Install and configure TFTP Copy the content of the DE2i-150 CD to a directory This directory contains demos and a PCIe driver Using TFTP, copy files from your Linux Desktop to the

Yocto Host on the Board Install FPGA Design Environment (Quartus II Web

edition) Install from the DE2i-150 CD Download from Altera Website

Open Quartus II and from the Tools menu select Programmer

in the next window click add file and choose the .sof file to upload on the FPGA.

Consult the User Manual on the DE2i-150 CD for more information on how to use Quartus II and program the FPGA

Page 10: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 10

Configuration steps (2)

On The Yocto Terminal: After copying the demo files from the Linux

Desktop to the Yocto System, type “reboot” to restart the Yocto Host

Load the PCI Express driver by typing: sh ./load_terasic_qsys_pcie_driver.sh de2i_150_config_file

Then make your application (you can provide a Makefile or just use gcc if you have a simple app.)

Finally run your application by typing: ./<application_name>

Page 11: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 11

Demo: VGA-Display (1)

This section walks you through the steps you need to run the VGA-DISPLAY demo: Familiarize yourself with the board by reading the

tech. and user manuals. Make sure the board is powered up and all

components are connected correctly. (consult the tech. manual)

If you have not done so, copy the DE2i-150 CD into a directory on your Linux Desktop (name it DE2i_CDROM)

Start Quartus II and using the Programmer upload the .sof file To the FPGA:

/DE2i_CDROM/Demonstrations/PCIE_Display/demo_batch/ de2i_150_qsys_pcie.sof

Page 12: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 12

Demo: VGA-Display (2)

Using TFTP copy the following folders to the local hard disk on the Yocto Host: /DE2i_CDROM/Demonstrations/PCIE_Display/linux_app /DE2i_CDROM/Demonstrations/PCIe_Library /DE2i_CDROM/Demonstrations/PCIe_DriverinstallIn the Yocto Terminal, type “reboot” to restart the Yocto HostIn the Yocto Terminal, Load the PCI Express driver by typing: sh ./load_terasic_qsys_pcie_driver.sh de2i_150_config_fileIn the Yocto Terminal, Run the application by typing: ./app

Page 13: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 13

Demo: VGA-Display (3)

On the VGA Display attached to the board you will see something like this:

Page 14: Tutorial on using the DE2i-150 development board

04/17/2014 Y. O. M. Moctar CSE, UCR 14

Summary We have coved the important steps for configuring the DE21-150 board. We have also shown how to install a PCI Express driver Run an application on the Atom that interact with a design on the FPGA.

Questions ?