Text this: A new scan design technique based on pre-synthesis thru functions