lib/origen/registers/reg.rb
# Add a bit to the register, should only be called internally
Add a bit to the register, should only be called internally
Add a bit to the register should only be called internally
def add_bit(id, position, options = {}) 
        options = { data: @bits[position].data,  
                    res:  @bits[position].data,   
                  }.merge(options)
        @lookup[id] = { pos: position, bits: 1, feature: options[:feature] }
        @bits.delete_at(position)    
        @bits.insert(position, Bit.new(self, position, options))
        self
      end
def add_bit ( id , position , options = { } ) options = { data : @bits [ position ] . data , res : @bits [ position ] . data , } . merge ( options ) @lookup [ id ] = { pos : position , bits : 1 , feature : options [ :feature ] } @bits . delete_at ( position ) @bits . insert ( position , Bit . new ( self , position , options ) ) self end
Add a bit to the register, should only be called internally
Add a bit to the register should only be called internally
# :nodoc: # If undefined preserve any data/reset value that has # already been applied at reg level # Remove the initial bit from this position
id
<not_specific>
position
<not_specific>
options
<not_specific>