v0.21.0
Release created on: 05.01.2023 - 17:25:55
New Features
- Added method
GetAncestortoModelEntity. - Added property
DependencyGraphtoDesign. - Added
_compileOrderGraphand_hierarchyGraphfields as well as matching propertiesCompileOrderGraphandHierarchyGraphtoDesign. - Added method
AddLibraryto register a VHDL library in the design. - Added method
CreateCompilerOrderGraphonDesign. - Added key-value-pair
"kind" : DependencyGraphEdgeKindon edges in the dependency graph. - Implemented referencing library, package and context references in topological order to design units referencing a context.
- Added method
LinkInstanziationsonDesign:- Handle
EntityInstantiationstatements.
- Handle
- Added dummy methods for:
ComputeHierarchyGetCompileOrderGetTopLevelGetUnusedDesignUnits
- Added field
_compileOrderVertexand propertyCompileOrderVertextoDocument. - Added property
DependencyVertextoLibrary. - Added generator
IterateDesignUnitstoDocument. - Added
__repr__for design units. - Added field
_blockstoConcurrentStatements. - Added generator
IterateInstantiationstoConcurrentStatements,IfGenerateStatementandCaseGenerateStatement. - Added field
_hierarchyVertexand propertyHierarchyVertextoDesignUnit. - Added new "analyze" test cases to unit tests.
Changes
- Moved implementation of
DesignUnitWithContextMixintoDesignUnit.
The fields_contextItems,_libraryReferences,_packageReferencesand_contextReferencesas well as matching properties and initializer codes are now inDesignUnit. LoadStdLibraryandLoadIeeeLibrarynow return the created VHDL library object.- When calling
AddDocumentonDesign, check if used library is part of the design. - Bumped dependencies.
- Updated shield URL for GitHub Actions.
- Removed fields
_declaredItemsand_statementsfromEntity.
(This is covered byConcurrentDeclarationsandConcurrentStatements.) - Change list of architectures for an entity to a dictionary for named lookups.
- Reworked
ComponentInstantiation,ConfigurationInstantiationandEntityInstantiation. - Extended flag members of
DependencyGraphEdgeKindby references, instances and implementations. - Improved instantiation test cases.
Bug Fixes
- Added missing "backward pointers" by setting
_parentto appropriate values.
This was missing in the entire model.
(As this was a complete code walk-through, TODO and FIXME comments for potential problematic regions were added.) - Fixed parameter names
_leftOperandand_rightOperand, by removing the_. - Added missing
Nullableto type hints. - Implemented missing field initialization code for
Package. - Fixed super call in
PackageBody.__init__,Configuration.__init__,Entity.__init__andArchitecture.__init__. - Fixed
Package.Index, now usingNormalizedLabel. - Removed property
DeclaredItemsfromArchitecture.
(This is covered byConcurrentDeclarations.) - Renamed parameters using
rangetorngto avoid overlap with Python builtins.