URL
https://opencores.org/ocsvn/ion/ion/trunk
Subversion Repositories ion
[/] [ion/] [trunk/] [src/] [readme.txt] - Rev 246
Go to most recent revision | Compare with Previous | Blame | View Log
Code samples:=============This directory contains a few test applications that can be simulated and runon real hardware (except for the opcode test which can only be simulated). Seethe readme file and the makefile for each program.The makefiles have been tested with the CodeSourcery toolchain for windows (thatcan be downloaded from www.codesourcery.com). They should work with othertoolchains and have been occasionally tested with the Buildroot toolchainfor GNU/Linux.Most makefiles have two targets, to create a package for the simulation testbench or for the synthesizable demo.Target 'sim' will build a the simulation test bench package as vhdl file'/vhdl/tb/sim_params_pkg.vhdl'. The tool used to build the package is thepython script '/tools/build_pkg/build_pkg.py'.Target 'demo' will build a package for the synthesizable demo as file'/vhdl/SoC/bootstrap_code_pkg.vhdl', using the same python script.The build process will produce a number of binary files that can be run on thesoftware simulator. A DOS BATCH file has been provided for each sample thatruns the simulator with the proper parameters (swsim.bat).The simulation log produced by the software simulator can be compared to the logproduced by Modelsim (the only hdl simulator supported yet); they should beidentical (but see notes on the project doc).Support code library:=====================Many of the code samples use support code from an ad-hoc library included withthe project (src/common/libsoc). Before making any of the samples you shouldmake the library ('make' with no target). That command will build lib file'src/common/libsoc/libsoc.a'.Building VHDL code from templates:==================================The python script '/tools/build_pkg/build_pkg.py' is used by all the samples toinsert binary data on vhdl templates, building VHDL packages.Assuming you have Python 2.5 or later in your machine, call the script withpython build_pkg.py --helpto get a short description and usage instructions.There's a more detailed description in script source.
Go to most recent revision | Compare with Previous | Blame | View Log
