Commit 73cffbb6 authored by Peter Jansweijer's avatar Peter Jansweijer

get rid of deprecated do_elf.cmd

parent 9d315add
rem do_elf.cmd PeterJ, 18-Oct-2013.
@prompt $$$s
rem Set the pointers to the elf files that need to be loaded in the ADDRESS_SPACEs defined in the _bd.bmm file
rem The names of the ADDRESS_SPACEs will be tags for data2mem such that data2mem "knows" where to place one and
rem the other "elf" file.
set elf_file_lm32_wrpc=..\..\..\sw\embedded\precompiled\wrps-sw_v4_2_CLBv2_peter_clbv2_km3net_f83fede_ppsi_0cc9d34\wrc.elf
set elf_file_lm32_wrpc=..\..\..\sw\embedded\wrpc-sw\wrc.elf
set tag_lm32_wrpc="lm32_wrpc_memory"
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\helloworld\hello.elf
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\bridge2wrpc\hello.elf
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\ipmux\hello.elf
set elf_file_lm32_2nd=..\..\..\sw\embedded\CLBv2_App\build\runtime\exe\clbv2app_v221.elf
set tag_lm32_2nd="lm32_2nd_memory"
set DesName=fpga
set ImplName=%DesName%_elf
if exist "%DesName%.bit" (
rem it is assumed that there is a valid bit file (with empty" Block RAMs)
) else (
echo Run do_xilinx.cmd first to create a bit file.
exit
)
@echo Place ELF file content into bit file and netgen simualtion file of %DesName% on %date% at %time% > %ImplName%.log
@echo
@echo data2mem ... >> %ImplName%.log
@echo The Block RAMs in the original bit file are "empty" (=0x00). >> %ImplName%.log
@echo A new bitfile "%DesName%_elf.bit" will be created in which the Block RAMs are filled with the >> %ImplName%.log
@echo lm32 WRPC content of: %elf_file_lm32_wrpc% >> %ImplName%.log
@echo lm32 2nd content of: %elf_file_lm32_2nd% >> %ImplName%.log
data2mem -bm %DesName%_bd.bmm -bd %elf_file_lm32_wrpc% tag %tag_lm32_wrpc% -bd %elf_file_lm32_2nd% tag %tag_lm32_2nd% -bt %DesName%.bit -o b %ImplName%.bit >> %ImplName%.log
if "%1" == "dump" (
@echo >> %ImplName%.log
@echo For debugging purposes, dump %ImplName%.bit into dump_bit.txt >> %ImplName%.log
data2mem -bm %DesName%_bd.bmm -bt %ImplName%.bit -d > dump_bit.txt
)
rem
rem @echo netgen ... >> %ImplName%.log
rem @echo The Block RAMs in the original netgen\par\%DesName%_timesim.vhd are "empty" (=0x00). >> %ImplName%.log
rem @echo A new netgen\par\%DesName%_timesim_elf.vhd will be created in which the Block RAMs are filled with the >> %ImplName%.log
rem @echo content of: %elf_file_lm32_wrpc% >> %ImplName%.log
@rem -xon true
rem do_elf.cmd PeterJ, 18-Oct-2013.
@prompt $$$s
rem Set the pointers to the elf files that need to be loaded in the ADDRESS_SPACEs defined in the _bd.bmm file
rem The names of the ADDRESS_SPACEs will be tags for data2mem such that data2mem "knows" where to place one and
rem the other "elf" file.
set elf_file_lm32_wrpc=..\..\..\sw\embedded\precompiled\wrps-sw_v4_2_CLBv2_peter_clbv2_km3net_f83fede_ppsi_0cc9d34\wrc.elf
set elf_file_lm32_wrpc=..\..\..\sw\embedded\wrpc-sw\wrc.elf
set tag_lm32_wrpc="lm32_wrpc_memory"
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\helloworld\hello.elf
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\bridge2wrpc\hello.elf
rem set elf_file_lm32_2nd=..\..\..\sw\embedded\TestDesigns\lm32_2nd_Test\ipmux\hello.elf
set elf_file_lm32_2nd=..\..\..\sw\embedded\CLBv2_App\build\runtime\exe\clbv2app_v221.elf
set tag_lm32_2nd="lm32_2nd_memory"
set DesName=fpga
set ImplName=%DesName%_elf
if exist "%DesName%.bit" (
rem it is assumed that there is a valid bit file (with empty" Block RAMs)
) else (
echo Run do_xilinx.cmd first to create a bit file.
exit
)
@echo Place ELF file content into bit file and netgen simualtion file of %DesName% on %date% at %time% > %ImplName%.log
@echo
@echo data2mem ... >> %ImplName%.log
@echo The Block RAMs in the original bit file are "empty" (=0x00). >> %ImplName%.log
@echo A new bitfile "%DesName%_elf.bit" will be created in which the Block RAMs are filled with the >> %ImplName%.log
@echo lm32 WRPC content of: %elf_file_lm32_wrpc% >> %ImplName%.log
@echo lm32 2nd content of: %elf_file_lm32_2nd% >> %ImplName%.log
data2mem -bm %DesName%_bd.bmm -bd %elf_file_lm32_wrpc% tag %tag_lm32_wrpc% -bd %elf_file_lm32_2nd% tag %tag_lm32_2nd% -bt %DesName%.bit -o b %ImplName%.bit >> %ImplName%.log
if "%1" == "dump" (
@echo >> %ImplName%.log
@echo For debugging purposes, dump %ImplName%.bit into dump_bit.txt >> %ImplName%.log
data2mem -bm %DesName%_bd.bmm -bt %ImplName%.bit -d > dump_bit.txt
)
rem
rem @echo netgen ... >> %ImplName%.log
rem @echo The Block RAMs in the original netgen\par\%DesName%_timesim.vhd are "empty" (=0x00). >> %ImplName%.log
rem @echo A new netgen\par\%DesName%_timesim_elf.vhd will be created in which the Block RAMs are filled with the >> %ImplName%.log
rem @echo content of: %elf_file_lm32_wrpc% >> %ImplName%.log
@rem -xon true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment