Class: OrigenARMDev::DUT
- Inherits:
-
Object
- Object
- OrigenARMDev::DUT
- Includes:
- Origen::TopLevel, OrigenARMDebug, OrigenJTAG
- Defined in:
- lib/origen_arm_dev/dut.rb
Overview
This is a dummy DUT class that should be used to test that your test module can integrate into a top-level app
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DUT
constructor
A new instance of DUT.
- #instantiate_pins(options) ⇒ Object
- #instantiate_sub_blocks(options) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DUT
Returns a new instance of DUT
9 10 11 12 |
# File 'lib/origen_arm_dev/dut.rb', line 9 def initialize( = {}) instantiate_pins() instantiate_sub_blocks() end |
Instance Method Details
#instantiate_pins(options) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/origen_arm_dev/dut.rb', line 14 def instantiate_pins() add_pin :tclk add_pin :tdi add_pin :tdo add_pin :tms add_pin :resetb end |
#instantiate_sub_blocks(options) ⇒ Object
22 23 24 25 |
# File 'lib/origen_arm_dev/dut.rb', line 22 def instantiate_sub_blocks() sub_block :arm_debug, class_name: 'OrigenARMDebug::DAP', mem_aps: { mem_ap: 0x0, mdmap: 0x0100_0000 } sub_block :cm33, class_name: 'OrigenARM::Cores::CortexM::CM33', base_address: 0x1000_0000 end |