HDLRuby 2.3.4 → 2.4.1
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/with_fixpoint.rb +9 -0
- data/lib/HDLRuby/hdr_samples/with_linear.rb +3 -15
- data/lib/HDLRuby/hdr_samples/with_multi_channels.rb +290 -0
- data/lib/HDLRuby/hdrcc.rb +10 -1
- data/lib/HDLRuby/hruby_high.rb +14 -3
- data/lib/HDLRuby/hruby_low.rb +107 -8
- data/lib/HDLRuby/hruby_low2c.rb +10 -5
- 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 +14 -0
- data/lib/HDLRuby/hruby_tools.rb +2 -2
- data/lib/HDLRuby/sim/hruby_sim.h +75 -37
- data/lib/HDLRuby/sim/hruby_sim_calc.c +69 -0
- data/lib/HDLRuby/sim/hruby_sim_core.c +29 -6
- data/lib/HDLRuby/sim/hruby_sim_vcd.c +215 -0
- data/lib/HDLRuby/sim/hruby_sim_vizualize.c +51 -12
- data/lib/HDLRuby/std/channel.rb +311 -63
- data/lib/HDLRuby/std/linear.rb +16 -8
- data/lib/HDLRuby/std/memory.rb +1 -1
- data/lib/HDLRuby/version.rb +1 -1
- metadata +4 -2
data/lib/HDLRuby/std/linear.rb
CHANGED
@@ -214,6 +214,14 @@ module HDLRuby::High::Std
|
|
214
214
|
par(ev) do
|
215
215
|
ack <= 0
|
216
216
|
run <= 0
|
217
|
+
hif(~run) do
|
218
|
+
rvok <= 0
|
219
|
+
lefts.each_with_index do |left,i|
|
220
|
+
lvoks[i] <= 0
|
221
|
+
# accs[i].write(0)
|
222
|
+
avs[i] <= 0
|
223
|
+
end
|
224
|
+
end
|
217
225
|
hif(req | run) do
|
218
226
|
run <= 1
|
219
227
|
# Computation request.
|
@@ -232,14 +240,14 @@ module HDLRuby::High::Std
|
|
232
240
|
end
|
233
241
|
end
|
234
242
|
end
|
235
|
-
helse do
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
end
|
243
|
+
# helse do
|
244
|
+
# rvok <= 0
|
245
|
+
# lefts.each_with_index do |left,i|
|
246
|
+
# lvoks[i] <= 0
|
247
|
+
# # accs[i].write(0)
|
248
|
+
# avs[i] <= 0
|
249
|
+
# end
|
250
|
+
# end
|
243
251
|
end
|
244
252
|
end
|
245
253
|
|
data/lib/HDLRuby/std/memory.rb
CHANGED
@@ -568,7 +568,7 @@ HDLRuby::High::Std.channel(:mem_dual) do |typ,size,clk,rst,br_rsts = {}|
|
|
568
568
|
# using +target+ as target of access result.
|
569
569
|
writer do |blk,target|
|
570
570
|
# On reset the read trigger is 0.
|
571
|
-
rst
|
571
|
+
rst = send(rst_name)
|
572
572
|
top_block.unshift do
|
573
573
|
# Initialize the address so that the next access is at address 0.
|
574
574
|
hif(rst == 1) { abus_w <= -1 }
|
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.1
|
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-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/HDLRuby/hdr_samples/with_linear.rb
|
124
124
|
- lib/HDLRuby/hdr_samples/with_loop.rb
|
125
125
|
- lib/HDLRuby/hdr_samples/with_memory.rb
|
126
|
+
- lib/HDLRuby/hdr_samples/with_multi_channels.rb
|
126
127
|
- lib/HDLRuby/hdr_samples/with_reconf.rb
|
127
128
|
- lib/HDLRuby/hdrcc.rb
|
128
129
|
- lib/HDLRuby/high_samples/_adder_fault.rb
|
@@ -262,6 +263,7 @@ files:
|
|
262
263
|
- lib/HDLRuby/sim/hruby_sim_calc.c
|
263
264
|
- lib/HDLRuby/sim/hruby_sim_core.c
|
264
265
|
- lib/HDLRuby/sim/hruby_sim_list.c
|
266
|
+
- lib/HDLRuby/sim/hruby_sim_vcd.c
|
265
267
|
- lib/HDLRuby/sim/hruby_sim_vizualize.c
|
266
268
|
- lib/HDLRuby/sim/hruby_value_pool.c
|
267
269
|
- lib/HDLRuby/std/channel.rb
|