aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-11 02:55:48 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:34 +0200
commit3f31acc7304b03996f045f39b9e1130a4ffdc330 (patch)
tree22ca4fbdb73ac850b00aa6c9a5fe4d892089520c /testsuite
parent63cd71d89d9e389299cfb1c2faca35463d6502ee (diff)
downloadghdl-3f31acc7304b03996f045f39b9e1130a4ffdc330.tar.gz
ghdl-3f31acc7304b03996f045f39b9e1130a4ffdc330.tar.bz2
ghdl-3f31acc7304b03996f045f39b9e1130a4ffdc330.zip
Improved pretty-printing for hierarchy.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/pyunit/Current.vhdl22
1 files changed, 20 insertions, 2 deletions
diff --git a/testsuite/pyunit/Current.vhdl b/testsuite/pyunit/Current.vhdl
index d364a2b2e..f11ab764a 100644
--- a/testsuite/pyunit/Current.vhdl
+++ b/testsuite/pyunit/Current.vhdl
@@ -128,15 +128,33 @@ begin
genIf: if True generate
constant G0 : boolean := False;
begin
-
+ inst: IfDummy;
elsif False generate
constant G1 : boolean := False;
begin
-
+ inst: ElsifDummy;
else generate
constant G2 : boolean := False;
begin
+ inst: ElseDummy;
+ end generate;
+
+ genFor: for I in 0 to 3 generate
+ constant G3 : boolean := False;
+ begin
+ inst: ForDummy;
+ end generate;
+
+ genCase: case selector generate
+ when 0 =>
+ constant G4 : boolean := False;
+ begin
+ inst: Case0Dummy;
+ when others =>
+ constant G5 : boolean := False;
+ begin
+ inst: OthersDummy;
end generate;
end architecture behav;