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

Subversion Repositories ion

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

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 229 ja_rd
Most makefiles have two targets, to create a package for the simulation test
14
bench or for the synthesizable demo.
15 2 ja_rd
 
16 197 ja_rd
Target 'sim' will build a the simulation test bench package as vhdl file
17 229 ja_rd
'/vhdl/tb/sim_params_pkg.vhdl'. The tool used to build the package is the
18
python script '/tools/build_pkg/build_pkg.py'.
19 2 ja_rd
 
20 197 ja_rd
Target 'demo' will build a package for the synthesizable demo as file
21 229 ja_rd
'/vhdl/SoC/bootstrap_code_pkg.vhdl', using the same python script.
22 2 ja_rd
 
23 183 ja_rd
The build process will produce a number of binary files that can be run on the
24
software simulator. A DOS BATCH file has been provided for each sample that
25
runs the simulator with the proper parameters (swsim.bat).
26 2 ja_rd
 
27 197 ja_rd
The simulation log produced by the software simulator can be compared to the log
28
produced by Modelsim (the only hdl simulator supported yet); they should be
29
identical (but see notes on the project doc).
30 2 ja_rd
 
31 197 ja_rd
 
32
 
33 183 ja_rd
Support code library:
34
=====================
35 2 ja_rd
 
36 183 ja_rd
Many of the code samples use support code from an ad-hoc library included with
37
the project (src/common/libsoc). Before making any of the samples you should
38 197 ja_rd
make the library ('make' with no target). That command will build lib file
39 183 ja_rd
'src/common/libsoc/libsoc.a'.
40
 
41
 
42
 
43
Building VHDL code from templates:
44
==================================
45
 
46 229 ja_rd
The python script '/tools/build_pkg/build_pkg.py' is used by all the samples to
47
insert binary data on vhdl templates, building VHDL packages.
48 2 ja_rd
Assuming you have Python 2.5 or later in your machine, call the script with
49
 
50 229 ja_rd
    python build_pkg.py --help
51 2 ja_rd
 
52 197 ja_rd
to get a short description and usage instructions.
53 229 ja_rd
There's a more detailed description in script source.
54
 

powered by: WebSVN 2.1.0

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