Sha256: 92464c5f837b2357f9b4336b2855141e9960bab61195d7864662f8ded3fc028d

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

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

      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

2 entries across 2 versions & 1 rubygems

Version Path
origen_debuggers-0.6.1 lib/origen_debuggers/test/dut.rb
origen_debuggers-0.6.0 lib/origen_debuggers/test/dut.rb