Bennett/General User Manual/Watchpoint: Difference between revisions
| Line 19: | Line 19: | ||
=== COMP22712 === | === COMP22712 === | ||
Specific details for COMP22712 are | Specific details for COMP22712 are included in this section. In particular, the control register can be edited via the watchpoint interface for more control of the watchpoint functionality. | ||
Watchpoints upon creation will trap for loads and stores and in all operating modes. | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Control Register bit map | ||
|- | |- | ||
! Bit !! Description | ! Bit !! Description (active high) | ||
|- | |- | ||
| 0 || trap on load | | 0 || trap on load | ||
Revision as of 09:53, 23 January 2026
Watchpoints
Watchpoints can be added via Bennett for hardware that supports these features. Currently, this is the COMP22712 lab board and COMP15111 emulator.
To create a watchpoint Right click on the memory address that you would like to watch.
This will create a watchpoint at that address. This watchpoint will be included in the watchpoint display window (if this doesn't appear, it can be added via the Window menu.)
The Address, Address mask and control register of the watchpoint can be edited from the watchpoint display window. This allows you to change the address, or increase the memory window, which will be written to.
For example, a watchpoint with address 0x40 and address mask 0xffff_fff0 would trap for any reads/writes into 0x40-0x4F.



COMP22712
Specific details for COMP22712 are included in this section. In particular, the control register can be edited via the watchpoint interface for more control of the watchpoint functionality.
Watchpoints upon creation will trap for loads and stores and in all operating modes.
| Bit | Description (active high) |
|---|---|
| 0 | trap on load |
| 1 | trap on load |
| 2 | unused |
| 3 | unused |
| 4 | trap on byte transfer (sb/lb) |
| 5 | trap on half word transfer (sh/lh) |
| 6 | trap on word transfer (sw/lw) |
| 7 | unused |
| 8 | trap in user mode |
| 9 | trap in supervisor mode |
| 10 | unused |
| 11 | trap in machine mode |