Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SPEC7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
SPEC7
Commits
a5ed0a4b
Commit
a5ed0a4b
authored
Jul 03, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace individual do_vivado_mmi_elf.cmd by a general one that accepts command line parameters
parent
4ff1bbcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
13 deletions
+38
-13
do_vivado_mmi_elf.cmd
hdl/spec7_write_design/syn/do_vivado_mmi_elf.cmd
+0
-13
do_vivado_mmi_elf.cmd
sw/scripts/do_vivado_mmi_elf.cmd
+38
-0
No files found.
hdl/spec7_write_design/syn/do_vivado_mmi_elf.cmd
deleted
100644 → 0
View file @
4ff1bbcb
rem prog.cmd PeterJ, 29-Dec-2019.
@prompt $$$s
rem ### Cleanup old log files and stuff
del vivado_mmi_elf.log
set proj_name="spec7_write_top"
set lm32_wrpc_elf="../../../sw/precompiled/wrps-sw_spec7/wrc.elf"
set lm32_wrpc_instpath="lm32_wrpc_memory"
rem ### note that environment variable "VIVADO" must be set to something like "E:\Xilinx\Vivado\2017.1\bin\"
rem ### in your (User) Environment Variables
%VIVADO%updatemem -meminfo %proj_name%.mmi -data %lm32_wrpc_elf% -bit %proj_name%.bit -proc %lm32_wrpc_instpath% -out %proj_name%_elf.bit -force >> vivado_mmi_elf.log
hdl/spec7_ref_design/syn
/do_vivado_mmi_elf.cmd
→
sw/scripts
/do_vivado_mmi_elf.cmd
View file @
a5ed0a4b
rem prog.cmd PeterJ, 29-Dec-2019.
@prompt $$$s
rem ### Cleanup old log files and stuff
del vivado_mmi_elf.log
set proj_name="spec7_wr_ref_top"
set lm32_wrpc_elf="../../../sw/precompiled/wrps-sw_spec7/wrc.elf"
set lm32_wrpc_instpath="lm32_wrpc_memory"
rem ### note that environment variable "VIVADO" must be set to something like "E:\Xilinx\Vivado\2017.1\bin\"
rem ### in your (User) Environment Variables
%VIVADO%updatemem -meminfo %proj_name%.mmi -data %lm32_wrpc_elf% -bit %proj_name%.bit -proc %lm32_wrpc_instpath% -out %proj_name%_elf.bit -force >> vivado_mmi_elf.log
rem prog.cmd PeterJ, 02-Jul-2020.
@prompt $$$s
if not exist "%1%" (
@echo ### %1% ### bit file not found
@echo Usage: do_vivado_mmi_elf <bitfile>.bit <elffile>.elf
exit /B
)
if not "%~x1%"==".bit" (
@echo ### %1% ### bit file not found
@echo Usage: do_vivado_mmi_elf <bitfile>.bit <elffile>.elf
exit /B
)
if not exist "%2%" (
@echo ### %2% ### elf file not found
@echo Usage: do_vivado_mmi_elf <bitfile>.bit <elffile>.elf
exit /B
)
if not "%~x2%"==".elf" (
@echo ### %2% ### elf file not found
@echo Usage: do_vivado_mmi_elf <bitfile>.bit <elffile>.elf
exit /B
)
rem ### Cleanup old log files and stuff
del vivado_mmi_elf.log
del updatemem*.jou
del updatemem*.log
set proj_name=%~n1%
set lm32_wrpc_elf=%2%
set lm32_wrpc_instpath="lm32_wrpc_memory"
rem ### note that environment variable "VIVADO" must be set to something like "E:\Xilinx\Vivado\2017.1\bin\"
rem ### in your (User) Environment Variables
%VIVADO%updatemem -meminfo %proj_name%.mmi -data %lm32_wrpc_elf% -bit %proj_name%.bit -proc %lm32_wrpc_instpath% -out %proj_name%_elf.bit -force >> vivado_mmi_elf.log
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment