From 0562c182aba6e99cbdeb302f6efa584d6642267f Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 14 Aug 2021 21:58:48 +0200 Subject: Handle bodies in case generate statements. --- pyGHDL/dom/formatting/prettyprint.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pyGHDL/dom/formatting/prettyprint.py') diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 7fa49389d..2f582a5f8 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -730,6 +730,9 @@ class PrettyPrint: prefix=prefix, label=case.Label, case=case ) ) + for stmt in case.Statements: + for line in self.formatHierarchy(stmt, level + 2): + buffer.append(line) elif isinstance(statement, ForGenerateStatement): buffer.append( "{prefix}- {label}: for {index} in {range} generate".format( -- cgit v1.2.3