Class: OrigenDebuggers::Base

Inherits:
OrigenTesters::CommandBasedTester
  • Object
show all
Defined in:
lib/origen_debuggers/base.rb

Overview

This is base class of all debuggers, any methods/attributes defined here will be available to all

Direct Known Subclasses

JLink, PEmicro

Defined Under Namespace

Classes: OnCreateCaller

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base



19
20
21
22
# File 'lib/origen_debuggers/base.rb', line 19

def initialize
  OnCreateCaller.new(self)
  super
end

Instance Method Details

#cycle(*args) ⇒ Object

Concept of a cycle not supported, print out an error to the output file to alert the user that execution has hit code that is not compatible with a command based tester.



32
33
34
# File 'lib/origen_debuggers/base.rb', line 32

def cycle(*args)
  cc '*** Cycle called ***'
end

#jtag?Boolean

Returns true if the debugger supports JTAG

Returns:

  • (Boolean)


25
26
27
# File 'lib/origen_debuggers/base.rb', line 25

def jtag?
  respond_to?(:write_dr)
end