@rem Build script for the SoC basic demo 'hello'.
|
@rem Build script for the SoC basic demo 'hello'.
|
@rem This script will assemble the program source and run the object code
|
@rem This script will assemble the program source and run the object code
|
@rem conversion tool to build a vhdl package that can then be used to initalize
|
@rem conversion tool to build a vhdl package that can then be used to initalize
|
@rem the SoC entity.
|
@rem the SoC entity.
|
@rem You need to edit this file with the path to your TASM installation.
|
@rem You need to edit this file with the path to your TASM installation.
|
@rem Set the program name.
|
@rem Set the program name.
|
@set PROG=hello
|
@set PROG=hello
|
@rem Edit to point to the directory you installed TASM in.
|
@rem Edit to point to the directory you installed TASM in.
|
@set TASM_DIR=..\..\local\tasm
|
@set TASM_DIR=..\..\..\local\tasm
|
@rem Remove output from previous assembly.
|
@rem Remove output from previous assembly.
|
@del %PROG%.hex
|
@del %PROG%.hex
|
@del %PROG%.lst
|
@del %PROG%.lst
|
@rem Make sure TASM is able to find its table files (see TASM documentation).
|
@rem Make sure TASM is able to find its table files (see TASM documentation).
|
@set TASMTABS=%TASM_DIR%
|
@set TASMTABS=%TASM_DIR%
|
@rem Run assembler
|
@rem Run assembler
|
%TASM_DIR%\tasm -85 -a %PROG%.asm %PROG%.hex %PROG%.lst
|
%TASM_DIR%\tasm -85 -a %PROG%.asm %PROG%.hex %PROG%.lst
|
@rem Check TASM return value
|
@rem Check TASM return value
|
@if errorlevel 1 goto done
|
@if errorlevel 1 goto done
|
@rem Build vhdl test bench file with object code embedded into it.
|
@rem Build vhdl test bench file with object code embedded into it.
|
python ..\..\tools\obj2hdl\src\obj2hdl.py ^
|
python ..\..\tools\obj2hdl\src\obj2hdl.py ^
|
-f %PROG%.hex ^
|
-f %PROG%.hex ^
|
-c obj_code ^
|
-c obj_code ^
|
--package obj_code_pkg ^
|
--package obj_code_pkg ^
|
--output obj_code_pkg.vhdl
|
--output obj_code_pkg.vhdl
|
:done
|
:done
|
|
|
|
|