Sha256: 9cea498b2a024598550fc5971692f03b78515bef6d11776058a84fc40a101add

Contents?: true

Size: 419 Bytes

Versions: 23

Compression:

Stored size: 419 Bytes

Contents

module <%= @namespace %>
  class <%= @options[:name] %>
    include Origen::Model

    def initialize(options = {})
      instantiate_registers(options)
    end

    def instantiate_registers(options)
      # Define your IP's registers here
      reg :config, 0x0, size: 32 do |reg|
        reg.bits 15..8, :mode
        reg.bit 1, :ext_clk, reset: 1
        reg.bit 0, :secure, access: :ro
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
origen-0.44.0 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.43.0 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.42.2 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.42.1 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.42.0 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.41.2 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.41.1 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.41.0 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.40.2 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.40.1 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen-0.40.0 origen_app_generators/templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.2.0 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.1.4 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.1.3 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.1.2 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.1.1 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.1.0 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.0.1 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-1.0.0 templates/app_generators/test_engineering/test_block/lib/model.rb
origen_app_generators-0.4.0 templates/app_generators/test_engineering/test_block/lib/model.rb