HDLRuby 2.0.17 → 2.0.18

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
  SHA1:
3
- metadata.gz: 208d8d11461fecdbdb9417afde401104e33dc2b8
4
- data.tar.gz: e9f56d18638dca030c07b3d7946f7027bfda7b4a
3
+ metadata.gz: afbd4b4db1a9b95b92f5289877bd4fcee7468ff1
4
+ data.tar.gz: f7c28abc847bb5061d0321e1de933d8c14f54997
5
5
  SHA512:
6
- metadata.gz: 18cb219b24c63e5a905c9bb440dc1105b8d44249e6270bfa62a400928c70a025a6088c7ab23e7649b63c4de11d01800f301f67363bf193a4c0470ab8cd8fbe12
7
- data.tar.gz: 9759ab1f2b43a3c1586504803178883356521322cba385a558d947196ac5a80a5be716613526fea3af249968c89eb8aa6f923ab8677fc7c81d65fd8a5eabb367
6
+ metadata.gz: 90922bedcaa4374b28b91ef6b165870a680b4b13e530d13b37ff0b6416ac55a08e9adb0f5e9a799d5833932e050651376f5e22c87d1fedee1a040dcb586e4fed
7
+ data.tar.gz: f357a3be8525021f6be2a2b022ba283209f101405dbe1b9fbaeb8d8345e95f3b75e46c0fc44ff1617a9cecadf007a0fd98aaf5597c3f73e744fecc7b93d43eb2
@@ -3592,19 +3592,35 @@ module HDLRuby::High
3592
3592
  end
3593
3593
  end
3594
3594
 
3595
- # Extends the Fixnum class for computing for conversion to expression.
3596
- class ::Fixnum
3595
+ # # Extends the Fixnum class for computing for conversion to expression.
3596
+ # class ::Fixnum
3597
+ # # Converts to a new high-level expression.
3598
+ # def to_expr
3599
+ # return Value.new(Integer,self)
3600
+ # end
3601
+ # end
3602
+
3603
+ # # Extends the Bignum class for computing for conversion to expression.
3604
+ # class ::Bignum
3605
+ # # Converts to a new high-level expression.
3606
+ # def to_expr
3607
+ # return Value.new(Bignum,self)
3608
+ # end
3609
+ # end
3610
+
3611
+ # Extends the Integer class for computing for conversion to expression.
3612
+ class ::Integer
3597
3613
  # Converts to a new high-level expression.
3598
3614
  def to_expr
3599
3615
  return Value.new(Integer,self)
3600
3616
  end
3601
3617
  end
3602
-
3603
- # Extends the Bignum class for computing for conversion to expression.
3604
- class ::Bignum
3618
+
3619
+ # Extends the Float class for computing for conversion to expression.
3620
+ class ::Float
3605
3621
  # Converts to a new high-level expression.
3606
3622
  def to_expr
3607
- return Value.new(Bignum,self)
3623
+ return Value.new(Float,self)
3608
3624
  end
3609
3625
  end
3610
3626
 
@@ -4051,6 +4067,7 @@ module HDLRuby::High
4051
4067
 
4052
4068
  # Standard vector types.
4053
4069
  Integer = TypeSigned.new(:integer)
4070
+ Char = TypeSigned.new(:char,7..0)
4054
4071
  Natural = TypeUnsigned.new(:natural)
4055
4072
  Bignum = TypeSigned.new(:bignum,HDLRuby::Infinity..0)
4056
4073
  Real = TypeFloat.new(:float)
@@ -25,7 +25,12 @@ $space_count = 0 # Count used for increasing indent by if statement. (temporar
25
25
  $vector_reg = "" # For storing signal type at structure declaration. (temporary)
26
26
  $vector_cnt = 0 # For allocating numbers at structure declaration. (temporary)
27
27
 
28
- class Fixnum
28
+ # class Fixnum
29
+ # def to_verilog
30
+ # to_s
31
+ # end
32
+ # end
33
+ class ::Integer
29
34
  def to_verilog
30
35
  to_s
31
36
  end
@@ -1,3 +1,3 @@
1
1
  module HDLRuby
2
- VERSION = "2.0.17"
2
+ VERSION = "2.0.18"
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.0.17
4
+ version: 2.0.18
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-01-03 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler