URL
https://opencores.org/ocsvn/light52/light52/trunk
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 The proper way to do this is with make but I don't want to rely on users
|
4 |
|
|
@rem having it installed.
|
5 |
|
|
@rem Set compiler name...
|
6 |
|
|
@set CC=sdcc
|
7 |
|
|
@rem ...and set the path for the VHDL file tool.
|
8 |
|
|
@set BR_PATH=..\..\tools\build_rom
|
9 |
|
|
@rem Generate VHDL object package in this directory.
|
10 |
|
|
@set VHDL_TB_PATH=.
|
11 |
|
|
@rem
|
12 |
|
|
@set CC_OPT=--code-size 8192 --xram-size 512 -D__LIGHT52__=1 -DNOSTRUCTASSIGN=1 --model-large
|
13 |
|
|
@set LK_OPT=--model-large
|
14 |
|
|
@rem This will be the final program name.
|
15 |
|
|
@set PROG=dhry
|
16 |
|
|
|
17 |
|
|
@rem Delete the old executable
|
18 |
|
|
@del bin\%PROG%.ihx
|
19 |
|
|
|
20 |
|
|
@rem Compile all source files...
|
21 |
|
|
%CC% -o obj\ %CC_OPT% -c src\estubs.c
|
22 |
|
|
%CC% -o obj\ %CC_OPT% -c src\dhry21a.c
|
23 |
|
|
%CC% -o obj\ %CC_OPT% -c src\dhry21b.c
|
24 |
|
|
%CC% -o obj\ %CC_OPT% -c src\timers_b.c
|
25 |
|
|
%CC% -o obj\ %CC_OPT% -c ..\common\target.c
|
26 |
|
|
@rem ...and link them.
|
27 |
|
|
%CC% %LK_OPT% -o obj\ obj\dhry21a.rel obj\dhry21b.rel obj\estubs.rel obj\timers_b.rel obj\target.rel
|
28 |
|
|
|
29 |
|
|
@rem Move the new executable HEX file to the BIN directory...
|
30 |
|
|
@copy obj\dhry21a.ihx bin\%PROG%.ihx
|
31 |
|
|
|
32 |
|
|
@rem ...and build the VHDL object code package.
|
33 |
|
|
@python %BR_PATH%\src\build_rom.py ^
|
34 |
|
|
-f bin/%PROG%.ihx ^
|
35 |
|
|
-v %BR_PATH%/templates/obj_code_pkg_template.vhdl ^
|
36 |
|
|
-o %VHDL_TB_PATH%/obj_code_pkg.vhdl
|
37 |
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.