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
4ff1bbcb
Commit
4ff1bbcb
authored
Jul 02, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHA codes in log file
parent
5467e441
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
.gitignore
hdl/spec7_ref_design/.gitignore
+4
-0
.gitignore
hdl/spec7_write_design/.gitignore
+4
-0
viv_do_all.tcl
sw/scripts/viv_do_all.tcl
+17
-4
No files found.
hdl/spec7_ref_design/.gitignore
0 → 100644
View file @
4ff1bbcb
*.log
*.bit
*.mmi
*.jou
hdl/spec7_write_design/.gitignore
0 → 100644
View file @
4ff1bbcb
*.log
*.bit
*.mmi
*.jou
sw/scripts/viv_do_all.tcl
View file @
4ff1bbcb
...
...
@@ -127,11 +127,24 @@ if {$use_bmm} {
}
close_design
#generate a new name for .bit and .mmi file and copy to project directory.
set syn_dir
[
pwd
]
cd ../../wr-cores/
;
set branchname
[
exec
git branch --show-current
]
;
cd
$syn
_dir
set bitfile_name
${proj_name}
_
[
string
range
$device
3 6
]
_
[
clock
format
[
clock
seconds
]
-format %y%m%d_%H%M
]
_$
{
branchname
}
# Generate a new name for .bit and .mmi file and copy to project directory.
# Create a senible name including date and time
set bitfile_name
${proj_name}
_
[
string
range
$device
3 6
]
_
[
clock
format
[
clock
seconds
]
-format %y%m%d_%H%M
]
file copy ./work/$
{
proj_name
}
.runs/impl_1/$
{
proj_name
}
.bit ../$
{
bitfile_name
}
.bit
file copy ./$
{
proj_name
}
.mmi ../$
{
bitfile_name
}
.mmi
set syn_dir
[
pwd
]
# Get SHA codes for spec7, wr-cores and general-cores repositories
set spec7_sha
[
exec
git rev-parse HEAD
]
cd ../../wr-cores/
;
set wr_cores_sha
[
exec
git rev-parse HEAD
]
cd ip_cores/general-cores/
;
set general_cores_sha
[
exec
git rev-parse HEAD
]
cd
$syn
_dir
# write SHA codes in log a file
set git_log_fp
[
open
../$
{
bitfile_name
}
.log w
]
puts
$git
_log_fp
"Build was based on the following SHA codes:"
puts
$git
_log_fp
"spec7.git
$spec7
_sha"
puts
$git
_log_fp
"wr-cores.git
$wr
_cores_sha"
puts
$git
_log_fp
"general-cores.git
$general
_cores_sha"
close
$git
_log_fp
exec updatemem -meminfo ./$
{
proj_name
}
.mmi -data
${lm32_wrpc_elf}
-bit ./work/$
{
proj_name
}
.runs/impl_1/$
{
proj_name
}
.bit -proc
${lm32_wrpc_instpath}
-out ../$
{
bitfile_name
}
_elf.bit -force
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