New Horizons

Welcome to my blog

My name is Sven Andersson and I
work as a consultant in embedded
system design, implemented in ASIC
and FPGA.
In my spare time I write this blog
and I hope it will inspire others to
learn more about this fantastic field.
I live in Stockholm Sweden and have
my own company


You are welcome to contact me
and ask questions or make comments
about my blog.


New Horizons
What's new
Starting a blog
Writing a blog
Using an RSS reader

Zynq Design From Scratch
Started February 2014
1 Introduction
Changes and updates
2 Zynq-7000 All Programmable SoC
3 ZedBoard and other boards
4 Computer platform and VirtualBox
5 Installing Ubuntu
6 Fixing Ubuntu
7 Installing Vivado
8 Starting Vivado
9 Using Vivado
10 Lab 1. Create a Zynq project
11 Lab 1. Build a hardware platform
12 Lab 1. Create a software application
13 Lab 1. Connect to ZedBoard
14 Lab 1. Run a software application
15 Lab 1. Benchmarking ARM Cortex-A9
16 Lab 2. Adding a GPIO peripheral
17 Lab 2. Create a custom HDL module
18 Lab 2. Connect package pins and implement
19 Lab 2. Create a software application and configure the PL
20 Lab 2. Debugging a software application
21 Running Linux from SD card
22 Installing PetaLinux
23 Booting PetaLinux
24 Connect to ZedBoad via ethernet
25 Rebuilding the PetaLinux kernel image
26 Running a DHCP server on the host
27 Running a TFTP server on the host
28 PetaLinux boot via U-boot
29 PetaLinux application development
30 Fixing the host computer
31 Running NFS servers
32 VirtualBox seamless mode
33 Mounting guest file system using sshfs
34 PetaLinux. Setting up a web server
35 PetaLinux. Using cgi scripts
36 PetaLinux. Web enabled application
37 Convert from VirtualBox to VMware
38 Running Linaro Ubuntu on ZedBoard
39 Running Android on ZedBoard
40 Lab2. Booting from SD card and SPI flash
41 Lab2. PetaLinux board bringup
42 Lab2. Writing userspace IO device driver
43 Lab2. Hardware debugging
44 MicroZed quick start
45 Installing Vivado 2014.1
46 Lab3. Adding push buttons to our Zynq system
47 Lab3. Adding an interrupt service routine
48 Installing Ubuntu 14.04
49 Installing Vivado and Petalinux 2014.2
50 Using Vivado 2014.2
51 Upgrading to Ubuntu 14.04
52 Using Petalinux 2014.2
53 Booting from SD card and SPI flash
54 Booting Petalinux 2014.2 from SD card
55 Booting Petalinux 2014.2 from SPI flash
56 Installing Vivado 2014.3

Chipotle Verification System

EE Times Retrospective Series
It all started more than 40 years ago
My first job as an electrical engineer
The Memory (R)evolution
The Microprocessor (R)evolution

Four soft-core processors
Started January 2012
Table of contents
OpenRISC 1200
Nios II

Using the Spartan-6 LX9 MicroBoard
Started August 2011
Table of contents
Problems, fixes and solutions

FPGA Design From Scratch
Started December 2006
Table of contents
Acronyms and abbreviations

Actel FPGA design
Designing with an Actel FPGA. Part 1
Designing with an Actel FPGA. Part 2
Designing with an Actel FPGA. Part 3
Designing with an Actel FPGA. Part 4
Designing with an Actel FPGA. Part 5

A hardware designer's best friend
Zoo Design Platform

Installing Cobra Command Tool
A processor benchmark

Porting a Unix program to Mac OS X
Fixing a HyperTerminal in Mac OS X
A dream come true

Stockholm by bike

The New York City Marathon

Kittelfjall Lappland

Tour skating in Sweden and around the world
Wild skating
Tour day
Safety equipment
A look at the equipment you need
Skate maintenance
Books, photos, films and videos
Weather forecasts

38000 feet above see level
A trip to Spain
Florida the sunshine state

Photo Albums
Seaside Florida
Ronda Spain
Sevilla Spain
Cordoba Spain
Alhambra Spain
KittelfjÀll Lapland
Landsort Art Walk
Skating on thin ice

100 Power Tips for FPGA Designers

Adventures in ASIC
Computer History Museum
Design & Reuse
d9 Tech Blog
EDA Cafe
EDA DesignLine
Eli's tech Blog
FPGA Arcade
FPGA Central
FPGA developer
FPGA Journal
FPGA World
Lesley Shannon Courses
Mac 2 Ubuntu
Programmable Logic DesignLine
World of ASIC

If you want to be updated on this weblog Enter your email here:

rss feed

Saturday, August 20, 2011
Xilinx Spartan-6 LX9 MicroBoard Tutorial
Table of contents

Part 51

Five years later
ISE Design Suite 13.2 installation

Part 52

Embedded design flow
ISE Project Navigator
New project wizard
Running a simulation

Part 53

Xilinx Platfrom Studio XPS
Base system builder

Part 54

Using the ISE simulator
Overview of ISim
Batch mode run
Simulation steps
Compiling the design
Run a simulation
Debugging the design

Part 55

Creata a MicroBlaze peripheral interface

Part 56

Adding a PLB interface to ETC
PLBV46 slave intrface
Importing an existing peripheral block

Part 57

Fixing a terminal in Ubunu Linux

Part 58

Using the Software Development Kit SDK
Exporting the hardware design
Writing our first c-program
Create a board support package BSP
Create a new source file
Generate a linker script
Compile the program

Part 59

Running a simulation using ISim
Generate memory initialization files
Program execution

Part 60

The MicroBlaze soft processor
Configure the IP
The Configuration Wizard

Part 61

Looking for a new development board
Introduction to the Avnet Spartan-6 LX9 MicroBoard
The development kit
Avnet Design Resource Center
Connecting the board to a host computer
Downloading and installing Xilinx Design Suite 13.2

Part 62

Connecting a terminal
Embedded demonstration project
GPIO test

Part 63

Configuring the FPGA
The integrated solution
Installing Diligent software drivers
iMPACT FPGA configuration tool

Part 64

Installing a board support package
Finding XBD files

Part 65

Putting together an embedded system
Xilinx Platform Studio XPS
Getting help
EDK reference manual
Starting XPS
Addng and removing peripherals
Generate a block diagram
Generate a design report
The system file tree
Synthesise the design
Generate the bitstream

Part 66

Using the Software Developmnet Kit SDK
Getting help
Starting a new C-project
Generate a linker script
Program the FPGA
Setting up a run configuration
Run the program

Part 67

Adding an EDK IP to an embedded system
Skipping ISE
Finding and adding the IP
Generate addresses
GPIO interface
Connecting ports
Modifying the UCF file
Generate new netlist and bitstream

Part 68

Writing code for the new peripheral
Create a new application
Adding a source file
Writing the C code
Generate a linker script
Test the new system with the new application

Part 69

Adding a custom IP to an embedded system
Create a new peripheral
Files generated
Customize the new peripheral
Adding user code
Adding new ports to the mpd file
Adding the custom IP to the system
Export to SDK

Part 70

Embedded system simulation
Behavioral simulation
Setting up the simulation environment
Adding a test bench
Select an ELF file
Generate behavioral simulation models
Modify the test bench file
Running a simulation
Changing the time precision
Looking at MicroBlaze program execution

Part 71

Embedded ChipScope Debugging
ChipScope Pro tool overview
Adding the ChipScope AXI monitor core
Making the design smaller
Analyzing the design with ChipScope
Connecting ChipScope to target
Adding AXI signal names
Capture waveform data

Part 72

Running Linux on the LX9 MicroBoard
Choosing PetaLinux
Building the hardware platform
Configuring the MicroBlaze soft processor
Configuring the debug module
Synthesis the design
Place and route the design

Part 73

Installing PetaLinux SDK
Downloading the software
Extract the PetaLinux package
Install the license file
Setup PetaLinux working environment
PetaLinux BSP installation process

Getting started with PetaLinux SDK

Part 74

Networking configuration procedures
Setup a TFTP server
Installing the TFTP server
Setting up the transfer directory
Setting up the configuration file
Starting the TFTP server
Setup a NFS server
Starting NFS and Portmap services
Mounting the shared directory
Using the TFTP server
Telnet on the board
Using FTP

Part 75

Board bring up with PetaLinux SDK
Building the hardware platform
Configuring software settings
Add PetaLinux repository
First stage boot loader
Adding FS-boot
Universal boot loader
Configure fs-boot settings
How to find the Flash Partition Table
No vector table needed
Build the fs-boot project
Finalising the FPGA bitstream
Workspace directory structure

Part 76

Create a new PetaLinux software platform
Configure the software platform
Configure the Linux kernel
Configure user applications and system settings
Update the default configuration
Build PetaLinux
Test PetaLinux on the board
Direct kernel boot via JTAG
Indirect kernel boot via u-boot
Running PetaLinux in the QEMU emulator

Part 77

Writing our first application program
Creating a new application
Building the application
Rebuild the PetaLinux software image
Test our new application
Application development

Part 78

Writing and debugging an application program
Compile and build the application
Testing the application
Debugging our application
Prepare the build system for debugging
Rebuild the PetaLinux image
Performing a debug session
Target settings
Setting breakpoints
Running the program
Stepping the program
Finishing the debug session

Part 79

Configuring the Spartan-6 FPGA
Internal configuration process
Internal configuration interfaces
External configuration interfaces
Configuring the Spartan-6 upon power-up
LX9 MicroBoard configuration logic
Configure the FPGA from external source
Programming the serial SPI flash
Programmimg via the on-board USB to JTAG circuitry
Programming the SPI flash thorugh JTAG
Master SPI dual and quad commands

Part 80

Booting PetaLinux from SPI flash
Booting from SPI flash run sequence
Copying the u-boot loader to SPI flash
Xilinx Microprocessor Debugger
Downloading the u-boot elf file
Copying the PetaLinux image file
Copying the u-boot image
Booting PetaLinux

Part 81

Installing custom web server content
Create a new application
Adding HTML files
The index.html file
Changing the makefile
De-selecting the uWeb application
Rebuild the PetaLinux system image
Boot the system image

Modify the web page

Part 82

Building a web-enabled application
Create a new application
Using a CGI script
Enable the new application
Build a new image
Booting the new image
Start the httpd service

Files in the httpd directory

Controlling hardware from the web browser

Part 83

Building a virtual machine
Choosing a virtualization product
Installing VirtualBox
Debian guest OS
Fixes to Debian 6.0.3
VirtualBox setup

Booting Debian

Installing Xilinx Design Suite

Installing PetaLinux SDK
Fixing problems with permissions

USB setup

Editing udev rules

Part 84

Automating the build process
Running Xilinx tools using makefiles
Running the complete flow
Setting up our own make environment
Xilinx tools using scripting
Why using command-line mode
Build flows


PlanAhead design and analysis tool

Scripting languages


Running a Tcl script

Setting up a Tcl script

Running XFLOW
XFLOW syntax

Synthesize our design using Platgen

Using Data2MEM
The complete configuration script

Part 85

Building our System-on-Chip design
Returning to the ISE Project Navigator
Create a new project in ISE
Renaming the constraints file
Starting ISE
ISE Design Suite Center
Importing our XPS design

Generating top HDL source file

Adding the constraints file

Edit the constraints file

Synthesis the design

Run synthesis

Synthesis results
Implementing the design



Placing and routing the design
Synthesis results

Generate Programming File

Part 86

Using Tcl scripts
Enabling all processes
Running the implementation script
Writing Tcl scripts
Running Tcl scripts

Part 87

Using PlanAhead
Starting PlanAhead
Create a new project
Adding BMM file
Implement the design
Running the build program
Running the map program
The implementation passed

Primitives statistics

FPGA device

Generate bitstream


Part 88

The Spartan-6 FPGA
Product specification
Spartan-6 XC6SLX9
Memory Controller Block
DSP48A1 DSP element
DSP48Ai slice in detail
The BRAM block
Clock Management Tile
Phase Lock Loop PLL

Digital Clock Managers

Open implemented design
Zooming in

Slice description
One single slice

One single LUT

Part 89

Writing Linux device drivers
Device drivers for custom hardware
Userspace access via /dev/mem
Running an example
Build a new image
Boot the board
Creating an UIO driver
Configure user application
Configure the kernel to support UIO

Identifying the device to be controlled by UIO

Edit the DTS file
Rebuilding and booting PetaLinux

Load the UIO module
Run gpio-uio-test

Part 90

Using Pmods
The Digilent Pmod 3-axis accelrometer
The tutorial
The hardware platform
Copy an EDK project
Xilinx Platdorm Studio XPS
Adding the ADI peripheral core
Adding the IP core

The LX9 MicroBoard

Part 91

Writing software to control the accelerometer
Starting SDK
Creating a new C-project
Adding c-program files
Generate a linker script
Edit the c-program
Building the project
Configure the Spartan-6 FPGA
Start the console program

Start program execution

Posted at 14:40 by


Leave a Comment:


Homepage (optional)


Previous Entry Home Next Entry