Module: Origen::TopLevel

Included in:
OrigenSimDev::DUT
Defined in:
lib/origen_sim/origen/top_level.rb

Instance Method Summary collapse

Instance Method Details

#rtl_pinsObject

Like pins, except removes any pins which have their rtl_name attribute set to ‘nc’



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/origen_sim/origen/top_level.rb', line 6

def rtl_pins
  @rtl_pins ||= begin
    p = []
    pins.each do |name, pin|
      options = {}
      unless pin.rtl_name.to_s.downcase == 'nc'
        if pin.primary_group
          options[:group] = true
        end
        p << [name, pin, options]
      end
    end
    p
  end
end