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