dp_att_014 1.15 KB
#!/bin/sh

rm -rf OutData
uncompress -c ../../../../apps/rdpatt_bb/InData/test014.14.rdram.Z > tmp.dp.rdram
cp tmp.dp.rdram hw.dp.rdram

#### get hw rgb image ####
rdramg hw.dp
rdram2image hw.dp
rm hw.dp.rdram

#### cov and z data are from rcp result ######
cp ../../../../rdpsim/test/rdp/OutData/test014_att_rcp.z OutData/hw.dp_0.z
cp ../../../../rdpsim/test/rdp/OutData/test014_att_rcp.cov OutData/hw.dp_0.cov

rdramgclr tmp.dp
../../iosim -f ../test/rdp2.tst 
rdram2image tmp.dp

filter -c OutData/tmp.dp_0.cov -i OutData/tmp.dp_0.cvg -n OutData/tmp.dp_0.rgb -o tmp.dp_0.rgbf

idf OutData/tmp.dp_0.cov OutData/hw.dp_0.cov tmp.idf && {
	echo "Succeed: cov image mactch"
} || {
	echo "Failed: cov image mismactch"
	mv OutData/tmp.dp_0.cov OutData/tmp.att.$$.dp_0.cov
}

idf -d OutData/tmp.dp_0.rgb OutData/hw.dp_0.rgb tmp.idf && {
	echo "Succeed: rgb image mactch"
} || {
	echo "Failed: rgb image mismactch"
	mv OutData/tmp.dp_0.rgb OutData/tmp.att.$$.dp_0.rgb
}

idf OutData/tmp.dp_0.z OutData/hw.dp_0.z tmp.idf && {
	echo "Succeed: z image mactch"
} || {
	echo "Failed: z image mismactch"
	mv OutData/tmp.dp_0.z OutData/tmp.att.$$.dp_0.z
}

#rm tmp.dp.* tmp.idf tmp.dp_0.rgbf