URL
https://opencores.org/ocsvn/light8080/light8080/trunk
[/] [light8080/] [trunk/] [sw/] [tb/] [tb1/] [build.bat] - Blame information for rev 80
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
74 |
ja_rd |
@rem Build script for the TB1 test bench.
|
2 |
|
|
@rem This script will assemble the program source and run the object code
|
3 |
|
|
@rem conversion tool to build a vhdl package that can then be used to initalize
|
4 |
|
|
@rem the test bench entity.
|
5 |
|
|
@rem You need to edit this file with the path to your TASM installation.
|
6 |
|
|
@rem Set the program name.
|
7 |
|
|
@set PROG=tb1
|
8 |
|
|
@rem Edit to point to the directory you installed TASM in.
|
9 |
|
|
@set TASM_DIR=..\..\..\local\tasm
|
10 |
|
|
@rem Remove output from previous assembly.
|
11 |
|
|
@del %PROG%.hex
|
12 |
|
|
@del %PROG%.lst
|
13 |
|
|
@rem Make sure TASM is able to find its table files (see TASM documentation).
|
14 |
|
|
@set TASMTABS=%TASM_DIR%
|
15 |
|
|
@rem Run assembler
|
16 |
|
|
%TASM_DIR%\tasm -85 -a %PROG%.asm %PROG%.hex %PROG%.lst
|
17 |
|
|
@rem Check TASM return value
|
18 |
|
|
@if errorlevel 1 goto done
|
19 |
|
|
@rem Build vhdl test bench file with object code embedded into it.
|
20 |
|
|
python ..\..\..\tools\obj2hdl\src\obj2hdl.py ^
|
21 |
|
|
-f %PROG%.hex ^
|
22 |
|
|
-c obj_code ^
|
23 |
|
|
--package obj_code_pkg ^
|
24 |
|
|
--output obj_code_pkg.vhdl
|
25 |
|
|
:done
|
26 |
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.