<< 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.
After completing this lab, you will be able to:
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.
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.
Notification Switch
Would you like to follow the 'Xilinx university program: professor workshop' conversation and receive update notifications?