From a2d468e5ef3c748fb2df2c6baa6287ad0fdcfcac Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 27 Aug 2021 09:11:05 -0400 Subject: [PATCH] Corrected syntax for "set" command in several .sh files, in a part of the code that is usually not exercised (depends on the location of the techfile). Thanks to Junichi Akita for the bug report. --- VERSION | 2 +- scripts/magic_db.sh | 2 +- scripts/magic_drc.sh | 2 +- scripts/magic_gds.sh | 2 +- scripts/magic_view.sh | 2 +- scripts/netgen_lvs.sh | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/VERSION b/VERSION index a8dd1aa..579400f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.96 +1.4.97 diff --git a/scripts/magic_db.sh b/scripts/magic_db.sh index 7edda7e..5f6624c 100755 --- a/scripts/magic_db.sh +++ b/scripts/magic_db.sh @@ -166,7 +166,7 @@ set subv=`echo $version | cut -d. -f3` if ( !(-r $techfile)) then if (`echo $techfile | cut -c1` != "/") then - set techfile ${techdir}/${techfile} + set techfile=${techdir}/${techfile} endif endif if (-r $techfile) then diff --git a/scripts/magic_drc.sh b/scripts/magic_drc.sh index 8f9b73e..0f98b89 100755 --- a/scripts/magic_drc.sh +++ b/scripts/magic_drc.sh @@ -147,7 +147,7 @@ endif if ( !(-r $techfile)) then if (`echo $techfile | cut -c1` != "/") then - set techfile ${techdir}/${techfile} + set techfile=${techdir}/${techfile} endif endif if (-r $techfile) then diff --git a/scripts/magic_gds.sh b/scripts/magic_gds.sh index 2bf7abe..6b067f2 100755 --- a/scripts/magic_gds.sh +++ b/scripts/magic_gds.sh @@ -119,7 +119,7 @@ set subv=`echo $version | cut -d. -f3` if ( !(-r $techfile)) then if (`echo $techfile | cut -c1` != "/") then - set techfile ${techdir}/${techfile} + set techfile=${techdir}/${techfile} endif endif if (-r $techfile) then diff --git a/scripts/magic_view.sh b/scripts/magic_view.sh index 8671f4b..3b8868b 100755 --- a/scripts/magic_view.sh +++ b/scripts/magic_view.sh @@ -199,7 +199,7 @@ set dispfile="${layoutdir}/load_${rootname}.tcl" # absolute path. if ( !(-r $techfile)) then if (`echo $techfile | cut -c1` != "/") then - set techfile ${techdir}/${techfile} + set techfile=${techdir}/${techfile} endif endif diff --git a/scripts/netgen_lvs.sh b/scripts/netgen_lvs.sh index ad855eb..fe4d5a9 100755 --- a/scripts/netgen_lvs.sh +++ b/scripts/netgen_lvs.sh @@ -45,7 +45,7 @@ if (-f project_vars.sh) then endif if (! ${?lvs_options} ) then - set lvs_options = ${options} + set lvs_options=${options} endif if (!($?logdir)) then @@ -64,7 +64,7 @@ echo "Qflow LVS logfile created on $date" > ${synthlog} if ( ! -f ${lastlog} ) then echo "Warning: No migration logfile found." else - set errcond = `tail -1 ${lastlog} | grep "error condition" | wc -l` + set errcond=`tail -1 ${lastlog} | grep "error condition" | wc -l` if ( ${errcond} == 1 ) then echo "Synthesis flow stopped on error condition. LVS comparison" echo "will not proceed until error condition is cleared." @@ -156,7 +156,7 @@ ${bindir}/netgen ${lvs_options} -batch lvs "${rootname}.spice ${rootname}" \ "${synthdir}/${rootname}.spc ${rootname}" ${setup_script} ${outfile} \ -json -blackbox |& tee -a ${synthlog} -set errcond = $status +set errcond=$status if ( ${errcond} != 0 ) then echo "netgen failed with exit status ${errcond}" |& tee -a ${synthlog} echo "Premature exit." |& tee -a ${synthlog} @@ -183,7 +183,7 @@ echo "Running count_lvs.py" echo "${scriptdir}/count_lvs.py" |& tee -a ${synthlog} ${scriptdir}/count_lvs.py |& tee -a ${synthlog} -set err_total = `tail -1 ${synthlog} | cut -d' ' -f4` +set err_total=`tail -1 ${synthlog} | cut -d' ' -f4` if ( ${err_total} > 0 ) then echo "Design fails LVS with ${err_total} errors." |& tee -a ${synthlog} echo "See lvs.log and comp.out for error details." |& tee -a ${synthlog} @@ -195,7 +195,7 @@ endif # Done! #------------------------------------------------------------ -set endtime = `date` +set endtime=`date` echo "LVS checking script ended on $endtime" >> $synthlog exit 0