vhdl_tb 0.6.3 → 0.6.5
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 +4 -4
- data/lib/ast.rb +1 -1
- data/lib/compiler.rb +4 -7
- data/lib/lexer.rb +31 -20
- data/lib/parser.rb +1 -1
- data/lib/template.tb.vhd +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: cd1879cca3683122f2deaf4d3e42937f5a4fe870
|
4
|
+
data.tar.gz: 700d2f736b29de611e5b2834ea0e500e8e189a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c131814294a059dbe6eb5eaf1a557be6a0326cbcf0fb81014e5c608feb2ed77fbb737cdbc085c331a85c164ab5ce6eeb6015b15f4eb7058e733cdcbf17ba0aea
|
7
|
+
data.tar.gz: 5f300c1af6f426f300d7a87478e44cf4de5d3daacef47df740628508a017c1fe92c2ccddb1d70ae5e04ac975ca97c4d2a90673d77dabe2102e7961d2bfe38ce4
|
data/lib/ast.rb
CHANGED
data/lib/compiler.rb
CHANGED
@@ -11,7 +11,7 @@ module VHDL_TB
|
|
11
11
|
|
12
12
|
class Compiler
|
13
13
|
|
14
|
-
VERSION = "0.6.
|
14
|
+
VERSION = "0.6.5"
|
15
15
|
|
16
16
|
def initialize
|
17
17
|
#puts __dir__
|
@@ -21,10 +21,9 @@ module VHDL_TB
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def banner
|
24
|
-
puts "-- "+"="*
|
25
|
-
puts "
|
26
|
-
puts "-- "+"="*
|
27
|
-
|
24
|
+
#puts "-- "+"="*30
|
25
|
+
puts "==> VHDL testbench generator #{VERSION} <=="
|
26
|
+
#puts "-- "+"="*30
|
28
27
|
end
|
29
28
|
|
30
29
|
def analyze_options args
|
@@ -115,8 +114,6 @@ module VHDL_TB
|
|
115
114
|
end
|
116
115
|
end
|
117
116
|
|
118
|
-
|
119
|
-
|
120
117
|
end
|
121
118
|
end
|
122
119
|
|
data/lib/lexer.rb
CHANGED
@@ -4,28 +4,39 @@ class Lexer < GenericLexer
|
|
4
4
|
def initialize
|
5
5
|
super
|
6
6
|
ignore /\s+/
|
7
|
+
|
8
|
+
#comments
|
9
|
+
token :comment => /--(.*)$/
|
10
|
+
|
7
11
|
#....keywords
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
token :
|
22
|
-
token :
|
23
|
-
token :
|
24
|
-
token :
|
25
|
-
token :
|
26
|
-
token :
|
12
|
+
keyword :entity
|
13
|
+
keyword :is
|
14
|
+
keyword :generic
|
15
|
+
keyword :port
|
16
|
+
keyword :in
|
17
|
+
keyword :to
|
18
|
+
keyword :downto
|
19
|
+
keyword :out
|
20
|
+
keyword :end
|
21
|
+
keyword :architecture
|
22
|
+
keyword :of
|
23
|
+
|
24
|
+
#punctuation
|
25
|
+
token :vassign => /\:\=/
|
26
|
+
token :sassign => /\<\=/
|
27
|
+
token :lparen => /\(/
|
28
|
+
token :rparen => /\)/
|
29
|
+
token :semicolon => /\;/
|
30
|
+
token :colon => /\:/
|
31
|
+
token :dot => /\./
|
32
|
+
token :comma => /\,/
|
33
|
+
token :rightarrow => /\=\>/
|
34
|
+
token :"-" => /\-/
|
35
|
+
token :"=" => /\=/
|
36
|
+
#terminals
|
27
37
|
token :id => /[a-zA-Z_][a-zA-Z0-9_]*/i
|
28
38
|
token :int_lit => /[0-9]+/
|
29
|
-
|
39
|
+
token :char_lit => /'[a-zA-Z0-9_]*'/
|
40
|
+
token :str_lit => /\"(.*)\"/
|
30
41
|
end
|
31
42
|
end
|
data/lib/parser.rb
CHANGED
data/lib/template.tb.vhd
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
-----------------------------------------------------------------
|
2
|
-
-- This file was generated automatically by
|
2
|
+
-- This file was generated automatically by vhdl_tb Ruby utility
|
3
3
|
-- date : <%=Time.now.strftime("(d/m/y) %d/%m/%Y %H:%M")%>
|
4
4
|
-- Author : Jean-Christophe Le Lann - 2014
|
5
5
|
-----------------------------------------------------------------
|
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.6.
|
4
|
+
version: 0.6.5
|
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: 2018-
|
11
|
+
date: 2018-06-01 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
|