Skip to content

Commit

Permalink
VHDL parser from andres manelli's fork for entity parsing support
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels authored Nov 29, 2021
2 parents 3967b59 + 0c7e333 commit 999a8dd
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 37 deletions.
6 changes: 3 additions & 3 deletions hdlparse/verilog_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
VerilogLexer = MiniLexer(verilog_tokens)


class VerilogObject(object):
class VerilogObject:
"""Base class for parsed Verilog objects"""

def __init__(self, name, desc=None):
Expand All @@ -68,7 +68,7 @@ def __init__(self, name, desc=None):
self.desc = [] if desc is None else desc


class VerilogParameter(object):
class VerilogParameter:
"""Parameter and port to a module"""

def __init__(self, name, mode=None, data_type=None, default_value=None, desc=None):
Expand Down Expand Up @@ -229,7 +229,7 @@ def is_verilog(fname):
return os.path.splitext(fname)[1].lower() in ('.vlog', '.v')


class VerilogExtractor(object):
class VerilogExtractor:
"""Utility class that caches parsed objects"""

def __init__(self):
Expand Down
Loading

0 comments on commit 999a8dd

Please sign in to comment.