def generate_cpu_name(all_parameters):
    name_template = string.Template("${CPU_NAME}x${WORD_WIDTH}_A${A_IO_READ_PORT_COUNT}i${A_IO_WRITE_PORT_COUNT}o_B${B_IO_READ_PORT_COUNT}i${B_IO_WRITE_PORT_COUNT}o")
    name = name_template.substitute(all_parameters)
    return {"CPU_NAME":name}
You can do fancy naming here by refering to parameter names in the template: e.g. ${WORD_WIDTH}
dataset/ETHPy150Open laforest/Octavo/Generator/Scalar/Scalar_parameters.py/generate_cpu_name