vhdl_tb 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/compiler.rb +3 -4
- data/lib/parser.rb +1 -1
- data/lib/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: 5b1b9d7ce27de5b7de34e5a92a61b228bbef9acac3cca9536b1211b3659c63dc
|
4
|
+
data.tar.gz: 741006590431fe61e59e607455c3bb9ec97694697b380da307084a78be4e9974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 455fb7d0147971fa0bf4da18c8b7c411f077ac49a900061a007e55320821c808d7253c51c62c76f41a6ce121020154e10e8aab02ebbdd0eb28284c44bc896879
|
7
|
+
data.tar.gz: 8c79725261268d616f52cfbdaf94ff0c0f2a308a3565369570647f7fd135b1e5ada663536af2e0ee48cb909eeeb9832ae86d4cf4e8478f0e378166202f8fcf35
|
data/lib/compiler.rb
CHANGED
@@ -20,9 +20,7 @@ module VHDL_TB
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def banner
|
23
|
-
#puts "-- "+"="*30
|
24
23
|
puts "==> VHDL testbench generator #{VERSION} <=="
|
25
|
-
#puts "-- "+"="*30
|
26
24
|
end
|
27
25
|
|
28
26
|
def analyze_options args
|
@@ -68,6 +66,7 @@ module VHDL_TB
|
|
68
66
|
puts "testbench generated : #{tb_filename}"
|
69
67
|
rescue Exception => e
|
70
68
|
puts e
|
69
|
+
puts e.backtrace
|
71
70
|
abort
|
72
71
|
end
|
73
72
|
end
|
@@ -102,14 +101,14 @@ module VHDL_TB
|
|
102
101
|
end
|
103
102
|
|
104
103
|
if @arch.entity.val!=@entity.name.val
|
105
|
-
errors << "wrong entity-architecture pair : entity is -->#{@entity.name}<-- vs arch #{@arch.name} of -->#{@arch.entity
|
104
|
+
errors << "wrong entity-architecture pair : entity is -->#{@entity.name}<-- vs arch #{@arch.name} of -->#{@arch.entity}<--"
|
106
105
|
end
|
107
106
|
|
108
107
|
if errors.any?
|
109
108
|
puts ": nok"
|
110
109
|
puts "\nchecks failed due to the following errors :"
|
111
110
|
errors.each{|e| puts "- ERROR : #{e}"}
|
112
|
-
raise
|
111
|
+
raise "check error"
|
113
112
|
else
|
114
113
|
puts ": ok"
|
115
114
|
end
|
data/lib/parser.rb
CHANGED
@@ -19,7 +19,7 @@ module VHDL_TB
|
|
19
19
|
raise "ERROR : cannot find file '#{filename}'"
|
20
20
|
end
|
21
21
|
begin
|
22
|
-
str=IO.read(filename)
|
22
|
+
str=IO.read(filename).downcase
|
23
23
|
tokens=lexer.tokenize(str)
|
24
24
|
tokens=tokens.select{|t| t.class==Token} # filters [nil,nil,nil]
|
25
25
|
return tokens.reject{|tok| tok.is_a? [:comment,:newline,:space]}
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vhdl_tb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Christophe Le Lann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple testbench generator for VHDL
|
14
14
|
email: jean-christophe.le_lann@ensta-bretagne.fr
|