<< Chapter < Page Chapter >> Page >
In this lab you are shown how to create an assembler source file that will allow you to change the pulse width of an output pulse from a PicoBlaze™ microcontroller, compile it, run the code within System Generator, and simulate it.

Introduction

In this lab you are shown how to create an assembler source file that will allow you to change the pulse width of an output pulse from a PicoBlaze™ microcontroller, compile it, run the code within System Generator, and simulate it.

There are completed examples in c:\xup\workshops\dsp_flow\labs\lab9\lab9_soln.

After completing this lab, you will be able to:

  • Create assembler source code for a PicoBlaze controller
  • Compile the source code for the PicoBlaze controller
  • Simulate the source code and the PicoBlaze controller and view the output response from the controller
  • Change the assembler code to allow the pulse width high and lows to be defined individually

Design description

The design example in this lab is made of a single PicoBlaze controller. The source code generates an output from the controller whose pulse width is controlled by a constant held in a PicoBlaze register. This controller, and the code, is simulated using System Generator.

Procedure

The source code will be generated and compiled. A Perl script will be run to compile the code and to load it into the workspace.

This lab comprises three primary steps. You will develop the assembler code for a simple pulse generation application running on PicoBlaze, and assemble it in Step 1. Step 1 also shows you how to assign the program to ROM and how to simulate the design. Step 2 requires you to simulate the design. In Step 3, you are asked to add additional logic and modify the source code to generate pulses of different duty cycles. Below each general instruction for a given procedure, you will find accompanying step-by-step directions and illustrated figures providing more detail for performing the general instruction. If you feel confident about a specific instruction, feel free to skip the step-by-step directions and move on to the next general instruction in the procedure.

If you are unable to complete the lab at this time, you can download the lab files for this module from the Xilinx University Program site at (External Link)

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Xilinx university program: professor workshop. OpenStax CNX. Jun 24, 2004 Download for free at http://cnx.org/content/col10233/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Xilinx university program: professor workshop' conversation and receive update notifications?

Ask