198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
# File 'lib/origen/pins/pin_bank.rb', line 198
def find_pin_group(id, options = {})
options = {
include_all: true
}.merge(options)
if options[:power_pin]
base = all_power_pin_groups
elsif options[:ground_pin]
base = all_ground_pin_groups
elsif options[:other_pin]
base = all_other_pin_groups
elsif options[:virtual_pin]
base = all_virtual_pin_groups
else
base = all_pin_groups
end
pin_group_stores_in_context(base, options) do |store|
return store[id] if store[id]
end
nil
end
|