Fpga Based System

Only available on StudyMode
  • Topic: Source code, VHDL, Microcontroller
  • Pages : 27 (5387 words )
  • Download(s) : 88
  • Published : April 23, 2013
Open Document
Text Preview
Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

1

The Spartan-3E Tutorial 2: Introduction to using the PicoBlaze Microcontroller Version 1.0

Author: Jasmine Banks

© 2012, Queensland University of Technology

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

2

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

3

Acknowledgements
Parts of this tutorial are based on an earlier version written for Project Navigator version 9.2, written by Michael Bakker, Matthew Grace and Warwick Kilroy, as part of ENB345 – Advanced Design in 2008.

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

4

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

5

Glossary
ALU DOS FPGA JTAG LED KCPSM3 Arithmetic Logic Unit Disk Operating System Field Programmable Gate Array Joint Test Action Group Light Emitting Diode (K)Constant Coded Programmable State Machine – a very simple 8-bit microcontroller optimised for Spartan-3 devices [2]. Reduced Instruction Set Computing VHSIC Hardware Description Language Very High Speed Integrated Circuit

RISC VHDL VHSIC

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

6

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

7

Table of Contents
page Acknowledgements ……………………………………………………….......……………… Glossary ……………………………………………………………………….......…………. List of Figures ……………………………………………………………....…….…………. List of Tables ………………………………………………………………………………… 1.0 Introduction ………………………………………………………………....……....…… 1.1 Design Functionality ………………………………………………………..……….. 1.2 Relevant Documentation ..…………………………….……………………..………. 1.3 Pre-requisite Knowledge …………………………………………………………….. 1.4 Scope ……………………………………………………………………….......…..... 2.0 Equipment …………………………………………………………………..................…. 3.0 Background – The PicoBlaze Microcontroller …………………………….....…...……… 4.0 Procedure Part 1 – PicoBlaze ………………………………………….....…….………… 4.1 PicoBlaze Download ………………………………………….....…………………… 4.2 Copy Files …………………………………………………….……………………… 4.3 Assembly Language Code …………………………….............……………………… 4.4 Running the Assembler …………………………….....……………………………… 5.0 Procedure Part 2 – Project Navigator ………………......…………………........………… 5.1 Startup …………………………………………………………………...……....…… 5.2 Creating a New Project ……………………………………………………....…....…. 5.3 Adding Source Files ………………………………………………………..…............ 5.4 tutorial.vhd and kcpsm3.vhd - Observations ……………………....……....…………. 5.5 Adding a top_level Entity ………………………………………….....……………… 5.6 Editing the top_level Entity …………………………………………….......………... 5.7 top_level.vhd – Code …………………………………….......………………............. 5.8 Syntax Checking ………………………………………………...…………………… 5.9 Pin Assignment ………………………………………………….....………………… 5.10 Synthesize, Translate, Map and Place & Route ……........………..……....………… 5.11 Download Design to Board ………………………………………..………...……… 6.0 Running the Program on the Spartan-3E Board …………………………..……………… 7.0 Further Information ………………………………………………………......…………… 8.0 References ………………………………………………………………...……....……… Appendix A – top_level.vhd ……………………………………………………......………… 3 5 9 13 15 15 15 15 15 17 19 21 21 21 22 23 31 31 32 35 38 40 45 49 52 54 59 61 75 77 79 81

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

8

Xilinx Spartan-3E

Project Navigator Version 14.3

Tutorial 2: Introduction to Using the PicoBlaze Microcontroller

9

List of Figures
page Figure 2.1: Spartan-3E Development Board ……………………………………..................... Figure 3.1: PicoBlaze components...
tracking img