Class: OrigenARMDebugDev::SWD_DUT

Inherits:
DUT
  • Object
show all
Includes:
OrigenSWD
Defined in:
lib/origen_arm_debug_dev/dut_swd.rb

Overview

Simple SWD-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

#initializeSWD_DUT

Adds swd-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
# File 'lib/origen_arm_debug_dev/dut_swd.rb', line 8

def initialize
  super
  add_pin :tclk
  add_pin :tdi
  add_pin :tdo
  add_pin :tms
  add_pin :trst
  add_pin :swd_clk
  add_pin :swd_dio

  sub_block :arm_debug, class_name: 'OrigenARMDebug::DAP',
                        mem_aps:    {
                          mem_ap: { base_address: 0x00000000, csw_reset: 0x23000042 },
                          mdm_ap: 0x01000000
                        }
end