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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [readme.txt] - Blame information for rev 184

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 183 ja_rd
Code samples:
2
=============
3
 
4 2 ja_rd
This directory contains a few test applications that can be simulated and run
5 183 ja_rd
on real hardware (except for the opcode test which can only be simulated). See
6 2 ja_rd
the readme file and the makefile for each program.
7
 
8
The makefiles have been tested with the CodeSourcery toolchain for windows (that
9 183 ja_rd
can be downloaded from www.codesourcery.com). They should work with other
10
toolchains and have been occasionally tested with the Buildroot toolchain
11 2 ja_rd
for GNU/Linux.
12
 
13
Most makefiles have two targets, to create a simulation test bench and a
14
synthesizable demo.
15
 
16 183 ja_rd
Target 'sim' will build the simulation test bench as vhdl file
17
'/vhdl/tb/mips_tb2.vhdl'. This is the default test bench expected by the
18
simulation script '/sim/mips_tb2.do'.
19 2 ja_rd
 
20 183 ja_rd
Target 'demo' will build a synthesizable demo as '/vhdl/demo/mips_mpu.vhdl'.
21 2 ja_rd
 
22 183 ja_rd
The build process will produce a number of binary files that can be run on the
23
software simulator. A DOS BATCH file has been provided for each sample that
24
runs the simulator with the proper parameters (swsim.bat).
25 2 ja_rd
 
26
 
27 183 ja_rd
Support code library:
28
=====================
29 2 ja_rd
 
30 183 ja_rd
Many of the code samples use support code from an ad-hoc library included with
31
the project (src/common/libsoc). Before making any of the samples you should
32
make the library ('make' with no target). That will build file
33
'src/common/libsoc/libsoc.a'.
34
 
35
 
36
 
37
Building VHDL code from templates:
38
==================================
39
 
40
The python script 'bin2hdl.py' is used by all the samples to insert binary data
41
on vhdl templates.
42 2 ja_rd
Assuming you have Python 2.5 or later in your machine, call the script with
43
 
44
    python bin2hdl.py --help
45
 
46
to get a short description.
47
There's a more detailed description in the project main doc.

powered by: WebSVN 2.1.0

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