diff options
Diffstat (limited to 'testsuite/synth/snsuns01/sunaries.vhdl')
-rw-r--r-- | testsuite/synth/snsuns01/sunaries.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/synth/snsuns01/sunaries.vhdl b/testsuite/synth/snsuns01/sunaries.vhdl new file mode 100644 index 000000000..6df6a0063 --- /dev/null +++ b/testsuite/synth/snsuns01/sunaries.vhdl @@ -0,0 +1,21 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity unaries is + port ( + l4 : std_logic_vector (3 downto 0); + + plus_v : out std_logic_vector (3 downto 0); + minus_v : out std_logic_vector (3 downto 0); + abs_v : out std_logic_vector (3 downto 0)); +end unaries; + +library ieee; +use ieee.std_logic_signed.all; + +architecture behav of unaries is +begin + plus_v <= +l4; + minus_v <= -l4; + abs_v <= abs l4; +end behav; |