Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
38f3bce2
Commit
38f3bce2
authored
Feb 12, 2019
by
Jaco Hofmann
Committed by
Jaco A. Hofmann
May 08, 2019
Browse files
Handle lack of version command in vivado pre 2018.1
- Catch exception thrown by command not found
parent
be05c331
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/common.tcl
View file @
38f3bce2
...
...
@@ -28,6 +28,10 @@ namespace eval tapasco {
# @param Desired Vivado Version as String, e.g.
"2018.3"
# @return 1 if
[
version -short
]
<= cmp, else 0
proc vivado_is_newer
{
cmp
}
{
if
{[
catch
{
set vers
[
version
]}]}
{
puts
"Could not find version command. No version information available."
return 1
}
set regex
{([
0-9
][
0-9
][
0-9
][
0-9
])
.
([
0-9
][
0-9
]
*
)}
set major_ver
[
regsub $regex
[
version -short
]
{
\1
}]
set minor_ver
[
regsub $regex
[
version -short
]
{
\2
}]
...
...
@@ -43,6 +47,10 @@ namespace eval tapasco {
# Returns true if Vivado HLS is running
# @return 1 if HLS, else 0
proc is_hls
{}
{
if
{[
catch
{
set hls_check
[
string first
"HLS"
[
version
]]}]}
{
puts
"Could not find version command. Assuming HLS pre 2018.1."
return 1
}
if
{[
string first
"HLS"
[
version
]
]}
{
return 1
}
else
{
...
...
Write
Preview
Supports
Markdown
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