140 likes | 371 Views
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:
E N D
Tutorial on using the DE2i-150 development board Y. O. M. Moctar CSE, UCR
Outline • This Tutorial covers the following topics: • Getting started – materials and software • Intel Atom • Altera Cyclone IV • Configuration steps • Running an application • Summary Y. O. M. Moctar CSE, UCR
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) Y. O. M. Moctar CSE, UCR
The DE2i-150 Block diagram from the DE2i-150 System Manuel Y. O. M. Moctar CSE, UCR
Development setup • Ethernet cable for quick file Xfer • USB connection for FPGA configuration • Keyboard/Monitor for DE2i-150 USB Cable Y. O. M. Moctar CSE, UCR
The Atom-N2600 Y. O. M. Moctar CSE, UCR
Altera-Cyclone IV GX-150 Y. O. M. Moctar CSE, UCR
PCI Devices in Linux • Devices are listed as bus:slot:function • Use lspci –v and lspci –vv for more verbosity Y. O. M. Moctar CSE, UCR
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 Y. O. M. Moctar CSE, UCR
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> Y. O. M. Moctar CSE, UCR
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 Y. O. M. Moctar CSE, UCR
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_Driverinstall • In the Yocto Terminal, type “reboot” to restart the Yocto Host • In the Yocto Terminal, Load the PCI Express driver by typing: sh ./load_terasic_qsys_pcie_driver.sh de2i_150_config_file • In the Yocto Terminal, Run the application by typing: ./app Y. O. M. Moctar CSE, UCR
Demo: VGA-Display (3) • On the VGA Display attached to the board you will see something like this: Y. O. M. Moctar CSE, UCR
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 ? Y. O. M. Moctar CSE, UCR