lib/origen/sub_blocks.rb in origen-0.25.1 vs lib/origen/sub_blocks.rb in origen-0.26.0

- old
+ new

@@ -241,9 +241,17 @@ false end end alias_method :has_regs?, :owns_registers? + def has_fuses? + fuses.empty? ? false : true + end + + def has_tests? + tests.empty? ? false : true + end + def sub_block(name, options = {}) if i = options.delete(:instances) a = [] options[:_instance] = i i.times do |j|