Add support for generating different size of HDL CGRA code automatically.