Simple VHDL example using VIVADO 2015 with ZYBO FPGA board

Similar documents
LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Lab 1: Introduction to Xilinx ISE Tutorial

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Implementation of Web-Server Using Altera DE2-70 FPGA Development Kit

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

Modeling Latches and Flip-flops

Modeling a GPS Receiver Using SystemC

Quartus II Introduction for VHDL Users

Using Xilinx ISE for VHDL Based Design

VHDL Test Bench Tutorial

High-Level Synthesis for FPGA Designs

Getting Started with the Xilinx Zynq All Programmable SoC Mini-ITX Development Kit

MicroZed I/O Expansion Carrier Card Getting Started Guide

Introduction to Digital Design Using Digilent FPGA Boards Block Diagram / Verilog Examples

The Advanced JTAG Bridge. Nathan Yawn 05/12/09

9/14/ :38

PCIe Core Output Products Generation (Generate Example Design)

Sprites in Block ROM

Digital Circuit Design Using Xilinx ISE Tools

VHDL GUIDELINES FOR SYNTHESIS

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Authors: Simon George and Prushothaman Palanichamy

Quartus II Software Design Series : Foundation. Digitale Signalverarbeitung mit FPGA. Digitale Signalverarbeitung mit FPGA (DSF) Quartus II 1

Lab 1: Full Adder 0.0

if-then else : 2-1 mux mux: process (A, B, Select) begin if (select= 1 ) then Z <= A; else Z <= B; end if; end process;

Getting Started Guide. Version 7.0

How to download and install ISE WebPACK

Zynq-7000 All Programmable SoC: Embedded Design Tutorial. A Hands-On Guide to Effective Embedded System Design

Introduction to the Altera Qsys System Integration Tool. 1 Introduction. For Quartus II 12.0

Guide to Installing BBL Crystal MIND on Windows 7

Printed Circuit Board Design with HDL Designer

MicroZed Getting Started Guide

Design of Remote Laboratory dedicated to E2LP board for e-learning courses.

An Example VHDL Application for the TM-4

DE4 NetFPGA Packet Generator Design User Guide

3M Occupational Health and Environmental Safety 3M E-A-Rfit Validation System. Version 4.2 Software Installation Guide (Upgrade) 1 P age

ISE In-Depth Tutorial. UG695 (v14.1) April 24, 2012

RAPID PROTOTYPING OF DIGITAL SYSTEMS Second Edition

1. Downloading. 2. Installation and License Acquiring. Xilinx ISE Webpack + Project Setup Instructions

PL-2305 USB-to-Printer Cable Windows 8 Installation Guide

Quartus II Introduction Using VHDL Design

Colorfly Tablet Upgrade Guide

Multiplexers Two Types + Verilog

JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

Eli Levi Eli Levi holds B.Sc.EE from the Technion.Working as field application engineer for Systematics, Specializing in HDL design with MATLAB and

PCB Project (*.PrjPcb)

Vivado Design Suite Tutorial

Contents Models 3500 / 3600 Software & Driver Installation... 1 Install Amplifier Control Panel... 2 Download and Install the Drivers...

Implementation Details

Installation Guide for RadioLabs USB Wifi Antennas/Adapters

Vivado Design Suite Tutorial: Embedded Processor Hardware Design

LogiCORE IP AXI Performance Monitor v2.00.a

Digital Design with VHDL

7a. System-on-chip design and prototyping platforms

Using Vivado Design Suite with Version Control Systems Author: Jim Wu

Deployment Guide: Transparent Mode

Hardware Implementation of the Stone Metamorphic Cipher

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

Chapter 3 Create an EasyBuilder Project... 2

Digital Systems Design! Lecture 1 - Introduction!!

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

Altaro Hyper-V Backup - Getting Started

Modeling Registers and Counters

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Start Active-HDL by double clicking on the Active-HDL Icon (windows).

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

ISE In-Depth Tutorial 10.1

Moving Rockwell Software Activation Keys to the VersaView 200R Industrial Computer

HDL Simulation Framework

Zynq SATA Storage Extension (Zynq SSE) - NAS. Technical Brief from Missing Link Electronics:

ThinLinX TLXOS 64-bit Firmware Installation Guide for the Intel NUC Range. Materials Required

After opening the Programs> Xilinx ISE 8.1i > Project Navigator, you will come to this screen as start-up.

T E C H N I C A L B U L L E T I N # 1 1 4

DRV8312-C2-KIT How to Run Guide

SOFTWARE INSTALLATION INSTRUCTIONS

Pre-tested System-on-Chip Design. Accelerates PLD Development

VX 9000E WiNG Express Manager INSTALLATION GUIDE

System Performance Analysis of an All Programmable SoC

ModelSim-Altera Software Simulation User Guide

Boole-WebLab-Deusto: Integration of a Remote Lab in a Tool for Digital Circuits Design

Digital Systems Design. VGA Video Display Generation

KeePass Getting Started on Windows

Example-driven Interconnect Synthesis for Heterogeneous Coarse-Grain Reconfigurable Logic

Thermomark Roll - Driver Installation - Windows 7

2. Scope of the DE0 Board and Supporting Material

Asynchronous & Synchronous Reset Design Techniques - Part Deux

Virtual Workplace Personal Device Client Installation Instructions

VirtualXP Users Guide

Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers. User s Guide

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

How to Download Images Using Olympus Auto-Connect USB Cameras and Olympus Master

Tutorial: Configuring GOOSE in MiCOM S1 Studio 1. Requirements

E-Blocks Easy Internet Bundle

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Chapter 2 Utility Manager

Step : Create Dependency Graph for Data Path Step b: 8-way Addition? So, the data operations are: 8 multiplications one 8-way addition Balanced binary

T R O U B L E S H O O T I N G T I P S

Testing & Verification of Digital Circuits ECE/CS 5745/6745. Hardware Verification using Symbolic Computation

**Please read this manual carefully before you use the product**

T-BOX MY MEDIA WINDOWS 7 QUICK START GUIDE

Transcription:

Aim I am FPGA novice and want to try classical FPGA design tutorials. I bought perfect modern FPGA board ZYBO (ZYnq BOard) based on Xilinx Z-7010 from Digilent but latest tools from Xilinx VIVADO 2015.2 more focused on AP SoC programming while I want to just pure FPGA design without any linuxes bootloaders etc. So I wrote this tutorial to help people like me :) In this example we make simple scheme: 2 signals IN and 4 OUT. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 1

Preconditions: Adding Zybo Board to Vivado Vivado 2015.2 under Windows 7 64 bit was used with 16 GB of RAM. Before using Zybo with Vivado you should add Zybo Definitions File to Vivado. 1. Good source for Board Definition files is Zynqbook website.download The_Zynq_Book_Tutorial_Sources_Aug15.zip 2. Copy zybo folder with content from Archive path \sources\zybo\setup\board_part into D:\Xilinx\Vivado\2015.2\data\boards\board_files (if D:\Xilinx\Vivado\2015.2 is my PC you probably have C:\Xilinx etc...) 3. In board_files you should see other boards so now our Zybo known by Vivado. 4. Download ZYBO_Master.xdc from Digilent website unpack constraints file it on local hard disk. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 2

Launch Vivado I have latest Vivado Design Edition from Xilinx which comes with Digilent Zybo board. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 3

Create new project SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 4

New Project Click Next Set project name. Set project name to gates2, SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 5

Keep rest settings unchanged unless you know what you doing. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 6

Project Type Keep default RTL project, Press Next Add sources In this tutorial we decided to use VHDL language so make sure it set correctly. Simulator language you can keep unchanged. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 7

Click on "+" - Select - Create File. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 8

Create Source File Set Filename to gates2. Keep the rest unchaged. Press OK. Press Next. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 9

Add Existing IP Click Next. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 10

Add Constraints Click "+", Add Files. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 11

Add Constraint file we downloaded at Precondition step. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 12

Make sure: Copy constraints files into project - Checked. Click - Next Default Part Click on boards and select Zybo. If you still don't have it follow steps in Preconditions: Adding Zybo board to Vivado. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 13

If you don't see ZYBO goto Preconditions Step. Next. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 14

New Project Summary Finish New Project main view Project files generated and ready for your design. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 15

We will implement 2 input gates and 4 output basic gates and, or, xor and nor. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 16

Define I/O ports as below OK SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 17

Select VHDL Design Click on Source file in Project Manager>Sources>Design Sources - Source code on Righthand side should appear. Changes to source code. Modify VHDL file - add lines as highlighted below. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 18

z(0) <= a and b; z(1) <= a or b; z(2) <= a xor b; z(3) <= a nor b; SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 19

Create top file Rightclick on Design Sources and select Add Sources. 1. Add or create design souces. 2. "+" > Create File File Type :VHDL, File name: top_gates2 SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 20

OK Finish SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 21

Define Module Add sw and led as on image below. Replace default source code. library IEEE; use IEEE.STD_LOGIC_1164.ALL; SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 22

entity top_gates2 is Port ( sw : in STD_LOGIC_VECTOR (1 downto 0); led : out STD_LOGIC_VECTOR (3 downto 0) ); end top_gates2; architecture top_gates2 of top_gates2 is component gates2 is Port ( a : in STD_LOGIC; b : in STD_LOGIC; z : out STD_LOGIC_VECTOR (3 downto 0) ); end component; begin cl : gates2 SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 23

port map ( a => sw(0), b => sw(1), z(0) => led(0), z(1) => led(1), z(2) => led(2), z(3) => led(3) ); end top_gates2; SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 24

SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 25

Top Design We have single top design interface file which use our gates2 design as component. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 26

top design Make sure our top file became parent of gates2 file. Otherwise set it manually with Set as Top. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 27

Amend Constraints file Select xdc file from Sources>Constraints SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 28

Changes in xdc file Uncomment lines of I/O port we need to use. Save file. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 29

SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 30

Synthesis At Synthesis phase we convert our circuit from register transfer level (RTL) into a design implementation in terms of logic gates. In Flow Navigator on Lefthand side.: Next steps can be Simulation>Run Simulation or RTL Analysis>Schematic but we skip them in this tutorial and come directly to Synthesis>Run Synthesis. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 31

SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 32

Synthesis complention Leave default Run Implementation OK SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 33

Generate Bitstream Select Generate Bitstream OK Final Pay attention to jumpers. JP7 - It should set to USB. JP5 can be JTAG or QSPI Connect ZYBO to PC with Micro-USB cable. SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 34

Photo from http://marsee101.blog19.fc2.com/blog-entry-2745.html SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 35

Program ZYBO SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 36

Next SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 37

Next SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 38

Make sure you have similar setting like on picture below. Select xc7z010_1 Next SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 39

Finish SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 40

Program device > xc7z010_1 Program SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 41

As confirmation of successfull upload Greed Led will set Use switches to confirm and, or, xor and nor operations. Archive of project available. Reference 1. Digital Design Using Digilent FPGA Boards VHDL/ Active-HDL edition. Richard E. Haskell, Darrin M. Hanna SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 42

2. Learning By Example Using VHDL. Advanced Digital Design With a NEXYS 2 FPGA Board. Richard E. Haskell, Darrin M. Hanna 3. The ZYNQ BOOK - Make sure you download not only book archive but also tutorials book with sources. 4. HDL Chip Design- A Practical Guide for Designing, Synthesizing and Simulating ASICs and FPGAs Using VHDL or Verilog. By Douglas J. Smith 5. ZYBO Reference Manual SIMPLE VHDL EXAMPLE USING VIVADO 2015 WITH ZYBO FPGA BOARD 43