python2verilog.utils package¶
Submodules¶
python2verilog.utils.cytoscape module¶
python2verilog.utils.decorator module¶
Special decorator primatives
python2verilog.utils.env module¶
Special env variable functions
- class Vars(value)[source]¶
Bases:
Enum
Env var names
- DEBUG_COMMENTS = 'PYTHON_2_VERILOG_DEBUG_COMMENTS'¶
- DEBUG_MODE = 'PYTHON_2_VERILOG_DEBUG'¶
- IS_SYSTEM_VERILOG = 'PYTHON_2_VERILOG_SYSTEM_VERILOG'¶
- IVERILOG_PATH = 'PYTHON_2_VERILOG_IVERILOG_PATH'¶
- NO_WRITE_TO_FS = 'PYTHON_2_VERILOG_NO_WRITE_TO_FS'¶
python2verilog.utils.fifo module¶
Fifo wrappers
python2verilog.utils.generics module¶
Implementation of generic base classes for __repr__ and __str__
- class GenericReprAndStr[source]¶
Bases:
GenericRepr
Implements a generic __repr__ and __str__ based on self.__dict__
python2verilog.utils.lines module¶
Utility Classes
- class ImplementsToLines[source]¶
Bases:
object
A base class defining an interface for classes that need to provide a ‘to_lines’ method
- class Indent(indent: int = 0)[source]¶
Bases:
object
Creates str instances of indentation
- indentor = ' '¶
python2verilog.utils.mit_license module¶
Text for MIT license
python2verilog.utils.peek_counter module¶
Peekable counter
python2verilog.utils.typed module¶
Type assertion utilities
- guard_dict(obj: dict[Any, Any], key_type: Type[_KeyType], value_type: Type[_ValueType]) TypeGuard[dict[_KeyType, _ValueType]] [source]¶
Asserts that all key, values in dict_ are correctly typed,
- typed(obj: _ValueType | None, type_: Type[_ValueType]) _ValueType | None [source]¶
Asserts that obj is of type type_, then returns obj or None if obj is None
python2verilog.utils.visualization module¶
Module contents¶
Utilities