HDLRuby 2.3.5 → 2.3.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 641fb6b2455f562967e1dd6d19ff944ed59e6f1e6a4e692c3dbd236af75ea3b6
4
- data.tar.gz: 7238f3492e48352e20d4b1a321d9087d25c32b95900c6542e314d941a7a9ff42
3
+ metadata.gz: 78fe6b35a5069fd78646d2486c3d03dd00c5b24efa6a9710e3acc1248cc35145
4
+ data.tar.gz: c98bd555da00c6d2cffd9b5f41d48d5b8e4dd9584dc42e943934dc438fede8be
5
5
  SHA512:
6
- metadata.gz: 15d0cfd9c1ad51076854eb39bce2b2dceee053b242350b7c1745d727e69bed0ced9d38f717252fb2a4bd971de5c6e3c804536212ccc6ac98936b716f574048e2
7
- data.tar.gz: 10b6326d21c30106d922eb23f8c9da3849b56bf3cac0b186e21f1c427ebb664fab128aba7d961b53af6e558d861ed2a75ce7777c9fa54f778bd3d23e2ba697f4
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
@@ -1,3 +1,3 @@
1
1
  module HDLRuby
2
- VERSION = "2.3.5"
2
+ VERSION = "2.3.6"
3
3
  end
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.5
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-23 00:00:00.000000000 Z
11
+ date: 2020-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler