From 7b1d4aa869a8361c0a77ee96fe9d0e97464ed691 Mon Sep 17 00:00:00 2001 From: Eddie Richter Date: Mon, 3 Jun 2024 21:34:50 -0600 Subject: [PATCH] Fixing test_vck5000.cpp on modulo test --- .../basic/vector_vector_modulo/test_vck5000.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programming_examples/basic/vector_vector_modulo/test_vck5000.cpp b/programming_examples/basic/vector_vector_modulo/test_vck5000.cpp index f625ae88e9..6e21ad6cf1 100644 --- a/programming_examples/basic/vector_vector_modulo/test_vck5000.cpp +++ b/programming_examples/basic/vector_vector_modulo/test_vck5000.cpp @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) { for (int i = 0; i < DMA_COUNT; i++) { in_a[i] = i + 1; - in_b[i] = i + 1; + in_b[i] = 7; out[i] = 0xdeface; } @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) { printf("s0[%d] = 0x%x\n", i, s0); printf("s1[%d] = 0x%x\n", i, s1); printf("d[%d] = 0x%x\n", i, d); - if (d != (s0 + s1)) { + if (d != (s0 % s1)) { errors++; printf("mismatch 0x%x != 0x%x + 0x%x\n", d, s0, s1); }