Altera DE2-115 Guía de usuario

Busca en linea o descarga Guía de usuario para Software Altera DE2-115. Altera DE2-115 User guide Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir

Indice de contenidos

Pagina 1 - SPRING 2012

Embedded Systems Design Flow using Altera’s FPGA Development Board (DE2-115 T-Pad) SPRING 2012 Ankita Goel Hamid Mahmoodi

Pagina 2 - Table of Contents

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 9

Pagina 3

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 99 If you wish to open the complete already designed hardwa

Pagina 4 - 1.1 Overview of DE2-115

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 100 assign reset_n = 1'b1; assign HC_DIM = 1'b1; n

Pagina 5

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 101 .spi_cs_n_from_the_sd_card_control

Pagina 6

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 102 // FLASH_RY, //////////////////////////////////////////

Pagina 7

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 103 //vid_draw_round_corner_box ( 300, 4

Pagina 8 - 1.3 Getting Started

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 104 touch = 1;

Pagina 9

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 105 b) – For software, Run the software program under target

Pagina 10

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 106 Video Demonstration of this tutorial is available on You

Pagina 11

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 10 Step 4) Select the Destination where the Altera folder is

Pagina 12

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 11 Step 5) Select everything except for the Components that s

Pagina 13

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 12 Step 6) Click next for the DSP Builder setup

Pagina 14

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 13 Step 7) A summary of what will be installed to the comput

Pagina 15

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 14 Step 8) After the installation is complete click finish.

Pagina 16

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 15 1.4 Control Panel Demonstration To get familiarized with t

Pagina 17 - Verilog in Quartus II

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 16 Chapter 2: Hardware Design Flow Using Verilog in Quartus I

Pagina 18

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 17 a) Design Flow- Introduction (Page No. 11), Graphical User

Pagina 19

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 18 2.2 Design Flow (Hardware Only)

Pagina 20 - 2.3 Binary Adder Example

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 1 Table of Contents Chapter 1: Introduction to the DE2-115 D

Pagina 21

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 19 2.3 Binary Adder Example Now that you are getting famili

Pagina 22

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 20 0The Binary Adder tutorial teaches how to  Connect the

Pagina 23

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 21 c) Under the tab “Driver” select “Update Driver” -> A

Pagina 24

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 22 d) In the field “Search for Drivers in this location” bro

Pagina 25 - EP4CE115F29C7. Click “Next”

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 23 c) In step 2 of 5, you will add any previously created f

Pagina 26

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 24 ii. Target device is “Specific” and select our dev

Pagina 27

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 25 c) Click “OK” d) A new Verilog file will open. An

Pagina 28

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 26

Pagina 29

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 27

Pagina 30 - Builder”( PG No. 15)

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 28

Pagina 31

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 2 Link to the Video Demonstration: ...

Pagina 32

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 29 Step 6: For any project it is required to create pin ass

Pagina 33

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 30 Step 7: When the Verilog code is finished, and all

Pagina 34

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 31

Pagina 35

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 32 2.4 Introduction to System Builder Alternate way to do pin

Pagina 36

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 33 4) Click Generate 5) Create a directory for your proje

Pagina 37

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 34 9) When it has compiled, double click on “Program Devic

Pagina 38

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 35 7 Segment Hex Display

Pagina 39

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 36 In this project we used four 7-segment displays to show th

Pagina 40

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 37 16 x 2 LCD

Pagina 41

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 38 To display characters to an LCD there is a series of

Pagina 42

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 3 Chapter 1: Introduction to the DE2-115 Development and Educ

Pagina 43 - 3.2 Co-design Flow

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 39 LINE, DROP LCD, HOLD, DISPLAY ON, and MODE SET AND PRINT S

Pagina 44

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 40 Chapter 3: Hardware and Software Co-design Flow 3.1 Intro

Pagina 45

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 41 NOTE: This figure taken from Altera’s Nios II Processor

Pagina 46

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 42 3.2 Co-design Flow Figure 1–2 shows the Nios II system de

Pagina 47

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 43 3.3 Overview of System Integration Software SOPC Builder a

Pagina 48

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 44 3.4 Introduction to Nios II SBT for Eclipse Eclipse all

Pagina 49

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 45 NIOS II Binary Adder Step 1: System Builder 1) Open DE2_

Pagina 50

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 46 Step 2: Building Qsys System 1) Open Qsys under tools t

Pagina 51 - 5) Run as Hardware

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 47 10) Go to the “Export” column and connect the following p

Pagina 52 - Display on T-Pad

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 48 b. Locate and choose the file nios2/synthesis/nios.qip c.

Pagina 53 - Software

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 4 Altera Cyclone® IV 4CE115 FPGA device Altera Serial Co

Pagina 54 - Hardware Setup

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 49 Step 3: Develop the Software for Nios II SBT for Eclipse 1

Pagina 55

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 50 4) Build project 5) Run as Hardware

Pagina 56

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 51 Chapter 4 : Video Generation for Text Display on T-Pad Int

Pagina 57

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 52 Video Pipeline A Scatter Gather DMA is used to connect to

Pagina 58

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 53 Step by Step ALU on T-Pad Tutorial Hardware Setup Step

Pagina 59 - Endmodule

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 54 Select HSMC Source as LTC – 8” LCD/Touch Camera as shown b

Pagina 60

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 55 SW, //////////// VGA ////////// VGA_B, VGA_BLANK_N

Pagina 61

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 56 TOUCH_CS_N, TOUCH_DCLK, TOUCH_DIN, TOUCH_DOUT, T

Pagina 62

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 57 //////////// I2C for HSMC ////////// output

Pagina 63

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 58 //=======================================================

Pagina 64 - Software Setup

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 5 1.2 Block Diagram of the DE2-115 Board Figure gives the blo

Pagina 65 - Basic Software Algorithm

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 59 Step 3b: For assignment of base addresses in SOPC Builder

Pagina 66

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 60 Note: If you wish to open the complete already designed

Pagina 67

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 61 Step 3c: Click on Generate. Step 3(d): After you generat

Pagina 68

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 62 .VGA_SYNC_from_the_video_vga_controller()

Pagina 69 - Introduction

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 63 With this step, the hardware simulation is complete. Softw

Pagina 70

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 64 Basic Software Algorithm Initialize the screen screen_x

Pagina 71

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 65 sprintf (text,"%d & %d = %d ",number1,nu

Pagina 72

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 66 Downloading the design to the board: Step 1 –For Hardware

Pagina 73

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 67 Step 2 – For software, Run the software program under targ

Pagina 74

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 68 Chapter 5 – Integrating Touch Interface of T-Pad Introduct

Pagina 75

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 6 •JTAG and AS mode configuration •EPCS64 serial configurati

Pagina 76

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 69 Serial Peripheral Interface (SPI) and a Parallel

Pagina 77

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 70 Step by Step ALU on T-Pad with Touch Interface Tutorial St

Pagina 78

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 71 Step 4 : Open the folder where the project files are saved

Pagina 79

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 72 //////////// I2C for HSMC ////////// I2C_SCLK, I2C

Pagina 80

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 73 // PARAMETER declarations //=============================

Pagina 81

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 74 output I2C_SCLK; inout I

Pagina 82 - SOFTWARE Algorithm

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 75 //====================================================

Pagina 83

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 76 Step 7: Go to the “Connections” column and connect the fol

Pagina 84

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 77 Note: If you wish to open the complete already designed

Pagina 85

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 78 Step 9 : Click on Generate. Step 10 : After you generat

Pagina 86 - Link of Video Demonstration

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 7 •18 red and 9 green LEDs •Eight 7-segment displays Other

Pagina 87

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 79 .VGA_DATA_EN_from_the_video_vga_controlle

Pagina 88 - Software Design

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 80 .VGA_SYNC_from_the_video_vga_controller()

Pagina 89

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 81 SOFTWARE Algorithm  Values of switches are pointed by

Pagina 90

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 82  For touch display, different cases are referred for ea

Pagina 91

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 83 szText); break; case 3: result = number1

Pagina 92

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 84 b) – For software, Run the software program under target

Pagina 93

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 85 Link of Video Demonstration http://www.youtube.com/watch?v

Pagina 94

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 86 Chapter 6: Video Generation for Text and Image Display on

Pagina 95

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 87 The hardware can be broken down in the following subsystem

Pagina 96

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 88

Pagina 97

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 8 Step 1) Go to the link below: https://www.altera.com/downl

Pagina 98

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 89 Step by Step ALU with image in background Tutorial Hard

Pagina 99

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 90 // This code is generated by Terasic System Builder //===

Pagina 100

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 91 VGA_VS, //////////// I2C for HSMC ////////// I2C_S

Pagina 101

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 92 FL_RST_N, FL_RY, FL_WE_N, FL_WP_N, ////////////

Pagina 102

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 93 //=======================================================

Pagina 103 - 1) Display is initialized

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 94 output [7:0] VGA_R; output VGA

Pagina 104

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 95 inout [7:0] FL_DQ; output FL_O

Pagina 105

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 96 //=======================================================

Pagina 106

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 97 Pixel Converter VGA Sink Peripheral Bridge Sd Card Con

Pagina 107

SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab 98 The complete SOPC Builder system is shown below:

Comentarios a estos manuales

Sin comentarios