Fix HDL functions.