aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue2285/test_to_x01z.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue2285/test_to_x01z.vhdl')
-rw-r--r--testsuite/synth/issue2285/test_to_x01z.vhdl18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/synth/issue2285/test_to_x01z.vhdl b/testsuite/synth/issue2285/test_to_x01z.vhdl
new file mode 100644
index 000000000..4dbefb1e2
--- /dev/null
+++ b/testsuite/synth/issue2285/test_to_x01z.vhdl
@@ -0,0 +1,18 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity test_to_x01z is
+ port (
+ i_a : in std_logic;
+ i_b : in std_logic;
+ o_x : out std_logic
+ );
+end;
+
+architecture rtl of test_to_x01z is
+ signal a, b : std_logic;
+begin
+ a <= To_X01Z(i_a);
+ b <= To_X01Z(i_b);
+ o_x <= a and b;
+end;