Class: OrigenStandardSubblocksDev::DUTController
- Inherits:
-
Object
- Object
- OrigenStandardSubblocksDev::DUTController
- Defined in:
- lib/origen_standard_subblocks_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
- #read_register(reg, options = {}) ⇒ Object
- #shutdown(options = {}) ⇒ Object
- #startup(options = {}) ⇒ Object
- #write_register(reg, options = {}) ⇒ Object
Instance Method Details
#read_register(reg, options = {}) ⇒ Object
22 23 24 |
# File 'lib/origen_standard_subblocks_dev/dut_controller.rb', line 22 def read_register(reg, = {}) arm_debug.mem_ap.read_register(reg, ) end |
#shutdown(options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/origen_standard_subblocks_dev/dut_controller.rb', line 13 def shutdown( = {}) ss 'Shutdown the SoC' pin(:resetb).drive!(0) end |
#startup(options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/origen_standard_subblocks_dev/dut_controller.rb', line 5 def startup( = {}) 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_standard_subblocks_dev/dut_controller.rb', line 18 def write_register(reg, = {}) arm_debug.mem_ap.write_register(reg, ) end |