def write_register(self, register, value):
self._publish('<STR_LIT>', register, value)<EOL>value = self._regfile.write(register, value)<EOL>self._publish('<STR_LIT>', register, value)<EOL>return value<EOL>
Dynamic interface for writing cpu registers

:param str register: register name (as listed in `self.all_registers`)
:param value: register value
:type value: int or long or Expression