HDLRuby 2.0.17 → 2.0.18
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_high.rb +23 -6
- data/lib/HDLRuby/hruby_verilog.rb +6 -1
- data/lib/HDLRuby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afbd4b4db1a9b95b92f5289877bd4fcee7468ff1
|
4
|
+
data.tar.gz: f7c28abc847bb5061d0321e1de933d8c14f54997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90922bedcaa4374b28b91ef6b165870a680b4b13e530d13b37ff0b6416ac55a08e9adb0f5e9a799d5833932e050651376f5e22c87d1fedee1a040dcb586e4fed
|
7
|
+
data.tar.gz: f357a3be8525021f6be2a2b022ba283209f101405dbe1b9fbaeb8d8345e95f3b75e46c0fc44ff1617a9cecadf007a0fd98aaf5597c3f73e744fecc7b93d43eb2
|
data/lib/HDLRuby/hruby_high.rb
CHANGED
@@ -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
|
3604
|
-
class ::
|
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(
|
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
|
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.0.
|
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-
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|