Optimized HDL for online multiplier