HDL Optimization