pyEDAA.ProjectModel
An abstract model of EDA tool projects.
Submodules
Classes
Attribute: Undocumented.FileType: A meta-class to construct FileType classes.File: A File represents a file in a design. This base-class is usedHumanReadableContent: A file type representing human-readable contents.XMLContent: A file type representing XML contents.YAMLContent: A file type representing YAML contents.JSONContent: A file type representing JSON contents.INIContent: A file type representing INI contents.TOMLContent: A file type representing TOML contents.TCLContent: A file type representing content in TCL code.SDCContent: A file type representing contents as Synopsys Design Constraints (SDC).PythonContent: A file type representing contents as Python source code.TextFile: A text file (*.txt).LogFile: A log file (*.log).XMLFile: An XML file (*.xml).SourceFile: Base-class of all source files.HDLSourceFile: Base-class of all HDL source files.RDLSourceFile: Base-class of all RDL source files.NetlistFile: Base-class of all netlist source files.EDIFNetlistFile: Netlist file in EDIF (Electronic Design Interchange Format).TCLSourceFile: A TCL source file.VHDLSourceFile: A VHDL source file (of any language version).VerilogBaseFile: Base-class of all HDL source files.VerilogSourceFile: A Verilog source file (of any language version).VerilogHeaderFile: A Verilog header file (of any language version).SystemVerilogBaseFile: Base-class of all HDL source files.SystemVerilogSourceFile: A SystemVerilog source file (of any language version).SystemVerilogHeaderFile: A SystemVerilog header file (of any language version).SystemRDLSourceFile: A SystemRDL source file (of any language version).PythonSourceFile: A Python source file.CocotbPythonFile: A Python source file used by Cocotb.ConstraintFile: Base-class of all constraint files.ProjectFile: Base-class of all tool-specific project files.CSourceFile: Base-class of all ANSI-C source files.CppSourceFile: Base-class of all ANSI-C++ source files.SettingFile: Base-class of all tool-specific setting files.SimulationAnalysisFile: Base-class of all tool-specific analysis files.SimulationElaborationFile: Base-class of all tool-specific elaboration files.SimulationStartFile: Base-class of all tool-specific simulation start-up files.SimulationRunFile: Base-class of all tool-specific simulation run (execution) files.WaveformConfigFile: Base-class of all tool-specific waveform configuration files.WaveformDatabaseFile: Base-class of all tool-specific waveform database files.WaveformExchangeFile: Base-class of all tool-independent waveform exchange files.FileSet: A FileSet represents a group of files. Filesets can have sub-filesets.VHDLLibrary: A VHDLLibrary represents a group of VHDL source files compiled into the same VHDL library.Design: A Design represents a group of filesets and the source files therein.Project: A Project represents a group of designs and the source files therein.
Classes
- class pyEDAA.ProjectModel.FileType(name, bases, dictionary, **kwargs)[source]
A meta-class to construct FileType classes.
Modifications done by this meta-class: * Register all classes of type
FileTypeor derived variants in a class fieldFileType.FileTypesin this meta-class.Inheritance
- FileTypes: Dict[str, FileType] = {'CSourceFile': <class 'pyEDAA.ProjectModel.CSourceFile'>, 'CocotbPythonFile': <class 'pyEDAA.ProjectModel.CocotbPythonFile'>, 'ConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.ConstraintFile'>, 'CppSourceFile': <class 'pyEDAA.ProjectModel.CppSourceFile'>, 'EDIFNetlistFile': <class 'pyEDAA.ProjectModel.EDIFNetlistFile'>, 'File': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.File'>, 'GHDLWaveformFile': <class 'pyEDAA.ProjectModel.GHDL.GHDLWaveformFile'>, 'HDLSourceFile': <class 'pyEDAA.ProjectModel.HDLSourceFile'>, 'IPCoreDescriptionFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.IPCoreDescriptionFile'>, 'IPCoreInstantiationFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.IPCoreInstantiationFile'>, 'ISEProjectFile': <class 'pyEDAA.ProjectModel.Xilinx.ISE.ISEProjectFile'>, 'LogFile': <class 'pyEDAA.ProjectModel.LogFile'>, 'ModelSimINIFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.ModelSimINIFile'>, 'ModelSimProjectFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.ModelSimProjectFile'>, 'NetlistFile': <class 'pyEDAA.ProjectModel.NetlistFile'>, 'OSVVMProjectFile': <class 'pyEDAA.ProjectModel.OSVVM.OSVVMProjectFile'>, 'ProjectFile': <class 'pyEDAA.ProjectModel.ProjectFile'>, 'PythonSourceFile': <class 'pyEDAA.ProjectModel.PythonSourceFile'>, 'QuartusProjectFile': <class 'pyEDAA.ProjectModel.Intel.QuartusPrime.QuartusProjectFile'>, 'RDLSourceFile': <class 'pyEDAA.ProjectModel.RDLSourceFile'>, 'SDCConstraintFile': <class 'pyEDAA.ProjectModel.Intel.QuartusPrime.SDCConstraintFile'>, 'SettingFile': <class 'pyEDAA.ProjectModel.SettingFile'>, 'SimulationAnalysisFile': <class 'pyEDAA.ProjectModel.SimulationAnalysisFile'>, 'SimulationElaborationFile': <class 'pyEDAA.ProjectModel.SimulationElaborationFile'>, 'SimulationRunFile': <class 'pyEDAA.ProjectModel.SimulationRunFile'>, 'SimulationStartFile': <class 'pyEDAA.ProjectModel.SimulationStartFile'>, 'SourceFile': <class 'pyEDAA.ProjectModel.SourceFile'>, 'SystemRDLSourceFile': <class 'pyEDAA.ProjectModel.SystemRDLSourceFile'>, 'SystemVerilogBaseFile': <class 'pyEDAA.ProjectModel.SystemVerilogBaseFile'>, 'SystemVerilogHeaderFile': <class 'pyEDAA.ProjectModel.SystemVerilogHeaderFile'>, 'SystemVerilogSourceFile': <class 'pyEDAA.ProjectModel.SystemVerilogSourceFile'>, 'TCLSourceFile': <class 'pyEDAA.ProjectModel.TCLSourceFile'>, 'TextFile': <class 'pyEDAA.ProjectModel.TextFile'>, 'UCFConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.ISE.UCFConstraintFile'>, 'VHDLSourceFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VHDLSourceFile'>, 'ValueChangeDumpFile': <class 'pyEDAA.ProjectModel.Verilog.ValueChangeDumpFile'>, 'VerilogBaseFile': <class 'pyEDAA.ProjectModel.VerilogBaseFile'>, 'VerilogHeaderFile': <class 'pyEDAA.ProjectModel.VerilogHeaderFile'>, 'VerilogSourceFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VerilogSourceFile'>, 'VivadoProjectFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VivadoProjectFile'>, 'WaveDoFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.WaveDoFile'>, 'WaveformConfigFile': <class 'pyEDAA.ProjectModel.WaveformConfigFile'>, 'WaveformDatabaseFile': <class 'pyEDAA.ProjectModel.WaveformDatabaseFile'>, 'WaveformExchangeFile': <class 'pyEDAA.ProjectModel.WaveformExchangeFile'>, 'XDCConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.XDCConstraintFile'>, 'XMLFile': <class 'pyEDAA.ProjectModel.XMLFile'>}
Dictionary of all classes of type
FileTypeor derived variants
- static __new__(cls, className, baseClasses, classMembers, *args, **kwargs)[source]
Construct a new class using this meta-class.
- Parameters:
className – The name of the class to construct.
baseClasses – The tuple of base-classes the class is derived from.
members – The dictionary of members for the constructed class.
slots – If true, store object attributes in __slots__ instead of
__dict__.mixin – If true, make the class a Mixin-Class. If false, create slots if
slotsis true. If none, preserve behavior of primary base-class.singleton – If true, make the class a Singleton.
classMembers (Dict)
- Return type:
Self- Returns:
The new class.
- Raises:
AttributeError – If base-class has no ‘__slots__’ attribute.
AttributeError – If slot already exists in base-class.
- property HasClassAttributes: bool
Read-only property to check if the class has Attributes (
__pyattr__).- Returns:
True, if the class has Attributes.
- property HasMethodAttributes: bool
Read-only property to check if the class has methods with Attributes (
__methodsWithAttributes__).- Returns:
True, if the class has any method with Attributes.
- __base__
alias of
ExtendedType
- __call__(*args, **kwargs)
Call self as a function.
- __delattr__(name, /)
Implement delattr(self, name).
- __dir__()
Specialized __dir__ implementation for types.
- __getattribute__(name, /)
Return getattr(self, name).
- __instancecheck__(instance, /)
Check if an object is an instance.
- __or__(value, /)
Return self|value.
- classmethod __prepare__(name, bases, /, **kwds)
Create the namespace for the class statement
- __repr__()
Return repr(self).
- __ror__(value, /)
Return value|self.
- __setattr__(name, value, /)
Implement setattr(self, name, value).
- __sizeof__()
Return memory consumption of the type object.
- __subclasscheck__(subclass, /)
Check if a class is a subclass.
- __subclasses__()
Return a list of immediate subclasses.
- classmethod _aggregateMixinSlots(className, baseClasses)
Aggregate slot names requested by mixin-base-classes.
Todo
Describe algorithm.
- classmethod _checkForAbstractMethods(baseClasses, members)
Check if the current class contains abstract methods and return a tuple of them.
These abstract methods might be inherited from any base-class. If there are inherited abstract methods, check if they are now implemented (overridden) by the current class that’s right now constructed.
- classmethod _computeSlots(className, baseClasses, members, slots, mixin)
Compute which field are listed in __slots__ and which need to be initialized in an instance or class.
Todo
Describe algorithm.
- Parameters:
- Return type:
- Returns:
A 2-tuple with a dictionary of class members and object members.
- classmethod _findMethods(newClass, baseClasses, members)
Find methods and methods with
pyTooling.Attributes.Todo
Describe algorithm.
- Parameters:
newClass (
ExtendedType) – Newly created class instance.baseClasses (
Tuple[type]) – The tuple of base-classes the class is derived from.
- Return type:
- Returns:
- classmethod _iterateBaseClassPaths(baseClasses)
Return a generator to iterate all possible inheritance paths for a given list of base-classes.
An inheritance path is expressed as a tuple of base-classes from current base-class (left-most item) to
object(right-most item).
- classmethod _iterateBaseClasses(baseClasses)
Return a generator to iterate (visit) all base-classes …
Todo
Describe iteration order.
- classmethod _wrapNewMethodIfAbstract(newClass)
If the class has abstract methods, replace the
_new__method, so it raises an exception.- Parameters:
newClass – The newly constructed class for further modifications.
- Return type:
- Returns:
True, if the class is abstract.- Raises:
AbstractClassError – If the class is abstract and can’t be instantiated.
- classmethod _wrapNewMethodIfSingleton(newClass, singleton)
If a class is a singleton, wrap the
_new__method, so it returns a cached object, if a first object was created.Only the first object creation initializes the object.
This implementation is threadsafe.
- mro()
Return a type’s method resolution order.
- class pyEDAA.ProjectModel.File(path, project=None, design=None, fileSet=None)[source]
A File represents a file in a design. This base-class is used for all derived file classes.
A file can be created standalone and later associated to a fileset, design and project. Or a fileset, design and/or project can be associated immediately while creating a file.
- Parameters:
Inheritance
- __len__()[source]
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- class pyEDAA.ProjectModel.HumanReadableContent[source]
A file type representing human-readable contents.
Inheritance
- class pyEDAA.ProjectModel.XMLContent[source]
A file type representing XML contents.
Inheritance
- class pyEDAA.ProjectModel.YAMLContent[source]
A file type representing YAML contents.
Inheritance
- class pyEDAA.ProjectModel.JSONContent[source]
A file type representing JSON contents.
Inheritance
- class pyEDAA.ProjectModel.INIContent[source]
A file type representing INI contents.
Inheritance
- class pyEDAA.ProjectModel.TOMLContent[source]
A file type representing TOML contents.
Inheritance
- class pyEDAA.ProjectModel.TCLContent[source]
A file type representing content in TCL code.
Inheritance
- class pyEDAA.ProjectModel.SDCContent[source]
A file type representing contents as Synopsys Design Constraints (SDC).
Inheritance
- class pyEDAA.ProjectModel.PythonContent[source]
A file type representing contents as Python source code.
Inheritance
- class pyEDAA.ProjectModel.TextFile(path, project=None, design=None, fileSet=None)[source]
A text file (
*.txt).Inheritance
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.LogFile(path, project=None, design=None, fileSet=None)[source]
A log file (
*.log).Inheritance
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.XMLFile(path, project=None, design=None, fileSet=None)[source]
An XML file (
*.xml).Inheritance
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SourceFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all source files.
Inheritance
- Any
alias of
SourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.HDLSourceFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all HDL source files.
Inheritance
- Any
alias of
HDLSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.RDLSourceFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all RDL source files.
Inheritance
- Any
alias of
RDLSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.NetlistFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all netlist source files.
Inheritance
- Any
alias of
NetlistFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.EDIFNetlistFile(path, project=None, design=None, fileSet=None)[source]
Netlist file in EDIF (Electronic Design Interchange Format).
Inheritance
- Any
alias of
EDIFNetlistFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.TCLSourceFile(path, project=None, design=None, fileSet=None)[source]
A TCL source file.
Inheritance
- Any
alias of
TCLSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.VHDLSourceFile(path, vhdlLibrary=None, vhdlVersion=None, project=None, design=None, fileSet=None)[source]
A VHDL source file (of any language version).
- Parameters:
path (
Path) – Relative or absolute path to the file.vhdlLibrary (
str|VHDLLibrary) – VHDLLibrary this VHDL source file is associated wih.vhdlVersion (<property object at 0x7a8dcbe94540> |
None) – VHDLVersion this VHDL source file is associated wih.project (
Project|None) – Project the file is associated with.design (
Design|None) – Design the file is associated with.fileSet (
FileSet|None) – Fileset the file is associated with.path
vhdlLibrary
vhdlVersion
project
design
fileSet
Inheritance
- __init__(path, vhdlLibrary=None, vhdlVersion=None, project=None, design=None, fileSet=None)[source]
- property VHDLLibrary: VHDLLibrary
Property setting or returning the VHDL library this VHDL source file is used in.
- property VHDLVersion: <property object at 0x7a8dcbe94540>
Property setting or returning the VHDL version this VHDL source file is used in.
- Any
alias of
VHDLSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.VerilogBaseFile(path, version=None, project=None, design=None, fileSet=None)[source]
Inheritance
- Parameters:
- Any
alias of
VerilogBaseFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.VerilogSourceFile(path, version=None, project=None, design=None, fileSet=None)[source]
A Verilog source file (of any language version).
Inheritance
- Parameters:
- Any
alias of
VerilogSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- property VerilogVersion: SystemVerilogVersion
Property setting or returning the Verilog version this Verilog source file is used in.
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, version=None, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.VerilogHeaderFile(path, version=None, project=None, design=None, fileSet=None)[source]
A Verilog header file (of any language version).
Inheritance
- Parameters:
- Any
alias of
VerilogHeaderFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- property VerilogVersion: SystemVerilogVersion
Property setting or returning the Verilog version this Verilog source file is used in.
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, version=None, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SystemVerilogBaseFile(path, version=None, project=None, design=None, fileSet=None)[source]
Inheritance
- Parameters:
- Any
alias of
SystemVerilogBaseFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, version=None, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SystemVerilogSourceFile(path, version=None, project=None, design=None, fileSet=None)[source]
A SystemVerilog source file (of any language version).
Inheritance
- Parameters:
- Any
alias of
SystemVerilogSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- property SVVersion: SystemVerilogVersion
Property setting or returning the SystemVerilog version this SystemVerilog source file is used in.
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, version=None, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SystemVerilogHeaderFile(path, version=None, project=None, design=None, fileSet=None)[source]
A SystemVerilog header file (of any language version).
Inheritance
- Parameters:
- Any
alias of
SystemVerilogHeaderFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- property SVVersion: SystemVerilogVersion
Property setting or returning the SystemVerilog version this SystemVerilog source file is used in.
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, version=None, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SystemRDLSourceFile(path, srdlVersion=None, project=None, design=None, fileSet=None)[source]
A SystemRDL source file (of any language version).
Inheritance
- Parameters:
- property SystemRDLVersion: <property object at 0x7a8dcbe94ae0>
Property setting or returning the SystemRDL version this SystemRDL source file is used in.
- Any
alias of
SystemRDLSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.PythonSourceFile(path, project=None, design=None, fileSet=None)[source]
A Python source file.
Inheritance
- Any
alias of
PythonSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.CocotbPythonFile(path, project=None, design=None, fileSet=None)[source]
A Python source file used by Cocotb.
Inheritance
- Any
alias of
CocotbPythonFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.ConstraintFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all constraint files.
Inheritance
- Any
alias of
ConstraintFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.ProjectFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific project files.
Inheritance
- Any
alias of
ProjectFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.CSourceFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all ANSI-C source files.
Inheritance
- Any
alias of
CSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.CppSourceFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all ANSI-C++ source files.
Inheritance
- Any
alias of
CppSourceFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SettingFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific setting files.
Inheritance
- Any
alias of
SettingFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SimulationAnalysisFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific analysis files.
Inheritance
- Any
alias of
SimulationAnalysisFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SimulationElaborationFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific elaboration files.
Inheritance
- Any
alias of
SimulationElaborationFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SimulationStartFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific simulation start-up files.
Inheritance
- Any
alias of
SimulationStartFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.SimulationRunFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific simulation run (execution) files.
Inheritance
- Any
alias of
SimulationRunFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.WaveformConfigFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific waveform configuration files.
Inheritance
- Any
alias of
WaveformConfigFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.WaveformDatabaseFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-specific waveform database files.
Inheritance
- Any
alias of
WaveformDatabaseFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.WaveformExchangeFile(path, project=None, design=None, fileSet=None)[source]
Base-class of all tool-independent waveform exchange files.
Inheritance
- Any
alias of
WaveformExchangeFile
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __delitem__(key)
Index access for deleting attributes on this file.
- __getitem__(key)
Index access for returning attributes on this file.
- __init__(path, project=None, design=None, fileSet=None)
- __len__()
Returns number of attributes set on this file.
- Return type:
- Returns:
The number of attributes set on this file.
- __setitem__(key, value)
Index access for adding or setting attributes on this file.
- class pyEDAA.ProjectModel.FileSet(name, topLevel=None, directory=PosixPath('.'), project=None, design=None, parent=None, vhdlLibrary=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
A FileSet represents a group of files. Filesets can have sub-filesets.
The order of insertion is preserved. A fileset can be created standalone and later associated to another fileset, design and/or project. Or a fileset, design and/or project can be associated immediately while creating the fileset.
- Parameters:
name (
str) – Name of this fileset.directory (
Path) – Path of this fileset (absolute or relative to a parent fileset or design).project (
Project|None) – Project the file is associated with.design (
Design|None) – Design the file is associated with.parent (
FileSet|None) – Parent fileset if this fileset is nested.vhdlLibrary (
str|VHDLLibrary) – Default VHDL library for files in this fileset, if not specified for the file itself.vhdlVersion (<property object at 0x7a8dcbe95fd0> |
None) – Default VHDL version for files in this fileset, if not specified for the file itself.verilogVersion (
SystemVerilogVersion|None) – Default Verilog version for files in this fileset, if not specified for the file itself.svVersion (
SystemVerilogVersion|None) – Default SystemVerilog version for files in this fileset, if not specified for the file itself.srdlVersion (
SystemRDLVersion|None) – Default SystemRDL version for files in this fileset, if not specified for the file itself.name
topLevel
directory
project
design
parent
vhdlLibrary
vhdlVersion
verilogVersion
svVersion
srdlVersion
Inheritance
- __init__(name, topLevel=None, directory=PosixPath('.'), project=None, design=None, parent=None, vhdlLibrary=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
- Parameters:
name (str)
topLevel (str | None)
directory (Path)
project (Project | None)
design (Design | None)
parent (FileSet | None)
vhdlLibrary (str | VHDLLibrary)
vhdlVersion (<property object at 0x7a8dcbe95fd0> | None)
verilogVersion (SystemVerilogVersion | None)
svVersion (SystemVerilogVersion | None)
srdlVersion (SystemRDLVersion | None)
- Return type:
None
- property Project: Project | None
Property setting or returning the project this fileset is used in.
- property Parent: FileSet | None
Property setting or returning the parent fileset this fileset is used in.
- Files(fileType=<class 'pyEDAA.ProjectModel.File'>, fileSet=None)[source]
Method returning the files of this fileset.
- property VHDLLibrary: VHDLLibrary
Property setting or returning the VHDL library of this fileset.
- property VHDLVersion: <property object at 0x7a8dcbe95fd0>
Property setting or returning the VHDL version of this fileset.
- property VerilogVersion: SystemVerilogVersion
Property setting or returning the Verilog version of this fileset.
- property SVVersion: SystemVerilogVersion
Property setting or returning the SystemVerilog version of this fileset.
- __len__()[source]
Returns number of attributes set on this fileset.
- Return type:
- Returns:
The number of attributes set on this fileset.
- class pyEDAA.ProjectModel.VHDLLibrary(name, project=None, design=None, vhdlVersion=None)[source]
A VHDLLibrary represents a group of VHDL source files compiled into the same VHDL library.
- Parameters:
name (
str) – The VHDL libraries’ name.project (
Project|None) – Project the VHDL library is associated with.design (
Design|None) – Design the VHDL library is associated with.vhdlVersion (<property object at 0x7a8dcbe96930> |
None) – Default VHDL version for files in this VHDL library, if not specified for the file itself.name
project
design
vhdlVersion
Inheritance
- property Project: Project | None
Property setting or returning the project this VHDL library is used in.
- property Design: Design | None
Property setting or returning the design this VHDL library is used in.
- property Files: Generator[File, None, None]
Read-only property to return all files in this VHDL library.
- property VHDLVersion: <property object at 0x7a8dcbe96930>
Property setting or returning the VHDL version of this VHDL library.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __len__()[source]
Returns number of attributes set on this VHDL library.
- Return type:
- Returns:
The number of attributes set on this VHDL library.
- __setitem__(key, value)[source]
Index access for adding or setting attributes on this VHDL library.
- class pyEDAA.ProjectModel.Design(name, topLevel=None, directory=PosixPath('.'), project=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
A Design represents a group of filesets and the source files therein.
Each design contains at least one fileset - the default fileset. For designs with VHDL source files, a independent VHDLLibraries overlay structure exists.
- Parameters:
name (
str) – The design’s name.directory (
Path) – Path of this design (absolute or relative to the project).project (
Project|None) – Project the design is associated with.vhdlVersion (<property object at 0x7a8dcbe97560> |
None) – Default VHDL version for files in this design, if not specified for the file itself.verilogVersion (
SystemVerilogVersion|None) – Default Verilog version for files in this design, if not specified for the file itself.svVersion (
SystemVerilogVersion|None) – Default SystemVerilog version for files in this design, if not specified for the file itself.srdlVersion (
SystemRDLVersion|None) – Default SystemRDL version for files in this fileset, if not specified for the file itself.name
topLevel
directory
project
vhdlVersion
verilogVersion
svVersion
srdlVersion
Inheritance
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __init__(name, topLevel=None, directory=PosixPath('.'), project=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
- Files(fileType=<class 'pyEDAA.ProjectModel.File'>, fileSet=None)[source]
Method returning the files of this design.
- __len__()[source]
Returns number of attributes set on this design.
- Return type:
- Returns:
The number of attributes set on this design.
- class pyEDAA.ProjectModel.Project(name, rootDirectory=PosixPath('.'), vhdlVersion=None, verilogVersion=None, svVersion=None)[source]
A Project represents a group of designs and the source files therein.
- Parameters:
name (
str) – The project’s name.rootDirectory (
Path) – Base-path to the project.vhdlVersion (<property object at 0x7a8dcbec8400> |
None) – Default VHDL version for files in this project, if not specified for the file itself.verilogVersion (
SystemVerilogVersion|None) – Default Verilog version for files in this project, if not specified for the file itself.svVersion (
SystemVerilogVersion|None) – Default SystemVerilog version for files in this project, if not specified for the file itself.name
rootDirectory
vhdlVersion
verilogVersion
svVersion
Inheritance
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- __init__(name, rootDirectory=PosixPath('.'), vhdlVersion=None, verilogVersion=None, svVersion=None)[source]
- property RootDirectory: Path
Property setting or returning the root directory this project is located in.
- __len__()[source]
Returns number of attributes set on this project.
- Return type:
- Returns:
The number of attributes set on this project.