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
0e0ee43b
Commit
0e0ee43b
authored
Jul 09, 2020
by
Pascal Bos
Committed by
Peter Jansweijer
Aug 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ported to bash, added check for mmi file.
parent
bb85f887
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
14 deletions
+50
-14
do_vivado_mmi_elf.sh
hdl/spec7_ref_design/syn/do_vivado_mmi_elf.sh
+0
-5
do_vivado_mmi_elf.sh
hdl/spec7_write_design/syn/do_vivado_mmi_elf.sh
+0
-5
do_vivado_mmi_elf.cmd
sw/scripts/do_vivado_mmi_elf.cmd
+9
-4
do_vivado_mmi_elf.sh
sw/scripts/do_vivado_mmi_elf.sh
+41
-0
No files found.
hdl/spec7_ref_design/syn/do_vivado_mmi_elf.sh
deleted
100755 → 0
View file @
bb85f887
#! /bin/bash
proj_name
=
spec7_wr_ref_top
lm32_wrpc_elf
=
../../../sw/precompiled/wrps-sw_spec7/wrc.elf
lm32_wrpc_instpath
=
lm32_wrpc_memory
/opt/Xilinx/Vivado/2019.2/bin/updatemem
-meminfo
./
${
proj_name
}
.mmi
-data
${
lm32_wrpc_elf
}
-bit
./work/
${
proj_name
}
.runs/impl_1/
${
proj_name
}
.bit
-proc
${
lm32_wrpc_instpath
}
-out
./work/
${
proj_name
}
.runs/impl_1/
${
proj_name
}
_elf.bit
-force
hdl/spec7_write_design/syn/do_vivado_mmi_elf.sh
deleted
100755 → 0
View file @
bb85f887
#! /bin/bash
proj_name
=
spec7_write_top
lm32_wrpc_elf
=
../../../sw/precompiled/wrps-sw_spec7/wrc.elf
lm32_wrpc_instpath
=
lm32_wrpc_memory
/opt/Xilinx/Vivado/2019.2/bin/updatemem
-meminfo
./
${
proj_name
}
.mmi
-data
${
lm32_wrpc_elf
}
-bit
./work/
${
proj_name
}
.runs/impl_1/
${
proj_name
}
.bit
-proc
${
lm32_wrpc_instpath
}
-out
./work/
${
proj_name
}
.runs/impl_1/
${
proj_name
}
_elf.bit
-force
sw/scripts/do_vivado_mmi_elf.cmd
View file @
0e0ee43b
rem prog.cmd PeterJ, 02-Jul-2020.
@prompt $$$s
set proj_name=%~n1%
set lm32_wrpc_mmi=%proj_name%.mmi
set lm32_wrpc_elf=%2%
set lm32_wrpc_instpath="lm32_wrpc_memory"
if not exist "%1%" (
@echo ### %1% ### bit file not found
@echo Usage: do_vivado_mmi_elf <bitfile>.bit <elffile>.elf
...
...
@@ -23,15 +28,15 @@ if not "%~x2%"==".elf" (
exit /B
)
if not exist "%lm32_wrpc_mmi%" (
@echo ### %lm32_wrpc_mmi% ### mmi file not found, has it been generated?"
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
...
...
sw/scripts/do_vivado_mmi_elf.sh
0 → 100755
View file @
0e0ee43b
#! /bin/bash
# do_vivado_mmi_elf.sh PascalB, 09-Jul-2020.
proj_name
=
$(
basename
$1
.bit
)
lm32_wrpc_mmi
=
${
proj_name
}
.mmi
lm32_wrpc_elf
=
$2
lm32_wrpc_instpath
=
"lm32_wrpc_memory"
if
not
[
-f
"
$1
"
]
;
then
echo
"
$1
bit file not found"
echo
"Usage: do_vivado_mmi_elf.sh <bitfile>.bit <elffile>.elf"
exit
fi
if
not
[
${
1
:
-4
}
==
".bit"
]
;
then
echo
"
$1
bit file not found"
echo
"Usage: do_vivado_mmi_elf.sh <bitfile>.bit <elffile>.elf"
exit
fi
if
not
[
-f
"
$2
"
]
;
then
echo
"
$1
elf file not found"
echo
"Usage: do_vivado_mmi_elf.sh <bitfile>.bit <elffile>.elf"
exit
fi
if
not
[
${
2
:
-4
}
==
".elf"
]
;
then
echo
"
$2
elf file not found"
echo
"Usage: do_vivado_mmi_elf.sh <bitfile>.bit <elffile>.elf"
exit
fi
if
not
[
-f
"
$lm32_wrpc_mmi
"
]
;
then
echo
"
$1
mmi file not found, has it been generated?"
exit
fi
# Cleanup old log files and stuff
rm
vivado_mmi_elf.log 2>/dev/null
rm
updatemem
*
.jou 2>/dev/null
rm
updatemem
*
.log 2>/dev/null
updatemem
-meminfo
${
proj_name
}
.mmi
-data
$2
-bit
$1
-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