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.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/ext/hruby_sim/hruby_rcsim_build.c +24 -0
- data/ext/hruby_sim/hruby_sim_calc.c +1 -1
- data/lib/HDLRuby/hdr_samples/constant_prop_bench.rb +2 -2
- data/lib/HDLRuby/hruby_high.rb +1 -1
- data/lib/HDLRuby/hruby_low_split_signals.rb +2 -2
- data/lib/HDLRuby/hruby_rcsim.rb +6 -1
- data/lib/HDLRuby/hruby_viz.rb +827 -713
- data/lib/HDLRuby/std/sequencer.rb +6 -7
- data/lib/HDLRuby/version.rb +1 -1
- metadata +2 -2
|
@@ -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
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
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|
|
data/lib/HDLRuby/version.rb
CHANGED
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.
|
|
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:
|
|
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: []
|