Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vivado-wrapper
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
vivado-wrapper
Commits
f451acf1
There was an error fetching the commit references. Please try again later.
Commit
f451acf1
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Plain Diff
remove another junk dir
parents
c99d34c0
e894e179
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gen_tcl.sh
+11
-0
11 additions, 0 deletions
gen_tcl.sh
template/Vivadofile
+3
-0
3 additions, 0 deletions
template/Vivadofile
vivado-wrapper
+2
-1
2 additions, 1 deletion
vivado-wrapper
with
16 additions
and
1 deletion
gen_tcl.sh
+
11
−
0
View file @
f451acf1
...
...
@@ -60,6 +60,17 @@ elif [[ $1 == gui ]]; then
echo
"open_project
${
xpr
}
`
find
${
proj_dir
}
/
*
.srcs
-regex
'^.*\.s?vh?$'
-exec
echo
add_files
\{\}
\;
`
start_gui"
elif
[[
$1
==
init-project
]]
;
then
proj_name
=
"
$2
"
proj_dir
=
"
$3
"
part_name
=
"
$4
"
# xc7a100tcsg324-1
echo
"# Generated by Vivado wrapper, licensed under GPL 3.0
# Copyright (C) Recolic Keghart <root@recolic.net>
create_project
${
proj_name
}
${
proj_dir
}
-part
${
part_name
}
file mkdir
${
proj_dir
}
/
${
proj_name
}
.srcs/constrs_1/new
close [ open
${
proj_dir
}
/
${
proj_name
}
.srcs/constrs_1/new/constraint.xdc w ]
add_files -fileset constrs_1
${
proj_dir
}
/
${
proj_name
}
.srcs/constrs_1/new/constraint.xdc"
rm
-f
${
proj_dir
}
/
${
proj_name
}
.srcs/constrs_1/new/constraint.xdc
else
echo
"Usage:
$0
build <xpr path> <run_name_synth> <run_name_impl> <to_step> <top module name> <threads_num>
$0
burn <xpr path> <run_name_impl> <top_module_name> <dev_name(Ex:xc7a100t_0)>"
...
...
This diff is collapsed.
Click to expand it.
template/Vivadofile
+
3
−
0
View file @
f451acf1
...
...
@@ -22,6 +22,9 @@ top_modules=(
# top_module=test_main
top_module=
# Name of your board in vivado
board="xc7a100tcsg324-1"
#
# Optional options
#
...
...
This diff is collapsed.
Click to expand it.
vivado-wrapper
+
2
−
1
View file @
f451acf1
...
...
@@ -132,12 +132,13 @@ function get_constraint_of_module () {
function
generate_real_project
()
{
[[
"
$constr_path
"
==
''
]]
&&
constr_path
=
"
$(
pwd
)
/
$(
get_constraint_of_module
$top_module
)
"
cp
-r
"
$my_path
/template/project"
"
$temp_dir
/"
# todo: use new init-project to generate if template not exist
_real_proj_src
=
"
$temp_dir
/project/temp_project.srcs"
for
src
in
`
echo
${
sources
[@]
}
`
;
do
mkdir
-p
"
$_real_proj_src
/sources_1/new/
$(
dirname
"
$src
"
)
"
ln
-s
"
$(
pwd
)
/
$src
"
"
$_real_proj_src
/sources_1/new/
$src
"
done
rm
"
$_real_proj_src
/constrs_1/new/constraint.xdc"
rm
-f
"
$_real_proj_src
/constrs_1/new/constraint.xdc"
ln
-s
"
$constr_path
"
"
$_real_proj_src
/constrs_1/new/constraint.xdc"
echo
"real_project generated at
$temp_dir
"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment