origen 0.7.36 → 0.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1118662c21d50b42e5f844b07a727e4bdf7aa669
4
- data.tar.gz: 9e1479f4346e08d9e04495ded26ee4fab9a09de4
3
+ metadata.gz: 2b4c41a7e948c18b50b0152e4d9a8282e78e4f81
4
+ data.tar.gz: 5ec4a78d31f5710389eee3d3802ed40af095154c
5
5
  SHA512:
6
- metadata.gz: dfb87c30e2a997642ef231e6a1c32a9f502d36d54a6ea1be474bbf01b8ad66078c100bf7a925552537bb884fe697208c1e4f7385aa74937d20582897fca41fcd
7
- data.tar.gz: ea5afacc77fa582f6d8869026d292dc7bbe82bf9fac94d712a576cd43c84e7b7baa9cbcb4487e82316ecc93dd47fb4121ad36042f827338e8d751e609b85172d
6
+ metadata.gz: b866b7e53ffeb9933795a15586746a5ea51f5c044a780accb391bff10963acec7c8836ffddf447aade0f5ecffdde18b78a3b900349fde1895a2398c845e03566
7
+ data.tar.gz: c676db445de768fa69a52a0e81dcc296c591580f7f1b651d29beb081f424b482c11a6650ba2873805679807a739057785c9cbba6a28e1d0b261166aaf3d4e025
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 36
4
+ BUGFIX = 37
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -84,7 +84,6 @@ module Origen
84
84
  puts cmd
85
85
  '496212' # Return a dummy ID to keep the caller happy
86
86
  else
87
- # puts cmd
88
87
  output = `#{cmd}`
89
88
  Origen.log.info output.strip
90
89
  if output.split("\n").last =~ /Job <(\d+)> is submitted/
@@ -130,13 +129,16 @@ module Origen
130
129
  # to warn if a single users current job count gets above 500.
131
130
  # This method prevents that stage from being reached.
132
131
  def limit_job_submissions
133
- if remote_jobs_count > 450
132
+ @local_job_count ||= 0
133
+ if @local_job_count == 100
134
134
  while remote_jobs_count > 400
135
135
  puts 'Waiting for submitted jobs count to fall below limit...'
136
136
  sleep 5
137
137
  end
138
+ @local_job_count = 0
138
139
  yield
139
140
  else
141
+ @local_job_count += 1
140
142
  yield
141
143
  end
142
144
  end
@@ -25,8 +25,21 @@ module Origen
25
25
  record_invocation(options) do
26
26
  prepare_for_lsf
27
27
  Origen.app.listeners_for(:before_lsf_submission).each(&:before_lsf_submission)
28
+ batch = []
28
29
  expand_lists_and_directories(options[:files], options).each do |file|
29
- Origen.app.lsf_manager.submit_origen_job(file, options)
30
+ if options[:batch]
31
+ # Batch jobs into groups of 10
32
+ batch << file
33
+ if batch.size == options[:batch]
34
+ Origen.app.lsf_manager.submit_origen_job(batch.join(' '), options)
35
+ batch = []
36
+ end
37
+ else
38
+ Origen.app.lsf_manager.submit_origen_job(file, options)
39
+ end
40
+ end
41
+ if options[:batch]
42
+ Origen.app.lsf_manager.submit_origen_job(batch.join(' '), options) unless batch.empty?
30
43
  end
31
44
  end
32
45
  Origen.log.info ''
@@ -971,6 +971,7 @@ module Origen
971
971
  # reg(:control).bit(1) # => Returns a BitCollection containing status bit
972
972
  # reg(:control).bit(1,2) # => Returns a BitCollection containing both status bits
973
973
  def bit(*args)
974
+ multi_bit_names = false
974
975
  # return get_bits_with_constraint(nil,:default) if args.size == 0
975
976
  constraint = extract_feature_params(args)
976
977
  if constraint.nil?
@@ -994,8 +995,8 @@ module Origen
994
995
  collection << get_bits_with_constraint(bit_number, constraint)
995
996
  end
996
997
  else
998
+ multi_bit_names = args.size > 1
997
999
  # Reaches here if bit name is specified
998
-
999
1000
  if @lookup.include?(arg_item)
1000
1001
  split_bits = false
1001
1002
  @lookup.each { |_k, v| split_bits = true if v.is_a? Array }
@@ -1022,6 +1023,9 @@ module Origen
1022
1023
  end
1023
1024
  nil
1024
1025
  else
1026
+ if multi_bit_names
1027
+ collection.sort_by!(&:position)
1028
+ end
1025
1029
  collection
1026
1030
  end
1027
1031
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.36
4
+ version: 0.7.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -568,7 +568,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
568
568
  version: 1.8.11
569
569
  requirements: []
570
570
  rubyforge_project:
571
- rubygems_version: 2.2.2
571
+ rubygems_version: 2.6.7
572
572
  signing_key:
573
573
  specification_version: 4
574
574
  summary: The Semiconductor Developer's Kit