Skip to content

Commit

Permalink
scripts/adi_env.tcl: Added required version for Lattice tools.
Browse files Browse the repository at this point in the history
Signed-off-by: Villyam <Vilmoscsaba.Jozsa@analog.com>
  • Loading branch information
Villyam committed Jun 3, 2024
1 parent ddcd6bf commit a69eee8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/adi_env.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ if {![info exists REQUIRED_QUARTUS_VERSION]} {
set REQUIRED_QUARTUS_VERSION "23.2.0"
}

# Define the supported tool version
set required_lattice_version "2023.2"
if {[info exists ::env(REQUIRED_LATTICE_VERSION)]} {
set required_lattice_version $::env(REQUIRED_LATTICE_VERSION)
} elseif {[info exists REQUIRED_LATTICE_VERSION]} {
set required_lattice_version $REQUIRED_LATTICE_VERSION
}

# This helper pocedure retrieves the value of varible from environment if exists,
# other case returns the provided default value
# name - name of the environment variable
Expand Down

0 comments on commit a69eee8

Please sign in to comment.