HDLRuby 3.9.3 → 3.9.5

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.
@@ -2266,13 +2266,12 @@ module HDLRuby::High::Std
2266
2266
  end
2267
2267
  # Create the hardware iterator.
2268
2268
  this = self
2269
- size = this.size ? this.size : this.last - this.first + 1
2270
- # size = size.to_expr
2271
- # if size.respond_to?(:cast) then
2272
- # size = size.cast(typ)
2273
- # else
2274
- # size = size.as(typ)
2275
- # end
2269
+ # size = this.size ? this.size : this.last - this.first + 1
2270
+ if this.last.is_a?(SignalI) or this.first.is_a?(SignalI) then
2271
+ size = this.last.to_expr - this.first.to_expr + 1
2272
+ else
2273
+ size = this.last.to_i - this.first.to_i + 1
2274
+ end
2276
2275
  size = size.to_expr.as(typ)
2277
2276
  # hw_enum = SEnumeratorBase.new(signed[32],size) do |idx|
2278
2277
  hw_enum = SEnumeratorBase.new(typ,size) do |idx|
@@ -1,3 +1,3 @@
1
1
  module HDLRuby
2
- VERSION = "3.9.3"
2
+ VERSION = "3.9.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HDLRuby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.3
4
+ version: 3.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovic Gauthier
@@ -502,7 +502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
502
502
  - !ruby/object:Gem::Version
503
503
  version: '0'
504
504
  requirements: []
505
- rubygems_version: 3.7.2
505
+ rubygems_version: 4.0.14
506
506
  specification_version: 4
507
507
  summary: HDLRuby is a library for describing and simulating digital electronic systems.
508
508
  test_files: []