Module: Adept::JTAG::TAPStates::SelectDR

Defined in:
lib/adept/jtag/tap_states.rb

Overview

Override the FSM’s base behavior in the SelectDR state, as that state is the “branch point” between the instruction register and the data-register columns.

Class Method Summary collapse

Class Method Details

.next_hop_towards(state) ⇒ Object

Override the heuristic for path-finding within the TAP finite state machine; move to the appropriate column depending on if we’re looking for an Data Register or Instruction Register access.



45
46
47
48
# File 'lib/adept/jtag/tap_states.rb', line 45

def self.next_hop_towards(state)
  #If we're looking for an instruction state, continue to the next column.
  (state.name =~ /IR$/) ? 1 : 0
end