Hello World on the ATLYS Board. Building the Hardware

Similar documents
427 Class Notes Lab2: Real-Time Clock Lab

Building an Embedded Processor System on Xilinx NEXYS3 FPGA and Profiling an Application: A Tutorial

Microblaze for Linux Howto

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 1 Creating an AXI-based Embedded System

Xilinx Vivado/SDK Tutorial

Campbell (MAXREFDES4#) Nexys 3 Quick Start Guide

Fremont (MAXREFDES6#) Nexys 3 Quick Start Guide

Campbell (MAXREFDES4#) Nexys 3 Quick Start Guide

Creating the AVS6LX9MBHP211 MicroBlaze Hardware Platform for the Spartan-6 LX9 MicroBoard Version

Spartan-6 LX9 MicroBoard Embedded Tutorial. Lab 6 Creating a MicroBlaze SPI Flash Bootloader

Carmel (MAXREFDES18#) LX9 MicroBoard Quick Start Guide

QSPI Flash Memory Bootloading In Standard SPI Mode with KC705 Platform

Alameda (MAXREFDES24#) ZedBoard Quick Start Guide

Spartan -6 LX9 MicroBoard Web Connectivity On Ramp Tutorial

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

Figure 1 TCL Used to Initialize PS

Santa Fe (MAXREFDES5#) MicroZed Quick Start Guide

Lab #1: A Quick Introduction to the Eclipse IDE

MicroZed: Hello World. Overview. Objectives. 23 August 2013 Version 2013_2.01

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 2 Adding EDK IP to an Embedded System

System Ace Tutorial 03/11/2008

Fresno (MAXREFDES11#) ZedBoard Quick Start Guide

Corona (MAXREFDES12#) Nexys 3 Quick Start Guide

Use Vivado to build an Embedded System

AXI Interface Based KC705. Embedded Kit MicroBlaze Processor Subsystem (ISE Design Suite 14.4)

Using Serial Flash on the Xilinx Spartan-3E Starter Board. Overview. Objectives. Version 8.1 February 23, 2006 Bryan H. Fletcher

SP605 Standalone Applications

Quick Start Guide ZedboardOLED Display Controller IP v1.0

Corona (MAXREFDES12#) ZedBoard Quick Start Guide

Writing Basic Software Application

Use Vivado to build an Embedded System

Synaptic Labs' AXI HyperBus Memory Controller (HBMC) IP for Xilinx FPGA Devices Tutorial

POWERLINK Slave Xilinx Getting Started User's Manual

Module 2: Adding IP to a Hardware Design

ML605 Built-In Self Test Flash Application

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

MAXREFDES43# ZedBoard Quick Start Guide

As CCS starts up, a splash screen similar to one shown below will appear.

Introduction to Zynq

Interested users may wish to obtain additional components to evaluate the following modules:

SP605 Built-In Self Test Flash Application

ChipScope Inserter flow. To see the Chipscope added from XPS flow, please skip to page 21. For ChipScope within Planahead, please skip to page 23.

Circuit design with configurable devices (FPGA)

Question: How do I move my mobile account from the Corporate to my Personal Account?

University of Massachusetts Amherst Computer Systems Lab 1 (ECE 354) LAB 1 Reference Manual

Virtex-4 PowerPC Example Design. UG434 (v1.2) January 17, 2008

Synaptic Labs' HyperBus Memory Controller (HBMC) Tutorial

Avnet Zynq Mini Module Plus Embedded Design

As CCS starts up, a splash screen similar to one shown below will appear.

Getting started with the Xilinx Project Navigator and the Digilent BASYS 2 board.

Lab 1 - Zynq RTL Design Flow

Xilinx Platform Studio tutorial

HyperBus Memory Controller (HBMC) Tutorial

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

TI mmwave Labs. Vital Signs Measurement

AC701 Built-In Self Test Flash Application April 2015

MAXREFDES44# MicroZed Quick Start Guide

Interrupt Creation and Debug on ML403

University of Massachusetts Amherst Computer Systems Lab 2 (ECE 354) Spring Lab 1: Using Nios 2 processor for code execution on FPGA

and 32 bit for 32 bit. If you don t pay attention to this, there will be unexpected behavior in the ISE software and thing may not work properly!

Excellent for XIP applications"

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

Zynq System Architecture Design Lab Workbook Beta

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

Lab 1 Introduction to R

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Xilinx Tutorial Basic Walk-through

ELEC 204 Digital System Design LABORATORY MANUAL

University of Florida EEL 3701 Dr. Eric M. Schwartz Madison Emas, TA Department of Electrical & Computer Engineering Revision 1 5-Jun-17

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

EDK Concepts, Tools, and Techniques

Creating a base Zynq design with Vivado IPI

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive

Synaptic Labs (S/Labs) HyperBus Memory Controller (HBMC) Tutorial for Intel FPGA devices

Tutorial - Exporting Models to Simulink

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

Running vxworksrtos on the. Mechatronics Laboratory

MicroBlaze Tutorial on EDK 10.1 using Sparatan III E Behavioural Simulation of MicroBlaze System

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

Creating a Processor System Lab

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

Profiling Applications and Creating Accelerators

ML410 VxWorks BSP and System Image Creation for the BSB DDR2 Design Using EDK 8.2i SP1. April

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 5 Embedded Chipscope Debugging

KC705 Si5324 Design October 2012

KCU GBASE-KR Ethernet TRD User Guide

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

HyperBus Memory Controller (HBMC) Tutorial

Nios II Studio Help System

ECE QNX Real-time Lab

Installing Geant4 v9.5 for Windows

TP : System on Chip (SoC) 1

WRITING CONSOLE APPLICATIONS IN C

Estimating Accelerator Performance and Events

HyperBus Memory Controller (HBMC) Tutorial

TI mmwave Training. mmwave Demo

UART Interrupt Creation on Spartan 3A

FX SERIES. Programmer s Guide. Embedded SDK. MN000540A01 Rev. A

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

Vivado Design Suite User Guide. Designing IP Subsystems Using IP Integrator

Transcription:

1. Start Xilinx Platform Studio Hello World on the ATLYS Board Building the Hardware 2. Click on Create New Blank Project Using Base System Builder

For the project file field, browse to the directory where you want your design to reside. Make sure to create a directory that is initially empty and that will contain your design. My directory name is HelloWorldHW. If you do this through the Browse... button, the system.xmp file name is automatically generated. The field at the bottom that refers to the Atlys_BSB_Support... is a library that contains all of the support necessary to run our programs on the Atlys board. Again, just use the browse button to navigate to the directory that is shown in the window below. Click OK.

All of the fields in the next window are automatically filled in for you. Just click Next. Now you need to remove some unused peripherals. XPS includes some things that you don t need right now so let s remove them. Select the Digilent items with the mouse and click the remove button. You can see these items selected in the window below. Also remove the Ethernet LIte and MCB_DDR2 peripherals. Increase the Local Memory Size to 32 KB by using the drop-down menu for that option.

The window below shows what things should look like after you have removed the unused peripherals and have increased the local memory to 32KB.

Click Finish and the system will pop up a dialog box that shows how the build process is progressing. After the hardware system is built, you will see the following screen:

This screen is described in the documentation that was assigned earlier in this lab. Make sure that you understand this window. We will probably have a quiz on this later. Take a look at the block diagram view by clicking on the Graphical Design View tab. You will see something like:

Zoom in to various parts of the diagram to see details of the blocks contained in the design. Try and make some sense of the design by looking at the various blocks. Try to understand what the various blocks do. Now that you have designed the system you need to create the files that are used to program the FPGA. Just click the Generate BitStream button and wait, this process takes awhile so just sit and watch the process. You will see a status bar at the bottom right while the bitstream is being generated. Also, be prepared to explain what happens during this process. Review the console window at the bottom so you can see what is going on.

When the process completes you will several warnings but should have no errors. Click through the Console, Warnings, and Errors tabs located at the bottom left of the Xilinx Platform Studio (XPS) window. At this point (if all went well) you should be ready to export your hardware system to the Xilinx SDK. Click the Export Design button. The default setting should be OK but double-check to ensure that your window looks something like that shown below: Click Export & Launch SDK. Once it is ready to launch, you will see the following dialog. As before, create a new and empty folder that will serve as your workspace (use the Browse... button) and then hit OK. Once the SDK starts up you will see the following window:

Here s a closeup of the information window that is shown in the center: This is a description of the hardware that you just produced. All of this was included by default when you included the Atlys board support in an earlier step. Microblaze is the name of Xilinx s soft microprocessor. You all know what a UART is and you should be able to guess what a lot of the other things do.

Now, let s create a new Xilinx C Project. This will allow us to write and compile C source files for our embedded system. From the File menu at the far left, choose New and then select Xilinx C Project. We will pick the ready-made Hello World project. I think that it comes up as default but make sure that it is selected and the click the Next button.

Just use the default values that show up in the next window and click Finish. After you hit Finish, you should see some compilation messages stream by in the console window located near the bottom of the screen. If you hunt around a bit you can find the file that contains the main C program.

The program is quite simple but there is actually quite a bit going on. Look through the other files in the src directory to see what they do. Look in the microblaze_0 directory that is contained in the hello_world_bsp_0 directory. Every software file that your system uses is contained in there. Get acquainted with the directory structure inside microblaze_0 - you will be looking in there quite a bit during the semester.

You need to regenerate the linker script. Right-click on the hello_world_0 project and select Generate Linker Script (4th line from the bottom of the menu, see below). The Generate Linker Script window is shown below:

Just click Generate (all of the defaults are correct). A dialog box will ask you if you want to overwrite an existing file. Click Yes. We are almost ready to test our program. The only thing our program does is print out a short message to STDOUT so we need to use a terminal emulator program to see it. Start up Tera Term (or any other terminal emulator that you like) and make sure that it is configured to use serial port COM4. One of the 2 USB cables that run from the ATLYS board to the computer essentially connects the STDOUT from the ATLYS board to the COM4 port of the PC (via some preinstalled drivers). Next, let s download to the board and see if the program running on the ATLYS board will greet us. Click the Program FPGA button (the second button from the far left) to start the download process. Make sure that in the field microblaze_0 (near the bottom of the dialog box) that you replace the default bootloop entry with the one that refers to your workspace (use the pull-down menu).

Once you have filled in the microblaze_0 field properly, hit Program. This step requires a few seconds (less than a minute) to download your program to the ATLYS board and start it up. If you are successful, you should see the following in the terminal window: There are quite a few steps in the process so don t be disappointed if you don t get it the first time. Just keep trying and you should get there.