Sha256: 25998ea1707401644c8acfa7bdb1376fc7618d1f621b1fb48051ec99090097bc

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

module OrigenARMDebugDev
  # Simple JTAG-specific dut model that inherits from protocol-agnostic DUT model
  class JTAG_AXI_ACK_DUT < DUT
    include OrigenJTAG

    # Adds jtag-required pins to the simple dut model
    # Returns nothing.
    def initialize(options = {})
      super
      add_pin :tclk
      add_pin :tdi
      add_pin :tdo
      add_pin :tms
      add_pin :trst
      add_pin :swd_clk
      add_pin :swd_dio

      options[:class_name] = 'OrigenARMDebug::DAP'
      options[:mem_aps] = {
        mem_ap: {
          base_address:      0x00000000,
          latency:           16,
          apreg_access_wait: 8,
          apmem_access_wait: 8,
          is_axi:            true,
          csw_reset:         0x1080_6002
        },
        mdm_ap: 0x01000000
      }
      options[:dp_select_reset] = 0xC2_0D00
      options[:read_ack] = true
      # Specify (customize) ARM Debug implementation details
      sub_block :arm_debug, options

      options[:dapv6] = true
      options[:class_name] = 'OrigenARMDebug::DAP'
      options[:mem_aps] = {
        mem_ap: {
          base_address:      0x00C2_0000,
          latency:           16,
          apreg_access_wait: 8,
          apmem_access_wait: 8,
          is_axi:            true,
          csw_reset:         0x1080_6002
        },
        mdm_ap: 0x00C3_0000
      }
      sub_block :arm_debugv6, options
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
origen_arm_debug-1.3.1 lib/origen_arm_debug_dev/dut_jtag_axi_ack.rb