def _generate_register_comment(self, outfile, reg):
    comment = '{name} ({long_name}){separator}{purpose}'.format(name=str(reg.name), long_name=str(reg.long_name), separator=(' - ' if reg.purpose else ''), purpose=str(reg.purpose))
    self.writer.declare_comment(outfile, comment, 75)
def _generate_register_comment(self, outfile, reg):
    comment = '{name} ({long_name}){separator}{purpose}'.format(name=str(reg.name), long_name=str(reg.long_name), separator=(' - ' if reg.purpose else ), purpose=str(reg.purpose))
    self.writer.declare_comment(outfile, comment, 75)