diff --git a/nvc_1191/run.sh b/nvc_1191/run.sh new file mode 100755 index 0000000..4627943 --- /dev/null +++ b/nvc_1191/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +nvc --std=08 -a test.vhd +nvc --std=08 -e --cover test diff --git a/nvc_1191/test.vhd b/nvc_1191/test.vhd new file mode 100644 index 0000000..05df739 --- /dev/null +++ b/nvc_1191/test.vhd @@ -0,0 +1,34 @@ +package test_pkg is + generic ( + DEPTH : positive := 8 + ); + + type t_test is protected + end protected t_test; + +end package test_pkg; + +package body test_pkg is + + type t_test is protected body + end protected body; + +end package body; + + +use std.env.all; + +entity test is +end entity; + +architecture sim of test is + + package test_pkg_inst is new work.test_pkg; + + shared variable s_test_pkg_inst : test_pkg_inst.t_test; + +begin + + stop(0); + +end architecture sim;