Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a -gui option
  • Loading branch information
cezdro committed Jul 9, 2025
commit 27a74042b4f834a69bace77b83cf2fab8eea1b3c
18 changes: 15 additions & 3 deletions tclapp/aldec/alint/convert_project.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ proc ::tclapp::aldec::alint::convert_project {args} {

# Argument Usage:
# alint_path: Path where Alint is located
# [-gui]: Start Alint in GUI mode and don't exit after converting
# [-usage]: This help message

# Return Value:
Expand All @@ -19,17 +20,23 @@ proc ::tclapp::aldec::alint::convert_project {args} {
set usage [format {
Usage: convert_project
alint_path - Path where Alint is located
[-gui] - Start Alint in GUI mode and don't exit after converting
[-usage] - This help message

Description: Convert Vivado project to Alint
Example:
convert_project ~/ALINT-PRO
convert_project -gui ~/ALINT-PRO
}]

set gui false
set help false

foreach arg $args {
switch -- $arg {
-gui {
set gui true
}
-usage {
set help true
}
Expand Down Expand Up @@ -81,7 +88,12 @@ proc ::tclapp::aldec::alint::convert_project {args} {
error "Project file not found"
}

exec -- $alintcon \
-batch \
-do $alint_script_path $xpr_path
if {$gui} {
exec -- $alint \
-do $alint_script_path $xpr_path
} else {
exec -- $alintcon \
-batch \
-do $alint_script_path $xpr_path
}
}