Sha256: 0f658badcb4a1e1540541631e773bae9be67f0a9512a7585a1df3500f2be808b

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 Bytes

Contents

module OrigenJTAGDev
  # This is a dummy DUT model which is used
  # to instantiate and test the JTAG locally
  # during development.
  #
  # It is not included when this library is imported.
  class Serial < NewStyle
    def instantiate_pins(options = {})
      add_pin :tck
      add_pin :tio
    end

    def jtag_cycle(actions, options = {})
      pin(:tck).drive(1)
      jtag.apply_action(pin(:tio), actions[:tdi])
      tester.cycle(options)
      jtag.apply_action(pin(:tio), actions[:tms])
      tester.cycle(options)
      jtag.apply_action(pin(:tio), actions[:tdo])
      tester.store_next_cycle(pin(:tio)) if actions[:store]
      tester.cycle(options)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
origen_jtag-0.22.3 lib/origen_jtag_dev/serial.rb
origen_jtag-0.22.2 lib/origen_jtag_dev/serial.rb
origen_jtag-0.22.1 lib/origen_jtag_dev/serial.rb
origen_jtag-0.22.0 lib/origen_jtag_dev/serial.rb
origen_jtag-0.21.1 lib/origen_jtag_dev/serial.rb
origen_jtag-0.21.0 lib/origen_jtag_dev/serial.rb