User guide

System Generator for DSP User Guide www.xilinx.com 171
UG640 (v 12.2) July 23, 2010
Designing with Embedded Processors and Microcontrollers
Click on the Output tab and enter the following:
a. The Word Type should be Unsigned and Number of Bits should be set to 18 with
the Binary Point at 0.
5. Edit the PicoBlaze assembly program.
a. Open pico_code.psm.
b. Add instructions as described in the pico_code.psm file. For detailed
information about the PicoBlaze instruction set see the Xilinx Application Note
XAPP627 at
http://www.xilinx.com/support/documentation/application_notes/xapp627.p
df
c. Save the file.
6. Run the assembler to generate the memory initialization file.
Note:
The Xilinx PicoBlaze Assembler is only available with the Windows Operating System. Third-
party PicoBlaze Assemblers are available for Linux, but are not shipped by Xilinx.
In the MATLAB command window, type:
>> xlpb_as -p pico_code.psm
xlpb_as stands for Xilinx PicoBlaze Assembler.
A file named fill_pico_code_program_store.m was created.
7. Simulate the Simulink model.
Run the simulation by clicking on the Start Simulation Icon.