Tutorial: Building a Mico32 platform for FPG-EYE

From ErikaWiki

Revision as of 08:30, 6 October 2011 by Eguidieri (Talk | contribs)
Jump to: navigation, search

This page explains how to build a configuration file for FPG-EYE's fpga from a source platform with binary camera. To do that you neead a local copy of Erika repopsitory, to get that follow ERIKA Enterprise and RT-Druid SVN Access page's instructions. The MSB file project is located in the directory: ee/trunk/ee/examples/mico32/demo/platforms/camera_50/msb/, while the ispLever file project is located in the directory: 'ee/examples/mico32/demo/platforms/camera_50/isplever/ inside of ERIKA Enterprise repository.

Contents

Import platform project in MSB Ide

Launch MSB 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 the file camera_50.msb from the repository copy:

Select camera_50.msb

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

Select camera_50.msb platform architecture

Note: Do not 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 Verilog source is generated. To use the platform in FPG-EYE, the source code must be compiled in binary format. The next session explain about how to compile the Verilog code for FPGA configuration file.

Import hardware platform project in ispLever Ide

Open ispLever Ide and select Open Project under File menu:

Open project from ispLever

Load camera_50.msb from the repository copy:

Load camera_50.msb

The hardware project structure is visible under Sources in the Project window. Ensure that camera_50_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 camera_50 is a binary version. So it is necessary to import in the ispLever the netlist of the camera. To do this, move the file camera_component_mod.ngo, from the packet camera 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 would be placed in the ebr non volatile memory. For the bootloader reference guide, refer section mico32_bootloader. Move this file from the packet camera 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)

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

Personal tools