Class: OrigenARMDebugDev::JTAG_DUT

Inherits:
DUT
  • Object
show all
Includes:
OrigenJTAG
Defined in:
lib/origen_arm_debug_dev/dut_jtag.rb

Overview

Simple JTAG-specific dut model that inherits from protocol-agnostic DUT model

Constant Summary

Constants included from OrigenARMDebug

OrigenARMDebug::Driver

Instance Method Summary collapse

Methods inherited from DUT

#read_register, #startup, #write_register

Constructor Details

#initialize(options = {}) ⇒ JTAG_DUT

Adds jtag-required pins to the simple dut model Returns nothing.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/origen_arm_debug_dev/dut_jtag.rb', line 8

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,
      csw_reset:         0x23000040
    },
    mdm_ap: 0x01000000
  }
  # Specify (customize) ARM Debug implementation details
  sub_block :arm_debug, options
end