Look Up Table Compaction Based on Folding of Logic Functions