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

Subversion Repositories light52

[/] [light52/] [trunk/] [test/] [hello_c/] [build.bat] - Blame information for rev 4

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

Line No. Rev Author Line
1 3 ja_rd
@rem This build BAT file assumes you use the SDCC compiler, and the compiler is
2
@rem in the path.
3
@rem Set compiler name...
4
@set CC=sdcc
5
@rem ...and set the path for the VHDL file tool.
6
@set BR_PATH=..\..\tools\build_rom
7
@rem Generate VHDL object package in this directory.
8
@set VHDL_TB_PATH=.
9
 
10
@rem Compile the file as a single-file program...
11
%SDCC% -o obj\ src\hello.c
12
 
13
@rem ...move the executable HEX file to the BIN directory...
14
@copy obj\hello.ihx bin
15
 
16
@rem ...and build the VHDL object code package.
17
@python %BR_PATH%\src\build_rom.py ^
18
     -f bin/hello.ihx  ^
19
     -v %BR_PATH%/templates/obj_code_pkg_template.vhdl ^
20
     -o %VHDL_TB_PATH%/obj_code_pkg.vhdl ^
21
     --name hello_c
22
 
23
 

powered by: WebSVN 2.1.0

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