Module: Origen::TopLevel
- Included in:
- OrigenSimDev::DUT
- Defined in:
- lib/origen_sim/origen/top_level.rb
Instance Method Summary collapse
-
#rtl_pins(options = {}) ⇒ Object
Like pins, except removes any pins which have their rtl_name attribute set to ‘nc’ Optionally pass in a type: option set to either :analog or :digital to have only the pins with that type returned.
Instance Method Details
#rtl_pins(options = {}) ⇒ Object
Like pins, except removes any pins which have their rtl_name attribute set to ‘nc’ Optionally pass in a type: option set to either :analog or :digital to have only the pins with that type returned
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/origen_sim/origen/top_level.rb', line 8 def rtl_pins( = {}) @rtl_pins ||= {} @rtl_pins[[:type]] ||= begin opts = .dup p = [] pins.each do |name, pin| = {} unless pin.rtl_name.to_s.downcase == 'nc' || (opts[:type] && pin.type && opts[:type] != pin.type) if pin.primary_group [:group] = true end p << [name, pin, ] end end p end end |