Module: OrigenDebuggers::PEmicro::Custom
- Included in:
- OrigenDebuggers::PEmicro
- Defined in:
- lib/origen_debuggers/p_and_e.rb
Overview
Other methods can expose unique features of a given debugger
Instance Method Summary collapse
-
#enter_jtag ⇒ Object
not expected to be typically used, should be automatically handled in code, unless manually doing dw “…” calls.
-
#exit_jtag ⇒ Object
not expected to be typically used, should be automatically handled in code, unless manually doing dw “…” calls.
- #go ⇒ Object
- #halt ⇒ Object
- #set_pc(address) ⇒ Object (also: #setPC)
Instance Method Details
#enter_jtag ⇒ Object
not expected to be typically used, should be automatically handled in code, unless manually doing dw “…” calls
294 295 296 297 |
# File 'lib/origen_debuggers/p_and_e.rb', line 294 def enter_jtag # not expected to be typically used, should be automatically handled in code, unless manually doing dw "..." calls dw 'jtag_start' @in_jtag = true end |
#exit_jtag ⇒ Object
not expected to be typically used, should be automatically handled in code, unless manually doing dw “…” calls
289 290 291 292 |
# File 'lib/origen_debuggers/p_and_e.rb', line 289 def exit_jtag # not expected to be typically used, should be automatically handled in code, unless manually doing dw "..." calls dw 'jtag_end' @in_jtag = false end |
#go ⇒ Object
279 280 281 282 283 |
# File 'lib/origen_debuggers/p_and_e.rb', line 279 def go dw 'jtag_end' if @in_jtag @in_jtag = false dw 'GO' end |
#halt ⇒ Object
285 286 287 |
# File 'lib/origen_debuggers/p_and_e.rb', line 285 def halt dw "\n" end |
#set_pc(address) ⇒ Object Also known as: setPC
272 273 274 275 276 |
# File 'lib/origen_debuggers/p_and_e.rb', line 272 def set_pc(address) dw 'jtag_end' if @in_jtag @in_jtag = false dw "PC $#{address.to_s(16).upcase}" end |