summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTim Edwards <tim@opencircuitdesign.com>2015-06-02 10:05:52 -0400
committerTim Edwards <tim@opencircuitdesign.com>2015-06-02 10:05:52 -0400
commit77eadd02dbffceb3af29bb56f7a365680c00f8a1 (patch)
treed88e98e2ea64d0042623af61a9dfd8f8f1d8015e /scripts
parentc4354acd7aaced1af2469464cea323dd9a697d7d (diff)
Modified readliberty.c to ignore cells marked "dont_use".
Corrected synthesis script to no longer require a "gate.cfg" file to run blifFanout, since this has been deprecated (and is no longer in the set of installed files). Modified blifFanout to use the first buffer found in the liberty file, so details of the buffer cell do not need to be provided in the tech shell script (although they will be used, if passed to the program).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/synthesize.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/synthesize.sh b/scripts/synthesize.sh
index d05dabe..d8a1a53 100755
--- a/scripts/synthesize.sh
+++ b/scripts/synthesize.sh
@@ -405,7 +405,7 @@ endif
echo "Running blifFanout (iterative)" |& tee -a ${synthlog}
echo "" >> ${synthlog}
-if (-f ${techdir}/gate.cfg && -f ${bindir}/blifFanout ) then
+if (-f ${techdir}/${libertyfile} && -f ${bindir}/blifFanout ) then
set nchanged=1000
while ($nchanged > 0)
mv ${rootname}.blif tmp.blif
@@ -414,9 +414,13 @@ if (-f ${techdir}/gate.cfg && -f ${bindir}/blifFanout ) then
else
set sepoption="-s ${separator}"
endif
+ if ("x${bufcell}" == "x") then
+ set bufoption=""
+ else
+ set bufoption="-b ${bufcell} -i ${bufpin_in} -o ${bufpin_out}"
+ endif
${bindir}/blifFanout ${fanout_options} -f ${rootname}_nofanout \
- -p ${techdir}/${libertyfile} ${sepoption} \
- -b ${bufcell} -i ${bufpin_in} -o ${bufpin_out} \
+ -p ${techdir}/${libertyfile} ${sepoption} ${bufoption} \
tmp.blif ${rootname}.blif >>& ${synthlog}
set nchanged=$status
echo "gates resized: $nchanged" |& tee -a ${synthlog}
@@ -455,7 +459,12 @@ ${bindir}/blif2Verilog -c -p -v ${vddnet} -g ${gndnet} ${rootname}.blif \
> ${rootname}.rtlnopwr.v
echo "Running blif2BSpice." |& tee -a ${synthlog}
-${bindir}/blif2BSpice -p ${vddnet} -g ${gndnet} -l ${techdir}/${spicefile} \
+if ("x${spicefile}" == "x") then
+ set spiceopt=""
+else
+ set spiceopt="-l ${techdir}/${spicefile}"
+endif
+${bindir}/blif2BSpice -p ${vddnet} -g ${gndnet} ${spiceopt} \
${rootname}.blif > ${rootname}.spc
#---------------------------------------------------------------------