|
|
From SystemC to the FPGA
- Create a FPGA programming file from the synthesizable mMIPS
SystemC processor using CoCentric, FPGA Compiler II and WebPack.
- Try to optimzie the FPGA hardware by playing with the settings
in the FGPA Compiler II. Use information from FPGA Compiler II and
WebPack for this.
- Program the FPGA using the JTAG Device Programmer from WebPack
and the programming file (.bit extension) created during the
previous steps.
To avoid problems you will need 2 computers that are connected
to the FPGA board. One is used for programming the FPGA and the
other is used for running the debugging software SpyComm. Both
computers must be connected to the FPGA board continuesly.
You must disable the clock and enable signal through the dip
switches dip1 (clock_enable) and dip2 (enable) (See figure 7 in
the document: "Debugging
mMIPS").
- Now it is time to test the processor. To do this you must
start the SpyComm software. The first time you must do this from
the SpyComm directory as it requires the installation of a device
driver (you will also need administrator rights for this).
- Reset the mMIPS.
- Upload the mips_rom.bin and mips_ram.bin files to the mMIPS
using SpyComm.
- Execute the program by first enabeling the processor (dip
switch dip2) and then the clock (dip1).
- The program is finished if the program counter is around 0x14
or 0x1C. You can see this in the SpyComm software or on the FPGA
board.
- Get the data from the data memory using SpyComm and analyze
it.
| |