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

Subversion Repositories ion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /ion/trunk/src
    from Rev 182 to Rev 183
    Reverse comparison

Rev 182 → Rev 183

/common/libsoc/makefile
31,9 → 31,10
printf-stdarg.o:
syscalls.o: $(SRC)/soc.h
hw_ion_mpu.o: $(SRC)/soc.h $(SRC)/hw.h
 
# The FP math library is compiled separately for float support...
fp-bit-float.o: $(SRC)/fp-bit.c
$(CC) $(CFLAGS) -DFLOAT=1 $(SRC)/fp-bit.c -o fp-bit-float.o
# ...and for double support
fp-bit-double.o:
$(CC) $(CFLAGS) $(SRC)/fp-bit.c -o fp-bit-double.o
 
/readme.txt
1,29 → 1,44
Code samples:
=============
 
This directory contains a few test applications that can be simulated and run
on real hardware, except for the opcode test which can only be simulated). See
on real hardware (except for the opcode test which can only be simulated). See
the readme file and the makefile for each program.
 
The makefiles have been tested with the CodeSourcery toolchain for windows (that
can be downloaded from www.codesourcery.com) and with the Buildroot toolchain
can be downloaded from www.codesourcery.com). They should work with other
toolchains and have been occasionally tested with the Buildroot toolchain
for GNU/Linux.
 
Most makefiles have two targets, to create a simulation test bench and a
synthesizable demo.
 
Target '*_sim' (e.g. 'hello_sim') will build the simulation test bench as vhdl
file '/vhdl/tb/mips_tb1.vhdl'. This is the default test bench expected by the
simulation script '/sim/mips_tb1.do'.
Target 'sim' will build the simulation test bench as vhdl file
'/vhdl/tb/mips_tb2.vhdl'. This is the default test bench expected by the
simulation script '/sim/mips_tb2.do'.
 
Target '*_demo' will build a synthesizable demo as '/vhdl/demo/mips_mpu.vhdl'.
Target 'demo' will build a synthesizable demo as '/vhdl/demo/mips_mpu.vhdl'.
 
The build process will produce two binary files '*.code' and '*.data' that can
be run on the software simulator:
The build process will produce a number of binary files that can be run on the
software simulator. A DOS BATCH file has been provided for each sample that
runs the simulator with the proper parameters (swsim.bat).
 
slite hello.code hello.data
Plus a listing file (*.lst) handy for debugging.
 
Support code library:
=====================
 
The python script 'bin2hdl.py' is used to insert binary data on vhdl templates.
Many of the code samples use support code from an ad-hoc library included with
the project (src/common/libsoc). Before making any of the samples you should
make the library ('make' with no target). That will build file
'src/common/libsoc/libsoc.a'.
 
 
 
Building VHDL code from templates:
==================================
 
The python script 'bin2hdl.py' is used by all the samples to insert binary data
on vhdl templates.
Assuming you have Python 2.5 or later in your machine, call the script with
 
python bin2hdl.py --help

powered by: WebSVN 2.1.0

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