aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/unary01/func.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-11-30 05:28:42 +0100
committerTristan Gingold <tgingold@free.fr>2022-11-30 05:30:00 +0100
commitd1cb16629dc3c0d62f4c397c2362c79b20874406 (patch)
treea398b76a71c097c38fef3e9c9cd97bec66d9e8c1 /testsuite/synth/unary01/func.vhdl
parentf54124861d2488e234887fc020ce0455f2a41d1d (diff)
downloadghdl-d1cb16629dc3c0d62f4c397c2362c79b20874406.tar.gz
ghdl-d1cb16629dc3c0d62f4c397c2362c79b20874406.tar.bz2
ghdl-d1cb16629dc3c0d62f4c397c2362c79b20874406.zip
testsuite/synth: add a test for calling operator by name
Diffstat (limited to 'testsuite/synth/unary01/func.vhdl')
-rw-r--r--testsuite/synth/unary01/func.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/synth/unary01/func.vhdl b/testsuite/synth/unary01/func.vhdl
new file mode 100644
index 000000000..e931a0c67
--- /dev/null
+++ b/testsuite/synth/unary01/func.vhdl
@@ -0,0 +1,14 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity func is
+ port (a, b : in std_logic_vector(7 downto 0);
+ o, p : out std_logic);
+end func;
+
+architecture behav of func is
+begin
+ o <= "or"(a);
+ p <= "and"(b);
+end behav;