Forum Discussion
Altera_Forum
Honored Contributor
12 years agoPRE_FLOW_SCRIPT_FILE problem
Hi. I am trying to write the script for automatic update compilation time in my project. The script generate_version1.tcl: set str -format {%Y%m%d%H%M}]
set hex_value ${str}
set num_digits
...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Any suggestions? --- Quote End --- Sure, read the script I referred to. It opens the project. Here's the bit you want ...
# -----------------------------------------------------------------
# Timestamp generic
# -----------------------------------------------------------------
#
# The project must be open before accessing generics
if {!} {
project_open -revision $revision $project
}
# Timestamp integer
set timestamp
# Top-level timestamp generic
set_parameter -name TIMESTAMP $timestamp
# Post an info message
set timestamp_str
set timestamp_hex
post_message -type info "TIMESTAMP = $timestamp_hex ($timestamp_str)"
Cheers, Dave