| |||
| Home > Debug Configuration Tutorial > Creating a custom register > Creating the custom register | |||
To create the custom register:
Expand
the Register group. A Default group
is available.
Rename the Default group to MemoryStatus:
Right-click on the Default group
to display the context menu.
Select Rename from the context
menu to display the Enter Name of New object dialog box. The name default is
inserted.
Enter MemoryStatus for the name of this register.
Click Rename. The name changes
from Default to MemoryStatus.
Select the MemoryStatus register
group in the left pane.
Right-click on Base in the right
pane to display the context menu.
Select M_IO_REGS from the context menu.
Set the value of Start to 0x20.
This is the offset of the register from the base address of the M_IO_REGS memory
block.
Right-click on Gui_name to display
the context menu.
Select Edit Value... from the context menu.
Enter Memory Status Register.
Save your changes.