From 2f4337f027ec97dd93642ea2db70873e9192fb3b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 7 Dec 2014 11:40:58 +0100 Subject: Add perf02 (performance issue). --- testsuite/gna/perf02/cmp_700.vhd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testsuite/gna/perf02/cmp_700.vhd (limited to 'testsuite/gna/perf02/cmp_700.vhd') diff --git a/testsuite/gna/perf02/cmp_700.vhd b/testsuite/gna/perf02/cmp_700.vhd new file mode 100644 index 000000000..8534ca78a --- /dev/null +++ b/testsuite/gna/perf02/cmp_700.vhd @@ -0,0 +1,26 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity cmp_700 is + port ( + in1 : in std_logic_vector(31 downto 0); + in0 : in std_logic_vector(31 downto 0); + eq : out std_logic + ); +end cmp_700; + +architecture augh of cmp_700 is + + signal tmp : std_logic; + +begin + + -- Compute the result + tmp <= + '0' when in1 /= in0 else + '1'; + + -- Set the outputs + eq <= tmp; + +end architecture; -- cgit v1.2.3