aboutsummaryrefslogtreecommitdiffstats
path: root/student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h
diff options
context:
space:
mode:
Diffstat (limited to 'student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h')
-rw-r--r--student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h b/student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h
new file mode 100644
index 0000000..565b7c3
--- /dev/null
+++ b/student_files_2015/student_files_2015/prj2/catapult_proj/vga_blur/blur.h
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+// _____ _ _ _____ _ _
+// |_ _| (_) | | / ____| | | |
+// | | _ __ ___ _ __ ___ _ __ _ __ _| | | | ___ | | | ___ __ _ ___
+// | | | '_ ` _ \| '_ \ / _ \ '__| |/ _` | | | | / _ \| | |/ _ \/ _` |/ _ \
+// _| |_| | | | | | |_) | __/ | | | (_| | | | |___| (_) | | | __/ (_| | __/
+// |_____|_| |_| |_| .__/ \___|_| |_|\__,_|_| \_____\___/|_|_|\___|\__, |\___|
+// | | __/ |
+// |_| |___/
+// _ _
+// | | | |
+// | | ___ _ __ __| | ___ _ __
+// | | / _ \| '_ \ / _` |/ _ \| '_ \
+// | |___| (_) | | | | (_| | (_) | | | |
+// |______\___/|_| |_|\__,_|\___/|_| |_|
+//
+////////////////////////////////////////////////////////////////////////////////
+// File: blur.h
+// Description: vga blur - real-time processing
+// By: rad09
+////////////////////////////////////////////////////////////////////////////////
+// this hardware block receives the VGA stream and then produces a blured output
+////////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef _BLUR
+#define _BLUR
+
+#include <ac_int.h>
+#include <iostream>
+
+// total number of pixels from screen frame/image read in testbench
+#define NUM_PIXELS (640*480)
+
+#define KERNEL_WIDTH 5
+#define KERNEL_NUMEL (KERNEL_WIDTH * KERNEL_WIDTH)
+#define COLOUR_WL 10
+#define PIXEL_WL (3 * COLOUR_WL)
+
+#define COORD_WL 10
+
+
+void mean_vga(ac_int<PIXEL_WL*KERNEL_WIDTH,false> vin[NUM_PIXELS], ac_int<PIXEL_WL,false> vout[NUM_PIXELS]);
+
+#endif