Method: Origen::Pins::PinBank#delete_pingroup
- Defined in:
- lib/origen/pins/pin_bank.rb
#delete_pingroup(group) ⇒ Object
Delete a specific pin group
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/origen/pins/pin_bank.rb', line 270 def delete_pingroup(group) found_group = false if group.power_pins? base = all_power_pin_groups elsif group.ground_pins? base = all_ground_pin_groups elsif group.other_pins? base = all_other_pin_groups elsif group.virtual_pins? base = all_virtual_pin_groups else base = all_pin_groups end pin_group_stores_in_context(base) do |store| if store.include?(group.id) store.delete(group.id) found_group = true end end fail "A pin group with id #{group.id} does not exist!" unless found_group == true end |