aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/Current.vhdl
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-16 23:56:16 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:36 +0200
commit597bc9928352ba187bdb0a707332a5f7a0a28e1a (patch)
treeba8eba2a7842a7a24cc0b2f5cbb7c578a39111c3 /testsuite/pyunit/Current.vhdl
parent3f0308a5f807269aa5691fa1c704c0e9147d45f1 (diff)
downloadghdl-597bc9928352ba187bdb0a707332a5f7a0a28e1a.tar.gz
ghdl-597bc9928352ba187bdb0a707332a5f7a0a28e1a.tar.bz2
ghdl-597bc9928352ba187bdb0a707332a5f7a0a28e1a.zip
Handle context references.
Diffstat (limited to 'testsuite/pyunit/Current.vhdl')
-rw-r--r--testsuite/pyunit/Current.vhdl17
1 files changed, 10 insertions, 7 deletions
diff --git a/testsuite/pyunit/Current.vhdl b/testsuite/pyunit/Current.vhdl
index a835eae40..240c11d5f 100644
--- a/testsuite/pyunit/Current.vhdl
+++ b/testsuite/pyunit/Current.vhdl
@@ -206,6 +206,16 @@ begin
ende: std.env.stop;
end architecture behav;
+context ctx is
+ library osvvm;
+ library axi4_lite, axi4_stream;
+ use osvvm.alert.all;
+ use osvvm.alert.alertid, osvvm.alert.priority;
+end context;
+
+
+context work.ctx;
+
package package_1 is
generic (
BITS : positive
@@ -251,10 +261,3 @@ end package body;
vunit vu (component_1) {
}
-
-context ctx is
- library osvvm;
- library axi4_lite, axi4_stream;
- use osvvm.alert.all;
- use osvvm.alert.alertid, osvvm.alert.priority;
-end context;