Class: OrigenAhbDev::BLOCK
- Inherits:
-
Object
- Object
- OrigenAhbDev::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.
5 6 7 |
# File 'lib/origen_ahb_dev/block.rb', line 5 def initialize( = {}) instantiate_registers() end |
Instance Method Details
#instantiate_registers(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/origen_ahb_dev/block.rb', line 9 def instantiate_registers( = {}) add_reg :control, 0x00, 32, data: { pos: 0, bits: 32 } add_reg :status, 0x04, 32, data: { pos: 0, bits: 32 } end |