DE2i-150 Overview
Download
Report
Transcript DE2i-150 Overview
Tutorial on using the DE2i-150
development board
04/17/2014
Y. O. M. Moctar
CSE, UCR
1
Outline
This Tutorial covers the following topics:
04/17/2014
Getting started – materials and software
Intel Atom
Altera Cyclone IV
Configuration steps
Running an application
Summary
Y. O. M. Moctar CSE, UCR
2
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
The DE2i-150
Block diagram from the DE2i-150 System Manuel
04/17/2014
Y. O. M. Moctar
CSE, UCR
4
Development setup
USB Cable
Ethernet cable for quick file Xfer
USB connection for FPGA configuration
Keyboard/Monitor for DE2i-150
04/17/2014
Y. O. M. Moctar
CSE, UCR
5
The Atom-N2600
04/17/2014
Y. O. M. Moctar
CSE, UCR
6
Altera-Cyclone IV GX150
04/17/2014
Y. O. M. Moctar
CSE, UCR
7
PCI Devices in Linux
Devices are listed as bus:slot:function
Use lspci –v and lspci –vv for more verbosity
04/17/2014
Y. O. M. Moctar
CSE, UCR
8
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
04/17/2014
Y. O. M. Moctar
CSE, UCR
9
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>
04/17/2014
Y. O. M. Moctar
CSE, UCR
10
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
04/17/2014
Y. O. M. Moctar
CSE, UCR
11
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
04/17/2014
Y. O. M. Moctar
CSE, UCR
12
Demo: VGA-Display (3)
On the VGA Display attached to the board you will see
something like this:
04/17/2014
Y. O. M. Moctar
CSE, UCR
13
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 ?
04/17/2014
Y. O. M. Moctar
CSE, UCR
14