A Python-based HDL register file generator