#! /bin/sh -v

# Gather statistics from toFloat module

	rm xx-tofloat.*
java tb_toFloat build in.width=32 out.width=32 out.expwidth=8 signed pipelined
	grep "Number of Slices" xx-tofloat.mrp; grep "Minimum period" xx-tofloat.par.twr; grep "Maximum combinational path delay" xx-tofloat.par.twr; grep "Maximum net delay" xx-tofloat.par.twr

	rm xx-tofloat.*
java tb_toFloat build in.width=32 out.width=32 out.expwidth=8 signed pipelined=false
	grep "Number of Slices" xx-tofloat.mrp; grep "Minimum period" xx-tofloat.par.twr; grep "Maximum combinational path delay" xx-tofloat.par.twr; grep "Maximum net delay" xx-tofloat.par.twr

	rm xx-tofloat.*
java tb_toFloat build in.width=24 out.width=32 out.expwidth=8 signed pipelined
	grep "Number of Slices" xx-tofloat.mrp; grep "Minimum period" xx-tofloat.par.twr; grep "Maximum combinational path delay" xx-tofloat.par.twr; grep "Maximum net delay" xx-tofloat.par.twr

	rm xx-tofloat.*
java tb_toFloat build in.width=18 out.width=24 out.expwidth=6 signed pipelined
	grep "Number of Slices" xx-tofloat.mrp; grep "Minimum period" xx-tofloat.par.twr; grep "Maximum combinational path delay" xx-tofloat.par.twr; grep "Maximum net delay" xx-tofloat.par.twr

	rm xx-tofloat.*
java tb_toFloat build in.width=12 out.width=16 out.expwidth=6 signed pipelined
	grep "Number of Slices" xx-tofloat.mrp; grep "Minimum period" xx-tofloat.par.twr; grep "Maximum combinational path delay" xx-tofloat.par.twr; grep "Maximum net delay" xx-tofloat.par.twr

