Posts

Showing posts with the label pico blaze

OPENPICIDE (simulator for picoblaze) : beginners tutorial

WORKING WITH OPENPICIDE (Continuation of the tutorial which describes the setup of the software in ubuntu) How to open a new project 1. Project -> new project 2. In the window that pops up version -> fil as per requirements processor -> XIlinx picoblaze family Processor (tab) -> Picoblaze 3 (Note : Memory bank size = 1024 instruction. Rest is the default) compiler (tab) -> Entity name : prog_rom (Name of required output vhd/v file) VHDL template file : /location_of_kcpsm3/Assembler/rom_form.vhd Verilog template file : /location_of_kcpsm3/Assembler/rom_form.v sources -> if you have the assembly program ready put it here applicaiton -> editor options set as per user requirement NOTE IMPORTANT while writing the program 1. Certain syntaxes are different INPUT - IN OUTPUT - OUT RETURN - RET need to write a script to automate conversion. 2. "constants" syntax is different - yet to find out the new syntax (kindly let me kn...

KCPSM Assembler and simulator for picoblaze

Hi :) (: I was implementing a code in kcpsm assembly language for the picoblaze mc. Every time i had to test it, I had to dump it on the FPGA and look for the desired output. I dint have the time to search for a kcpsm simulator then so had to manage with the poor debugging capabilities and long dumping latencies for completing the assignment. More over KCPSM assembler that comes with the package, runs only in a windows environment. so i had to use DOSEMU everytime to just compile the program. All this sucked big time. So i went in search of a simulator/assembler for linux and then there was OPENPICIDE Open Pic IDE is open and supports linux windows mac and is downright amazing. Here i have included the steps to install and run openpicide in an UBUNTU system. Simulation of Picoblaze assembly code There are two tools to simulate picoblaze assembly language 1. openPICIDE 2. picoasm OpenPICIDE Integrated assembler development environment (IDE). Provides the following component...

Procedure : writing and burning the PICOBLaze assembly code onto the FPGA board.

Here is the general procedure that is followed to burn an assembly code onto the Pico Blaze MC. 1. Write your own ROM program by learning the PicoBlaze instruction sets.   2.  Compile  the  program  to  VHDL  by  using  KCPSM  assembler  (This assembler  requires  32­bit  operating  system) 3. Synthesize the VHDL program and the PicoBlaze soft code in ISE. 4. Generate bit file (You also need to include your modified UCF file).   5. Download the bit file to the FPGA and check if that works. You can find the detailed procedure in the manual that comes along with the downloads (last post). Read page 40 of the KCPSM manual on how to use the KCPSM assembler. STEP BY STEP PROCEDURE Problem Statement : Run the following  assembly program on the FPGA Board (we dont care about the output just  burning the program onto the soft MC) loop : INPUT s2,00     ...