Class: OrigenAhb::Test::BLOCK
- Inherits:
-
Object
- Object
- OrigenAhb::Test::BLOCK
- Includes:
- Origen::Model
- Defined in:
- lib/origen_ahb_dev/block.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ BLOCK
constructor
A new instance of BLOCK.
- #instantiate_registers(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ BLOCK
Returns a new instance of BLOCK.
6 7 8 |
# File 'lib/origen_ahb_dev/block.rb', line 6 def initialize( = {}) instantiate_registers() end |
Instance Method Details
#instantiate_registers(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/origen_ahb_dev/block.rb', line 10 def instantiate_registers( = {}) add_reg :control, 0x00, 32, data: { pos: 0, bits: 32 } add_reg :status, 0x04, 32, data: { pos: 0, bits: 32 } end |