Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
07ab445c
Commit
07ab445c
authored
Jun 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlog_parser: remove unused functions and variables.
parent
67b7c1c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
17 deletions
+0
-17
dep_file.py
hdlmake/dep_file.py
+0
-2
srcfile.py
hdlmake/srcfile.py
+0
-2
vlog_parser.py
hdlmake/vlog_parser.py
+0
-13
No files found.
hdlmake/dep_file.py
View file @
07ab445c
...
...
@@ -171,8 +171,6 @@ class DepFile(File):
self
.
depends_on
=
set
()
self
.
dep_level
=
None
self
.
is_parsed
=
False
self
.
file_path
=
file_path
self
.
include_paths
=
[]
def
add_relation
(
self
,
rel
):
"""Add a new relation to the set provided by the file"""
...
...
hdlmake/srcfile.py
View file @
07ab445c
...
...
@@ -87,8 +87,6 @@ class VerilogFile(SourceFile):
self
.
include_dirs
.
extend
(
include_dirs
)
self
.
include_dirs
.
append
(
path_mod
.
relpath
(
self
.
dirname
))
self
.
parser
=
VerilogParser
(
self
)
for
dir_aux
in
self
.
include_paths
:
self
.
parser
.
add_search_path
(
dir_aux
)
self
.
is_include
=
is_include
...
...
hdlmake/vlog_parser.py
View file @
07ab445c
...
...
@@ -92,8 +92,6 @@ class VerilogPreprocessor(object):
def
__init__
(
self
):
self
.
vpp_stack
=
self
.
VLStack
()
self
.
vlog_file
=
None
# List of `include search paths
self
.
vpp_searchdir
=
[
"."
]
# List of macro definitions
self
.
vpp_macros
=
[]
# Dictionary of files sub-included by each file parsed
...
...
@@ -276,11 +274,6 @@ class VerilogPreprocessor(object):
if
n_expansions
==
0
:
return
new_buf
def
add_path
(
self
,
path
):
"""Add a new path to the search directory list so that HDLMake
will search for found includes on it"""
self
.
vpp_searchdir
.
append
(
path
)
def
preprocess
(
self
,
vlog_file
):
"""Assign the provided 'vlog_file' to the associated class property
and then preprocess and return the Verilog code"""
...
...
@@ -542,12 +535,6 @@ class VerilogParser(DepParser):
def
__init__
(
self
,
dep_file
):
DepParser
.
__init__
(
self
,
dep_file
)
self
.
preprocessor
=
VerilogPreprocessor
()
self
.
preprocessed
=
False
def
add_search_path
(
self
,
path
):
"""Add a new candidate path to the Verilog preprocessor list
containing the include dir candidates"""
self
.
preprocessor
.
add_path
(
path
)
def
parse
(
self
,
dep_file
):
"""Parse the provided Verilog file and add to its properties
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment