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 build.bat -- Assemble the test source file(s) and create an VHDL package
|
2 |
|
|
@rem file with the object code for ROM initialization.
|
3 |
|
|
@rem
|
4 |
|
|
@rem This ia our assembler's path and executable name...
|
5 |
|
|
@set AS_PATH=..\..\local\tools\asem51
|
6 |
|
|
@set AS=%AS_PATH%\asem.exe
|
7 |
|
|
@set AS_OPTS=/INCLUDEs:..\include
|
8 |
|
|
@rem ...this is the path of the IHEX-to-VHDL script...
|
9 |
|
|
@set BR_PATH=..\..\tools\build_rom
|
10 |
|
|
@rem ...and this is where the object code vhdl package will be written to.
|
11 |
|
|
@set VHDL_TB_PATH=.
|
12 |
|
|
|
13 |
|
|
@rem Assemble the test program with default options...
|
14 |
|
|
@echo Assembling with default options...
|
15 |
|
|
@%AS% src\tb51_cpu.a51 bin\tb51_cpu.hex lst\tb51_cpu.lst %AS_OPTS%
|
16 |
|
|
@rem ...and assemble it with all CPU options enabled: BCD opcodes
|
17 |
|
|
@echo Assembling with all options enabled...
|
18 |
|
|
@%AS% src\tb51_cpu.a51 bin\tb51_all.hex lst\tb51_all.lst /DEFINE:BCD %AS_OPTS%
|
19 |
|
|
|
20 |
|
|
@rem ...and build the object code vhdl packages
|
21 |
|
|
@python %BR_PATH%\src\build_rom.py ^
|
22 |
|
|
-f bin/tb51_cpu.hex ^
|
23 |
|
|
-v %BR_PATH%/templates/obj_code_pkg_template.vhdl ^
|
24 |
|
|
-o %VHDL_TB_PATH%/obj_code_pkg.vhdl ^
|
25 |
|
|
--xcode 40000 ^
|
26 |
12 |
ja_rd |
--xdata 1024 ^
|
27 |
3 |
ja_rd |
--name cpu_test
|
28 |
|
|
|
29 |
|
|
@python %BR_PATH%\src\build_rom.py ^
|
30 |
|
|
-f bin/tb51_all.hex ^
|
31 |
|
|
-v %BR_PATH%/templates/obj_code_pkg_template.vhdl ^
|
32 |
|
|
-o %VHDL_TB_PATH%/full_test_pkg.vhdl ^
|
33 |
|
|
--xcode 40000 ^
|
34 |
12 |
ja_rd |
--xdata 1024 ^
|
35 |
3 |
ja_rd |
--name cpu_test
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.