aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/synth38/modulo_test.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/synth38/modulo_test.vhdl')
-rw-r--r--testsuite/synth/synth38/modulo_test.vhdl13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/synth/synth38/modulo_test.vhdl b/testsuite/synth/synth38/modulo_test.vhdl
new file mode 100644
index 000000000..8dc8e6a26
--- /dev/null
+++ b/testsuite/synth/synth38/modulo_test.vhdl
@@ -0,0 +1,13 @@
+entity modulo_test is
+ port (
+ a : in integer;
+ b : out integer;
+ c : out integer
+ );
+end modulo_test;
+
+architecture rtl of modulo_test is
+begin
+ b <= a mod 8;
+ c <= a rem 8;
+end rtl;