Tutorial: Building a Mico32 platform for FPG-EYE

From ErikaWiki

Revision as of 14:13, 12 January 2012 by Erikadds (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

This page explains how to build a configuration file for FPG-EYE's fpga from a source platform with binary camera. Prerequisites:

For further info see this page: ERIKA Enterprise and RT-Druid SVN Access instructions.

  • To download the platform JEDEC file, you need a programming cable connected to the JTAG port of the board, follow the instructions on How programming the FPG-EYE board.

Import platform project in LatticeMico System IDE

Launch LatticeMico System software, and click on MSB Perspective button (as the following figure):

MSB button

Open the Open Platform form by selecting the File->Open Platform menu item:

Open MSB platform

Click the Browse button and load ee/trunk/ee/examples/mico32/demo/platforms/fpg_eye_mico32/msb/soc/fpg_eye_mico32.msb file inside Erika repository local copy:

Select fpg_eye_mico32.msb

The platform's architecture is visible under Sources in Project window:

Select fpg_eye_mico32.msb platform architecture

Note: You don't need to make any changes to the platform. And finally, generate the platform source by selecting the Run Generator menu item:

Clicking on Run Generator we have the platform source

The mico32 platform's Verilog source is generated. To use this platform in FPG-EYE, the source code must be compiled in binary format. The next session explains how to compile the Verilog platform's code with ispLEVER tool.

Import hardware platform project in ispLever IDE

Open ispLEVER and select Open Project under File menu:

Open project from ispLever

Load ee/examples/mico32/demo/platforms/fpg_eye_mico32/isplever/fpg_eye_mico32.syn inside Erika repository local copy:

Load fpg_eye_mico32.msb

The hardware project structure is visible under Sources in Project window. Ensure that fpg_eye_mico32_wrapper.v is selected and active:

ispLever project structure

Before compiling the ispLever project, there are two more steps to perform (refer sections below).

Importing camera_component_mod.ngo in the ispLever

The component camera installed in the platform fpg_eye_mico32 is a binary version. So it is necessary to import in the ispLever the netlist of the camera. To do this, copy the file camera_component_mod.ngo, from the FPG-EYE Software Packet to the ispLever project directory.

camera_component_mod.ngo in ispLever project directory

Importing meminit_ebr.mem bootloader file in the ispLEVER

The file meminit_ebr.mem is a compiled file. It is the program bootloader which will be placed in the XP2 EBR non volatile memory. For the bootloader reference guide, refer section Tutorial: Running ERIKA on Mico32 and FPG-EYE. Copy this file from the FPG-EYE Software Packet to the ispLever project directory.

meminit_ebr.mem in ispLever project directory

Build the platform with ispLEVER

On Processes of current source click and select Generate Data File (JEDEC) then right click and select Force :

Force from Generate Data File (JEDEC) menu

When the process is complete the file the FPGA configuration file JEDEC is ready to use.

Generate Data File (JEDEC)

Import hardware platform project in Diamond IDE

Open Diamond and select Open Project under File menu:

Open project from Diamond

Load ee/examples/mico32/demo/platforms/fpg_eye_mico32/diamond/fpg_eye_mico32.syn inside Erika repository local copy:

Load fpg_eye_mico32.msb

The hardware project structure is visible under Sources in Project window. Ensure that fpg_eye_mico32_wrapper.v is selected and active:

Diamond project structure

Before compiling the Diamond project, there are two more steps to perform (refer sections below).

Importing camera_component_mod.ngo in the Diamond

The component camera installed in the platform fpg_eye_mico32 is a binary version. So it is necessary to import in the Diamond the netlist of the camera. To do this, copy the file camera_component_mod.ngo, from the FPG-EYE Software Packet to the Diamond project directory.

camera_component_mod.ngo in Diamond project directory

Importing meminit_ebr.mem bootloader file in the Diamond

The file meminit_ebr.mem is a compiled file. It is the program bootloader which will be placed in the XP2 EBR non volatile memory. For the bootloader reference guide, refer section Tutorial: Running ERIKA on Mico32 and FPG-EYE. Copy this file from the FPG-EYE Software Packet to the Diamond project directory.

meminit_ebr.mem in Diamond project directory

Build the platform with Diamond

On Processes of current source click and select Generate Data File (JEDEC) then right click and select Return All :

Force from Generate Data File (JEDEC) menu

When the process is complete the file the FPGA configuration file JEDEC is ready to use.

Generate Data File (JEDEC)

Programming the platform on FPG-EYE board

The last step is download the JEDEC file into FPG-EYE. Please follow the Programming the FPG-EYE board istructions.

Personal tools