16 set tcl_path [
file normalize "[
file dirname [
info script]]/.."]
17 set repo_path [
file normalize "$tcl_path/../.."]
19 source $tcl_path/hog.tcl
23 if {[
info exists env(HOG_TCLLIB_PATH)]} {
24 lappend auto_path $env(HOG_TCLLIB_PATH)
26 puts "ERROR: To run Hog with Microsemi Libero SoC, you need to define the HOG_TCLLIB_PATH variable."
32 if {[
catch {
package require cmdline} ERROR] || [
catch {
package require struct::matrix} ERROR]} {
33 puts "$ERROR\n Tcllib not found. If you are running this script on tclsh, you can fix this by installing 'tcllib'"
38 {sim "If set, checks also the version of the simulation files."}
39 {ext_path.arg "" "Sets the absolute path for the external libraries."}
42 set usage "- USAGE: $::argv0 \[OPTIONS\] <project> \n. Options:"
57 set project [
lindex $argv 0]
60 set project_dir $repo_path/Top/$project
62 if {$options(sim) == 1} {
64 Msg Info "Will check also the version of the simulation files..."
67 if { $options(ext_path) != "" } {
68 set ext_path $options(ext_path)
69 Msg Info "External path set to $ext_path"
74 Msg Info "$project was modified, continuing with the CI..."
75 }
elseif {$ver != -1} {
76 Msg Info "$project was not modified since version: $ver, disabling the CI..."
77 file mkdir $repo_path/Projects/$project
78 set fp [open "$repo_path/Projects/$project/skip.me" w+]