vhdl_tb 0.6.3 → 0.6.4

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: 99115f46e648d9a330a16e6998507fe532bbaac7
4
- data.tar.gz: 4a7ca042f8bbe236adc0cec08c0ba820e7d26c89
3
+ metadata.gz: 9b626c88aa4ea58350e4cf0177e7cf33a16b686d
4
+ data.tar.gz: 56e9cf75401601badb8ab5e257014b812d391418
5
5
  SHA512:
6
- metadata.gz: ccce1103568033abcdaa16ac33666e4b73c82f007550607c5b79564cb64ef24dae46d3f258963a3a5aa34263a9180298875f49539a6ba507025c70aad5fd1a94
7
- data.tar.gz: 5d1f555f4908071b4360c906209dfa90ae2d99ef0d7f5b2dd22788780331a0be2b53db73e76aad1ff39f5a56e364da6d3f78dfeb59f4fb170e9ffb85da6d06e4
6
+ metadata.gz: bd2698bb1dcdb5177517fc9e9086ffad9e50a6662c21d13ebfc8d18a4d4e0c68716768038d4c3fa63bd996cc13e9aa393e158bfa6c87dbe427d9652079eb5293
7
+ data.tar.gz: de2217a81eeeb61da846db943f60110e65b9d78d3dab952f0cb2f0492b2d9230bed9871536ba6a905d0de568dce638599dbb328866b5cf7a49d64d5a057ee674
data/lib/ast.rb CHANGED
@@ -8,7 +8,7 @@ module VHDL_TB
8
8
 
9
9
  Identifier=Struct.new(:tok) do
10
10
  def to_s
11
- "#{self.tok}"
11
+ self.tok.to_s
12
12
  end
13
13
  end
14
14
 
data/lib/compiler.rb CHANGED
@@ -11,7 +11,7 @@ module VHDL_TB
11
11
 
12
12
  class Compiler
13
13
 
14
- VERSION = "0.6.3"
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 "-- "+"="*65
25
- puts "-- VHDL testbench generator -- Jean-Christophe Le Lann 2017-2018"
26
- puts "-- "+"="*65
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
- token :entity => /entity/
9
- token :is => /is/
10
- token :generic => /generic/
11
- token :port => /port/
12
- token :in => /in/
13
- token :to => /to/
14
- token :downto => /downto/
15
- token :out => /out/
16
- token :end => /end/
17
- token :comment => /--(.*)$/
18
- token :vassign => /\:\=/
19
- token :lparen => /\(/
20
- token :rparen => /\)/
21
- token :semicolon=> /\;/
22
- token :colon => /\:/
23
- token :dot => /\./
24
- token :comma => /\,/
25
- token :architecture => /architecture/
26
- token :of => /of/
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
@@ -52,7 +52,7 @@ module VHDL_TB
52
52
  end
53
53
 
54
54
  def parse_entity
55
- entity=Entity.new(nil,[],[])
55
+ entity=Entity.new(nil,nil,[])
56
56
  expect :entity
57
57
  entity.name=expect :id
58
58
  expect :is
data/lib/template.tb.vhd CHANGED
@@ -1,5 +1,5 @@
1
1
  -----------------------------------------------------------------
2
- -- This file was generated automatically by tb_gen Ruby utility
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.3
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-04-06 00:00:00.000000000 Z
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