vhdl_tb 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ast.rb +1 -1
- data/lib/compiler.rb +4 -5
- data/lib/lexer.rb +26 -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: 9b626c88aa4ea58350e4cf0177e7cf33a16b686d
|
4
|
+
data.tar.gz: 56e9cf75401601badb8ab5e257014b812d391418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd2698bb1dcdb5177517fc9e9086ffad9e50a6662c21d13ebfc8d18a4d4e0c68716768038d4c3fa63bd996cc13e9aa393e158bfa6c87dbe427d9652079eb5293
|
7
|
+
data.tar.gz: de2217a81eeeb61da846db943f60110e65b9d78d3dab952f0cb2f0492b2d9230bed9871536ba6a905d0de568dce638599dbb328866b5cf7a49d64d5a057ee674
|
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.4"
|
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
|
data/lib/lexer.rb
CHANGED
@@ -4,28 +4,34 @@ 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 :lparen => /\(/
|
27
|
+
token :rparen => /\)/
|
28
|
+
token :semicolon => /\;/
|
29
|
+
token :colon => /\:/
|
30
|
+
token :dot => /\./
|
31
|
+
token :comma => /\,/
|
32
|
+
token :rightarrow => /\=\>/
|
33
|
+
#terminals
|
27
34
|
token :id => /[a-zA-Z_][a-zA-Z0-9_]*/i
|
28
35
|
token :int_lit => /[0-9]+/
|
29
|
-
|
30
36
|
end
|
31
37
|
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.4
|
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
|