lib/origen/pins.rb in origen-0.11.0 vs lib/origen/pins.rb in origen-0.12.0
- old
+ new
@@ -177,11 +177,14 @@
autoload :PowerPin, 'origen/pins/power_pin'
autoload :GroundPin, 'origen/pins/ground_pin'
autoload :OtherPin, 'origen/pins/other_pin'
autoload :VirtualPin, 'origen/pins/virtual_pin'
autoload :FunctionProxy, 'origen/pins/function_proxy'
+ require 'origen/pins/timing'
+ include Timing
+
# @api private
# API v2, deprecated
def self.clear_pin_aliases
@@pin_aliases = {}
end
@@ -240,10 +243,12 @@
end
group[i].invalidate_group_cache
end
yield group if block_given?
group.each do |pin|
+ pin.send(:primary_group_index=, pin.id)
pin.id = "#{group.id}#{pin.id}".to_sym
+ pin.send(:primary_group=, group)
pin.finalize
end
if group.size == 1
Origen.pin_bank.add_pin(group.first, self, options)
else