introductory project

31
Introductory project

Upload: marion

Post on 28-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

Introductory project. Development systems. Design Entry Foundation ISE Third party tools Mentor Graphics: FPGA Advantage Celoxica: DK Design Suite Design Synthesis XST: Xilinx Synthesis Technology Mentor: Leonardo Spectrum Synplicity : Synplify Pro Celoxica: DK Design Suite - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introductory project

Introductory project

Page 2: Introductory project

Development systems• Design Entry

– Foundation ISE– Third party tools

• Mentor Graphics: FPGA Advantage

• Celoxica: DK Design Suite• Design Synthesis

– XST: Xilinx Synthesis Technology

– Mentor: Leonardo Spectrum– Synplicity: Synplify Pro

– Celoxica: DK Design Suite

• Simulation– Mentor: Modelsim

– Aldec: Active-HDL

– Celoxica: DK Design Suite

Page 3: Introductory project

Design Flow

• Design Entry– Schematic

– Hardware description language (VHDL, Verilog)

– Intellectual Property IP blocks

– Xilinx CoreGen

• Design Synthesis– High level description ->

Circuit

Page 4: Introductory project

Design Flow

• Design Verification– Behavioral Simulation

• Checking high level description of the circuit

– Functional Simulation• Checking synthesized

circuit– Timing Simulation– Static Timing Analysis

• Searching critical paths– In-Circuit Verification

Page 5: Introductory project

Design Flow

• Optimization (NGDBuild)– Merge multiple design

files into a single netlist

• Mapping (MAP)– Group logical symbols

from the netlist (gates) into physical components (slices and IOBs)

Page 6: Introductory project

Design Flow

• Place & Route (PAR):– Place components onto

the chip, connect the components, and extract timing data into reports

• Bitstream Generation (BitGen)– Create configuration file

Page 7: Introductory project

Create new project• Select: File -> New Project• Choose project directory and name (myand2)• Set top-level source type to HDL

Page 8: Introductory project

Set Device PropertiesSelect:• Family: Spartan3E• Device: XC3S500E• Package: FG320• Speed -5

• Synthesis tool: XST• Simulator: Modelsim-SE Mixed• Preferred Language: VHDL

Page 9: Introductory project

Create new source

• Click New Source…• Select VHDL Module

from the list

• Choose File name (myand2)

Page 10: Introductory project

Define Module

• Set two inputs (a,b) and one output (c)

Page 11: Introductory project

Project Navigator

• Source files• Built-in editor / Report

summary• Processes / Utilities• Console

Page 12: Introductory project

Simple VHDL source

Page 13: Introductory project

Create Testbench• Right click

myand2 - behavioral

in the sources window and select New Source

• Select VHDL Test Bench from the list

• Choose File name (myand2_tb)

Page 14: Introductory project

Associate testbench

Page 15: Introductory project

Find testbench files

• From the Sources for: list select Behavioral Simulation

• Open myand2_tb

Page 16: Introductory project

Create stimulus

Page 17: Introductory project

Simulation

• In the Processes for Source window open ModelSim Simulator

• Right click Simulate Behavioral Model and select Properties…

Page 18: Introductory project

Set Simulation Properties• Set Simulation

Resolution to 1ns

Page 19: Introductory project

The user interface of the ModelSim VHDL simulator

Page 20: Introductory project

• Compile, Compile All, Simulate, Break

• Restart, Run length, Run, Continue Run,

• Run –All, Step, Step Over, Profiling

Page 21: Introductory project

• Insert Cursor, Delete Cursor

• Previous Transition, Next Transition

• Zoom In/Out, Zoom Full

• Zoom to Active Cursor

Page 22: Introductory project

Design Synthesis

• Set Sources for to Implementation

• Select myand2 - Behavioral

• In the Processes for window double click Synthesize - XST

Page 23: Introductory project

View RTL Schematic

Page 24: Introductory project

View Technology Schematic

Page 25: Introductory project

Create Implementation Constraints

• Right click

myand2 - behavioral

in the sources window and select New Source

• Select VHDL Test Bench from the list

• Choose File name (myand2)

Page 26: Introductory project

Assign Package Pins• In the Processes

window open User Constraints

• Select Floorplan I/O – Pre-Synthesis

Page 27: Introductory project

Assign Package Pins

• Set Loc– a: H18– b: G18– c: J14

Page 28: Introductory project

Implement Design

• In the Processes for window double click Implement Design

• Check Place and Route Report for LOCed IBUFs/IOBs

Page 29: Introductory project

Set Programming File Properties

• Right click Generate Programming File in the Processes for window and select Properties…

• Set Startup Options / FPGA Start-Up Clock to JTAG Clock

• Double click Generate Programming File

Page 30: Introductory project

Configuring the device• Attach and Turn On

Nexys2 board• Start Digilent / Adept /

ExPort

• Click Initialize Chain• Bypass configuration

ROM

Page 31: Introductory project

Configuring the device• Browse to the project

directory• Select myand2.bit

• Click Program Chain• Test your first circuit

implemented on FPGA