Skip to content
Snippets Groups Projects
Commit d2d1a402 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

better svn revision capture based on $RADIOHDL_SVN_REVISION

parent f72f102b
No related branches found
No related tags found
No related merge requests found
......@@ -61,9 +61,6 @@ set_global_assignment -name EDA_IBIS_SPECIFICATION_VERSION 5P0 -section_id eda_b
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
# Compilation flow:
set_global_assignment -name SMART_RECOMPILE ON
# Optimize for performance:
set_global_assignment -name OPTIMIZATION_TECHNIQUE SPEED
set_global_assignment -name SYNTH_TIMING_DRIVEN_SYNTHESIS ON
......@@ -84,6 +81,7 @@ set_global_assignment -name SDC_FILE $::env(RADIOHDL)/boards/uniboard2/libraries
if { [info exists ::env(UNB_COMPILE_STAMPS) ] } {
set_parameter -name g_stamp_date [clock format [clock seconds] -format {%Y%m%d}]
set_parameter -name g_stamp_time [clock format [clock seconds] -format {%H%M%S}]
set_parameter -name g_stamp_svn [regsub -all {[^0-9]} [exec svn info $::env(RADIOHDL) | grep Revision] ""]
post_message -type info "RADIOHDL: using SVN revision $::env(RADIOHDL_SVN_REVISION)"
set_parameter -name g_stamp_svn [regsub -all {[^0-9]} [exec echo $::env(RADIOHDL_SVN_REVISION)] ""]
}
......@@ -42,3 +42,4 @@ export ALTERA_HW_TCL_KEEP_TEMP_FILES=1
# User synthesis timestamp in FPGA image
export UNB_COMPILE_STAMPS=1
export RADIOHDL_SVN_REVISION=`svn info ${RADIOHDL} | grep Revision`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment