aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting/prettyprint.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-11 15:49:39 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:35 +0200
commitbc09bbf10599436e1efdb0432886b2bb8b4bf890 (patch)
treeecfd7abe20a1b2773ef187bb3de302b1db05b0c5 /pyGHDL/dom/formatting/prettyprint.py
parentb34f3e885407693a2839771fd469af4ce2b40978 (diff)
downloadghdl-bc09bbf10599436e1efdb0432886b2bb8b4bf890.tar.gz
ghdl-bc09bbf10599436e1efdb0432886b2bb8b4bf890.tar.bz2
ghdl-bc09bbf10599436e1efdb0432886b2bb8b4bf890.zip
Support for concurrent procedure call.
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index bc6744fe8..7fa49389d 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -44,6 +44,7 @@ from pyGHDL.dom.Concurrent import (
ConfigurationInstantiation,
EntityInstantiation,
OthersGenerateCase,
+ ConcurrentProcedureCall,
)
from pyVHDLModel.SyntaxModel import (
GenericInterfaceItem,
@@ -741,5 +742,11 @@ class PrettyPrint:
for stmt in statement.Statements:
for line in self.formatHierarchy(stmt, level + 2):
buffer.append(line)
+ elif isinstance(statement, ConcurrentProcedureCall):
+ buffer.append(
+ "{prefix}- {label}: {name!s}(...)".format(
+ prefix=prefix, label=statement.Label, name=statement.Procedure
+ )
+ )
return buffer