OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [tools/] [zmac/] [make_modelsim.bat] - Diff between revs 3 and 12

Only display areas with differences | Details | Blame | View Log

Rev 3 Rev 12
@echo off
@echo off
Rem
Rem
Rem     This batch file assembles and generates executable code for a ModelSim test at
Rem     This batch file assembles and generates executable code for a ModelSim test at
Rem     \cpu\toplevel\simulation\modelsim         (Select "test_top" test in ModelSim)
Rem     \cpu\toplevel\simulation\modelsim         (Select "test_top" test in ModelSim)
Rem
Rem
Rem     Give it an argument of the ASM file you want to use, or you can simply drag
Rem     Give it an argument of the ASM file you want to use, or you can simply drag
Rem     and drop an asm file into it. If you drop an ASM file and there were errors,
Rem     and drop an asm file into it. If you drop an ASM file and there were errors,
Rem     this script will keep the DOS window open so you can see the errors.
Rem     this script will keep the DOS window open so you can see the errors.
Rem
Rem
zmac --zmac %1
zmac --zmac %1
if errorlevel 1 goto error
if errorlevel 1 goto error
bindump.py zout\%~n1.cim ..\..\cpu\toplevel\simulation\modelsim\ram.hexdump
python bindump.py zout\%~n1.cim ..\..\cpu\toplevel\simulation\modelsim\ram.hexdump
if errorlevel 1 goto error
if errorlevel 1 goto error
goto end
goto end
:error
:error
@echo ------------------------------------------------------
@echo ------------------------------------------------------
@echo Errors assembling %1
@echo Errors assembling %1
@echo ------------------------------------------------------
@echo ------------------------------------------------------
cmd
cmd
 
 

powered by: WebSVN 2.1.0

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