Class: OrigenAhb::Test::BLOCK

Inherits:
Object
  • Object
show all
Includes:
Origen::Model
Defined in:
lib/origen_ahb_dev/block.rb

Instance Method Summary collapse

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(options = {})
  instantiate_registers(options)
end

Instance Method Details

#instantiate_registers(options = {}) ⇒ Object



10
11
12
13
# File 'lib/origen_ahb_dev/block.rb', line 10

def instantiate_registers(options = {})
  add_reg :control, 0x00, 32, data: { pos: 0, bits: 32 }
  add_reg :status, 0x04, 32, data: { pos: 0, bits: 32 }
end