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

Subversion Repositories light52

[/] [light52/] [trunk/] [test/] [hello_c/] [build.bat] - Rev 3

Compare with Previous | Blame | View Log

@rem This build BAT file assumes you use the SDCC compiler, and the compiler is
@rem in the path.
@rem Set compiler name...
@set CC=sdcc
@rem ...and set the path for the VHDL file tool.
@set BR_PATH=..\..\tools\build_rom
@rem Generate VHDL object package in this directory.
@set VHDL_TB_PATH=.

@rem Compile the file as a single-file program...
%SDCC% -o obj\ src\hello.c

@rem ...move the executable HEX file to the BIN directory...
@copy obj\hello.ihx bin

@rem ...and build the VHDL object code package.
@python %BR_PATH%\src\build_rom.py ^
     -f bin/hello.ihx  ^
     -v %BR_PATH%/templates/obj_code_pkg_template.vhdl ^
     -o %VHDL_TB_PATH%/obj_code_pkg.vhdl ^
     --name hello_c


Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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