aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/snsuns01/scmple.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/snsuns01/scmple.vhdl')
-rw-r--r--testsuite/synth/snsuns01/scmple.vhdl24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/synth/snsuns01/scmple.vhdl b/testsuite/synth/snsuns01/scmple.vhdl
new file mode 100644
index 000000000..a2d6f9538
--- /dev/null
+++ b/testsuite/synth/snsuns01/scmple.vhdl
@@ -0,0 +1,24 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity cmple is
+ port (
+ li : integer;
+ ri : integer;
+ l4 : std_logic_vector (3 downto 0);
+ r3 : std_logic_vector (2 downto 0);
+
+ le_v4v3 : out boolean;
+ le_v4i : out boolean;
+ le_iv3 : out boolean);
+end cmple;
+
+library ieee;
+use ieee.std_logic_signed.all;
+
+architecture behav of cmple is
+begin
+ le_v4v3 <= l4 <= r3;
+ le_v4i <= l4 <= ri;
+ le_iv3 <= li <= r3;
+end behav;