Computer Laboratory

ECAD and Architecture Practical Classes

Exercises

The ticking criteria for this lablet is to complete the second of these exercises to the ticker's satisfaction. Any suggested implementation may be ignored in favour of another, sensible approach.

Exercise 1 - Basic Mandelbrot Viewer

Files Provided

mandelbrot.zip
A simple implementation of the mandelbrot viewer, using a single TTC core in the ring.

Behaviour

Produce a plot of the Mandelbrot Set on the tPad LCD.

Implementation Advice

In Quartus, go Tools | NIOS II Software Build Tools for Eclipse. In your project directory, create a folder called software and set this as the Eclipse working directory.

In Eclipse, go File | New | NIOS II Application and BSP from Template, select the SOPC file generated from your Qsys project and use the Blank Project template. Click Finish.

Download the provided file into your software directory. Right click on the main project and go Import... | General | Archive File. Browse to select the archive file and click Finish.

To compile projects, go Project | Build All.

Go Run | Run Configurations.... Right click on NIOS II Hardware and select New. Change Name and Project name to that of your project. In the Target Connection tab, there should be a single listing under Processors; if not, scroll to the right and click Refresh Connections. Tick both boxes under System ID checks; these relate to debugging devices and have not been included in this architecture. Finally, click Run to upload the binary and open a NIOS II terminal.

If the output is not as expected, you may need to verify your Qsys project, regenerate, recompile and reprogram. In Eclipse, you will then need to right click on the BSP project and go NIOS II | Generate BSP, updating the HAL to reflect the changes.

Previous  |  Contents  |  Next