HDLRuby 2.3.6 → 2.4.8
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 +1 -0
- data/lib/HDLRuby/hdr_samples/bstr_bench.rb +14 -0
- data/lib/HDLRuby/hdr_samples/neg_arith_bench.rb +49 -0
- data/lib/HDLRuby/hdr_samples/with_fixpoint.rb +27 -0
- data/lib/HDLRuby/hdr_samples/with_linear.rb +3 -15
- data/lib/HDLRuby/hdr_samples/with_multi_channels.rb +300 -0
- data/lib/HDLRuby/hdrcc.rb +10 -1
- data/lib/HDLRuby/hruby_bstr.rb +7 -2
- data/lib/HDLRuby/hruby_high.rb +8 -0
- data/lib/HDLRuby/hruby_low.rb +107 -8
- data/lib/HDLRuby/hruby_low2c.rb +31 -9
- data/lib/HDLRuby/hruby_low_mutable.rb +90 -2
- data/lib/HDLRuby/hruby_low_resolve.rb +1 -0
- data/lib/HDLRuby/hruby_low_without_connection.rb +1 -0
- data/lib/HDLRuby/sim/hruby_sim.h +82 -39
- data/lib/HDLRuby/sim/hruby_sim_calc.c +89 -5
- data/lib/HDLRuby/sim/hruby_sim_core.c +32 -6
- data/lib/HDLRuby/sim/hruby_sim_vcd.c +380 -0
- data/lib/HDLRuby/sim/hruby_sim_vizualize.c +51 -12
- data/lib/HDLRuby/std/channel.rb +302 -60
- data/lib/HDLRuby/std/fixpoint.rb +10 -2
- data/lib/HDLRuby/std/linear.rb +33 -13
- data/lib/HDLRuby/std/memory.rb +12 -5
- data/lib/HDLRuby/version.rb +1 -1
- metadata +6 -2
data/lib/HDLRuby/std/memory.rb
CHANGED
@@ -541,12 +541,19 @@ HDLRuby::High::Std.channel(:mem_dual) do |typ,size,clk,rst,br_rsts = {}|
|
|
541
541
|
# No reset, so can perform the read.
|
542
542
|
hif(trig_r == 1) do
|
543
543
|
# The trigger was previously set, read ok.
|
544
|
-
target <= dbus_r
|
545
|
-
blk.call if blk
|
544
|
+
# target <= dbus_r
|
545
|
+
# blk.call if blk
|
546
|
+
seq do
|
547
|
+
# abus_r <= abus_r + 1
|
548
|
+
target <= dbus_r
|
549
|
+
blk.call if blk
|
550
|
+
end
|
551
|
+
end
|
552
|
+
helse do
|
553
|
+
# Prepare the read.
|
554
|
+
abus_r <= abus_r + 1
|
555
|
+
trig_r <= 1
|
546
556
|
end
|
547
|
-
# Prepare the read.
|
548
|
-
abus_r <= abus_r + 1
|
549
|
-
trig_r <= 1
|
550
557
|
end
|
551
558
|
end
|
552
559
|
end
|
data/lib/HDLRuby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HDLRuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lovic Gauthier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- lib/HDLRuby/hdr_samples/addsub.rb
|
76
76
|
- lib/HDLRuby/hdr_samples/addsubz.rb
|
77
77
|
- lib/HDLRuby/hdr_samples/alu.rb
|
78
|
+
- lib/HDLRuby/hdr_samples/bstr_bench.rb
|
78
79
|
- lib/HDLRuby/hdr_samples/calculator.rb
|
79
80
|
- lib/HDLRuby/hdr_samples/counter_bench.rb
|
80
81
|
- lib/HDLRuby/hdr_samples/dff.rb
|
@@ -88,6 +89,7 @@ files:
|
|
88
89
|
- lib/HDLRuby/hdr_samples/memory_test.rb
|
89
90
|
- lib/HDLRuby/hdr_samples/multer_gen.rb
|
90
91
|
- lib/HDLRuby/hdr_samples/multer_seq.rb
|
92
|
+
- lib/HDLRuby/hdr_samples/neg_arith_bench.rb
|
91
93
|
- lib/HDLRuby/hdr_samples/neural/a.rb
|
92
94
|
- lib/HDLRuby/hdr_samples/neural/a_sub.rb
|
93
95
|
- lib/HDLRuby/hdr_samples/neural/bw.rb
|
@@ -123,6 +125,7 @@ files:
|
|
123
125
|
- lib/HDLRuby/hdr_samples/with_linear.rb
|
124
126
|
- lib/HDLRuby/hdr_samples/with_loop.rb
|
125
127
|
- lib/HDLRuby/hdr_samples/with_memory.rb
|
128
|
+
- lib/HDLRuby/hdr_samples/with_multi_channels.rb
|
126
129
|
- lib/HDLRuby/hdr_samples/with_reconf.rb
|
127
130
|
- lib/HDLRuby/hdrcc.rb
|
128
131
|
- lib/HDLRuby/high_samples/_adder_fault.rb
|
@@ -262,6 +265,7 @@ files:
|
|
262
265
|
- lib/HDLRuby/sim/hruby_sim_calc.c
|
263
266
|
- lib/HDLRuby/sim/hruby_sim_core.c
|
264
267
|
- lib/HDLRuby/sim/hruby_sim_list.c
|
268
|
+
- lib/HDLRuby/sim/hruby_sim_vcd.c
|
265
269
|
- lib/HDLRuby/sim/hruby_sim_vizualize.c
|
266
270
|
- lib/HDLRuby/sim/hruby_value_pool.c
|
267
271
|
- lib/HDLRuby/std/channel.rb
|