HDLRuby 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/HDLRuby/hruby_low_without_connection.rb +13 -0
- data/lib/HDLRuby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78fe6b35a5069fd78646d2486c3d03dd00c5b24efa6a9710e3acc1248cc35145
|
4
|
+
data.tar.gz: c98bd555da00c6d2cffd9b5f41d48d5b8e4dd9584dc42e943934dc438fede8be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48acf3975e6f9d36b0257ad165b407ed27d949b61793a1628e983c793163668c0c09b2c734cf41c44343ad55f7195c3fc60eb168b9de18dac82e5ecd6f1c6d17
|
7
|
+
data.tar.gz: 7b028598447ab6bd940a077b184eb7bd27524e157185cb97ef28e25eb4760e187d8d7f0ea1fada54b549f6bd4bc6baf38706efe2505f6cfd26c215e6bce91955
|
@@ -29,6 +29,7 @@ module HDLRuby::Low
|
|
29
29
|
if scope.each_connection.to_a.any? then
|
30
30
|
inputs_blk = Block.new(:par)
|
31
31
|
outputs_blk = Block.new(:par)
|
32
|
+
timed_blk = TimeBlock.new(:seq)
|
32
33
|
scope.each_connection do |connection|
|
33
34
|
# Check the left and right of the connection
|
34
35
|
# for input or output port.
|
@@ -40,6 +41,15 @@ module HDLRuby::Low
|
|
40
41
|
right_r = right.resolve if right.respond_to?(:resolve)
|
41
42
|
# puts "right_r=#{right_r.name}" if right_r
|
42
43
|
# puts "right_r.parent=#{right_r.parent.name}" if right_r && right_r.parent
|
44
|
+
if right.is_a?(Value) then
|
45
|
+
# Right is value, the new transmit is to add
|
46
|
+
# to the timed block.
|
47
|
+
timed_blk.add_statement(
|
48
|
+
Transmit.new(left.clone,right.clone))
|
49
|
+
# No more process for this connection.
|
50
|
+
next
|
51
|
+
end
|
52
|
+
|
43
53
|
# Check if left is an input or an output.
|
44
54
|
left_is_i = left_is_o = false
|
45
55
|
if left_r && left_r.parent.is_a?(SystemT) then
|
@@ -118,6 +128,9 @@ module HDLRuby::Low
|
|
118
128
|
if outputs_blk.each_statement.any? then
|
119
129
|
scope.add_behavior(Behavior.new(outputs_blk))
|
120
130
|
end
|
131
|
+
if timed_blk.each_statement.any? then
|
132
|
+
scope.add_behavior(TimeBehavior.new(timed_blk))
|
133
|
+
end
|
121
134
|
end
|
122
135
|
end
|
123
136
|
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.3.
|
4
|
+
version: 2.3.6
|
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-08-
|
11
|
+
date: 2020-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|