Introduction of Xilinx System Generator on...

24
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Introduction of Xilinx System Generator on Simulink Speaker : 鍾明翰 (CMHAdviser: Prof. An-Yeu Wu Data:2010/09/28

Transcript of Introduction of Xilinx System Generator on...

Page 1: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB

Graduate Institute of Electronics Engineering, NTU

Introduction of

Xilinx System Generator on Simulink

Speaker : 鍾明翰 (CMH)

Adviser: Prof. An-Yeu Wu

Data:2010/09/28

Page 2: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P2

Outline

Introduction to SimulinkSystem and Generator

Introduction to Design Flow

Installation and Setup of Design Tools

Software and hardware requirements

Installation of Xilinx ISE

Setup System Generator

Lab: Single delay unit (D-Filpflop)

Page 3: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P3

Introduction to

Simulink and System generator Simulink

Developed by Mathworks Inc.

A Model-based design environment integrated with Matlab

Provides various sets of block libraries to help you create ,

simulate, and test a complicated system, including control

system, communication, image processing, etc.

System Generator

Developed by Xilinx Corp.

Provides device-optimized DSP block library for Simulink

Let you model DSP algorithm, generate HDL code, and verify

FPGA designs for Xilinx devices in a intuitive and efficient way.

Page 4: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P4

Introduction to

Simulink and System generator Simulink

System Generator

Page 5: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P5

Introduction to Design Flow

Goal: Use Xilinx System Generator to design a DSP

system

Page 6: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P6

Installation and Setup of Design Tools

Software and hardware requirements

Windows XP 32-bit edition (recommended)

(System Generator 10.1 may not support other operating

system, like Vista, Win7 64bit-edition)

10GB hard disk space

Matlab R2007a, with Simulink 6.6 or higher version

Page 7: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P7

Installation and setup of design tools

Installation of Xilinx 10.1

Enter serial number

Page 8: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P8

Installation and setup of design tools

Installation of Xilinx 10.1 Note: If DSP Tools option is not selectable, it means System generator

does not support your operating system

Page 9: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P9

Installation and setup of design tools

After finishing installation, go to “start->all programs

then find out and launch “project navigator”

Page 10: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P10

Installation and setup of design tools

Remember to upgrade ISE from ver 10.1 to ver 10.3

Help->XilinxUpdate

Page 11: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P11

Installation and setup of design tools

Setup System Generator

Page 12: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P12

Installation and setup of design tools

Setup System Generator

Choose your matlab installation and click “OK”

Page 13: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P13

Lab

Introduction : Unit delay

Page 14: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P14

Open Matlab

Click on Simulink button

Lab

Page 15: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P15

Lab

Simulink environment

1.Click to open new

model

Page 16: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P16

Lab

2. Find Xilinx blockset

3. Double click on “Basic

Element”

Page 17: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P17

Right click on the Delay

element, and then

choose”Add to…” option

Page 18: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P18

Lab

Repeat previous step to find and add “Gateway In, Gateway

Out ,Constant, Scope, System Generator” block to your

design model

You may use “search toolbar” to find blocks

Page 19: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P19

Lab

Connect model block

1.Click on the source block

2.Press “ctrl” on the keyboard (don’t release) and click on the

destination block

1.2.

Page 20: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P20

Lab

Connect whole system block

Page 21: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P21

Lab

Double click on “Gateway In” to setup block parameter

Page 22: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P22

Lab

Click on “START” to simulate system

Page 23: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P23

Lab

Double click on “Scope” block to view simulation result

Page 24: Introduction of Xilinx System Generator on Simulinkaccess.ee.ntu.edu.tw/course/under_project_99/lecture/20100928... · ACCESS ICLAB Graduate Institute of Electronics Engineering,

ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU

P24

Reference

System Generator for DSP-Getting Started Guide

http://www.xilinx.com/support/sw_manuals/sysgen_gs.pdf