Sha256: 9a21d508965fe0d1ca2f853db4ebf814ac71dd5943217499882f40e5f0eb4c91

Contents?: true

Size: 878 Bytes

Versions: 3

Compression:

Stored size: 878 Bytes

Contents

module OrigenDebuggers
  module Test
    # A simple DUT model used to test the debuggers
    class DUT
      include OrigenJTAG
      include Origen::Pins
      include Origen::Registers

      def initialize
        add_pin :tclk
        add_pin :tdi
        add_pin :tdo
        add_pin :tms

        reg :reg32, 0x20 do
          bits 31..0, :data
        end
      end

      # Hook the Nexus into the register API, any register read
      # requests will use the Nexus by default
      def read_register(reg, options = {})
        # nexus.read_register(reg, options)
        cc 'Needs to be enabled when a register protocol is available'
      end

      # As above for write requests
      def write_register(reg, options = {})
        # nexus.write_register(reg, options)
        cc 'Needs to be enabled when a register protocol is available'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
origen_debuggers-0.5.2 lib/origen_debuggers/test/dut.rb
origen_debuggers-0.5.1 lib/origen_debuggers/test/dut.rb
origen_debuggers-0.5.0 lib/origen_debuggers/test/dut.rb