Skip to content
Snippets Groups Projects
Commit 54340441 authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Added --seed=# option.

parent a290e6a6
Branches
No related tags found
No related merge requests found
...@@ -54,6 +54,7 @@ shift # shift left commandline args: $2 becomes $1 ... ($0 is untouched) ...@@ -54,6 +54,7 @@ shift # shift left commandline args: $2 becomes $1 ... ($0 is untouched)
project= project=
rev= rev=
SEED=1
os= os=
# parse cmdline # parse cmdline
for arg ; do for arg ; do
...@@ -67,6 +68,12 @@ for arg ; do ...@@ -67,6 +68,12 @@ for arg ; do
rev=*) rev=*)
rev=`echo ${arg} | sed 's/^rev=//'` rev=`echo ${arg} | sed 's/^rev=//'`
;; ;;
--seed=*)
SEED=`echo ${arg} | sed 's/^--seed=//'`
;;
seed=*)
SEED=`echo ${arg} | sed 's/^seed=//'`
;;
*=* ) *=* )
# it was an option. skip it - if we wanted to, # it was an option. skip it - if we wanted to,
# we could process them over here # we could process them over here
...@@ -120,5 +127,9 @@ else ...@@ -120,5 +127,9 @@ else
mem_width= mem_width=
fi fi
# Add the seed value to the QSF. We can simply append it because Quartus removes previous (duplicate) assignments.
unb_info $0 "Adding fitter seed value of ${SEED} to ${project_rev}.qsf"
echo -e "set_global_assignment -name SEED ${SEED}\n" >> ${quartusdir}/${project_rev}.qsf
unb_info $0 "Performing full compile of project ${project_rev}" unb_info $0 "Performing full compile of project ${project_rev}"
quartus_sh $mem_width --flow compile ${project_rev} quartus_sh $mem_width --flow compile ${project_rev}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment