module OrigenAhbDev # Dummy sub-block for inclusion in top-level dut class BLOCK include Origen::Model # Initialize block def initialize(options = {}) instantiate_registers(options) end # Create block-level registers 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 end end