Design Techniques for Energy-Quality Scalable Digital Systems