Text this: Recognition of logic blocks in CMOS circuits