Class: OrigenARMDev::DUTController

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_arm_dev/dut_controller.rb

Overview

This is a dummy DUT controller that should be used to test that your test module can integrate into a top-level app

Instance Method Summary collapse

Instance Method Details

#read_register(reg, options = {}) ⇒ Object



22
23
24
# File 'lib/origen_arm_dev/dut_controller.rb', line 22

def read_register(reg, options = {})
  arm_debug.mem_ap.read_register(reg, options)
end

#shutdown(options = {}) ⇒ Object



13
14
15
16
# File 'lib/origen_arm_dev/dut_controller.rb', line 13

def shutdown(options = {})
  ss 'Shutdown the SoC'
  pin(:resetb).drive!(0)
end

#startup(options = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/origen_arm_dev/dut_controller.rb', line 5

def startup(options = {})
  tester.set_timeset('func_25', 40)
  ss 'Startup the SoC'
  pin(:resetb).drive!(0)
  100.cycles
  pin(:resetb).dont_care
end

#write_register(reg, options = {}) ⇒ Object



18
19
20
# File 'lib/origen_arm_dev/dut_controller.rb', line 18

def write_register(reg, options = {})
  arm_debug.mem_ap.write_register(reg, options)
end