OpenCores
URL https://opencores.org/ocsvn/openriscdevboard/openriscdevboard/trunk

Subversion Repositories openriscdevboard

[/] [openriscdevboard/] [trunk/] [cyc2-openrisc/] [sim/] [readme.txt] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sfielding
HOW TO run a simulation
2
 
3
Note, if you want to test changes to a peripheral, it may be
4
easier and faster to simulate the peripheral seperately from the
5
cyc2-openrisc project. See spiMaster project for example.
6
 
7
First build the software application. sw/memTest can be used
8
as an example.
9
From Cygwin window, cd to sw/memTest
10
make clean all
11
This will build memTestSim.8bit.hex, and copy the file to the sim directory
12
as memory.hex
13
 
14
Run
15
  build_icarus.bat
16
to compile the source files, and
17
  run_icarus.bat
18
to run the simulation. You should see DRAM activity reported to the
19
command window. You can turn this off by setting Debug = 1'b0 in
20
model/mt48lc2m32.v. When you see the DRAM write activity finish, leave the
21
simulation to run for one more minute (to let the UART output complete), and
22
then stop the simulation using
23
  ^C ^C
24
And quit the simulation.
25
You can view FPGA block RAM activity in sram.log, and the UART output
26
in uart.log
27
Now from a command window, cd to the sim directory, and run GTKwave;
28
  GTKwave wave.vcd
29
From the GTKWave application;
30
  Search >> Signal Search Tree
31
and browse design hierarchy and select the signals you wish to view.
32
 
33
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.