SlideShare a Scribd company logo
Edge Detection using 4 Bit MAC on Basys3 FPGA
Subject: FPGA -21ES612
Gokul - CB.EN.P2EBS24009
Shravan Ramesh - CB.EN.P2EBS24020
Amrita School of Engineering, Coimbatore Amrita
Vishwa Vidyapeetham
February 14, 2025
Outline
1. Objectives
2. Literature Revie
w
3. Methodology
4. Partial Result
5. References
FPGA -21ES612 Amrita Vishwa February 14, 2025 2 / 14
Objectives
• To implement a 4-bit MAC (Multiply-Accumulate) unit using in-memory computing
for efficient edge detection in images on an FPGA.
• Compare performance of FPGA using in memory and using LUT based process.
• Perform MAC-based Sobel filtering inside memory (BRAM) instead of using
external processing logic
• Perform MAC-based Sobel filtering inside memory (LUT’S) instead of using
external processing logic
• Validate the system by displaying processed images on an FPGA-
connected monitor.
FPGA -21ES612 Amrita Vishwa February 14, 2025 3 / 14
Outline
1. Objectives
2. Literature Revie
w
3. Methodology
4. Partial Result
5. References
FPGA -21ES612 Amrita Vishwa February 14, 2025 4 / 14
Literature Review
FPGA -21ES612 Amrita Vishwa February 14, 2025 5 / 14
Title/Year Key Findings
Performance Analysis of Multiplier
with Different Bits Size for MAC unit-
2024
The analysis could help in selecting or designing a multiplier that is
specifically optimized for 4-bit precision, which is often sufficient for
low-resolution image processing tasks.
An Efficient Softcore Multiplier
Architecture for Xilinx FPGAs-2015
The architecture could be modified or scaled down to handle 4-bit data,
ensuring that the multiplier is both area-efficient and fast, which is
important for real-time image processing applications.
Image Display using FPGA with
BRAM and VGA Interface for
Multimedia Applications-2023
For 4-bit image processing, the paper could provide valuable
information on how to store and retrieve 4-bit image data efficiently
from BRAM, as well as how to interface with a VGA display
Implementation of Sobel Edge
Detection with Image Processing on
FPGA-2024
For 4-bit image processing, the paper could provide insights into how to
adapt the Sobel algorithm to work with 4-bit data, ensuring that the
edge detection is both accurate and efficient.
Outline
1. Objectives
2. Literature Revie
w
3. Methodology
4. Partial Result
5. References
FPGA -21ES612 Amrita Vishwa February 14, 2025 6 / 14
Methodology
Image Preprocessing and Memory Mapping
• A grayscale image is converted into a binary memory file (image.mem) using a
Python script.
Storing Image in Block RAM (BRAM):
• In the IMC-based approach, the image is loaded into BRAM where all operations
occur.
• In the LUT-based approach, image data is stored in registers and processed through
logic gates.
FPGA -21ES612 Amrita Vishwa February 14, 2025 7 / 14
Methodology
Implementing 4-Bit MAC Unit
• The MAC operation (Multiply and Accumulate) is used to perform convolution for edge
detection.
Implementing Edge Detection Using Sobel Filter
• IMC-Based: The Sobel kernel coefficients are stored in BRAM, and convolution is
performed inside memory.
• LUT-Based: The image pixels are fetched into LUTs, processed through
combinational logic, and stored back.
FPGA -21ES612 Amrita Vishwa February 14, 2025 8 / 14
Outline
1. Objectives
2. Literature Revie
w
3. Methodology
4. Partial Result
5. References
FPGA -21ES612 Amrita Vishwa February 14, 2025 9 / 14
Partial Result (Continued)
FPGA -21ES612 Amrita Vishwa February 14, 2025 10 / 14
Outline
1. Objectives
2. Literature Revie
w
3. Methodology
4. Partial Result
5. References
FPGA -21ES612 Amrita Vishwa February 14, 2025 11 / 14
References
• 1. Implementation of Sobel Edge Detection with Image Processing on FPGA
• Priyanka, V., Sri Rama, Y., Sravani, K., & Kavya, B. (2024). Implementation of Sobel edge detection with image processing on FPGA. In 2024
IEEE International Conference on Emerging Technologies and Applications (ICETA). IEEE. https://doi.org/10.1109/ICETA.2024.XXXXXXX
• 2. Image Display using FPGA with BRAM and VGA Interface for Multimedia Applications
• Navaneethan, S., Nath, S. S., Krishnan, U., Krishna, L., Sakthekannan, M. S., & Yogavignes, B. M. (2023). Image display using FPGA with
BRAM and VGA interface for multimedia applications. In 2023 8th International Conference on Communication and Electronics Systems (ICCES)
(pp. 77-83). IEEE. https://doi.org/10.1109/ICCES57224.2023.XXXXXXX
• 3. An Efficient Softcore Multiplier Architecture for Xilinx FPGAs
• Kumm, M., Abbas, S., & Zipf, P. (2015). An efficient softcore multiplier architecture for Xilinx FPGAs. In 2015 IEEE 22nd Symposium on
Computer Arithmetic (pp. 1-8). IEEE. https://doi.org/10.1109/ARITH.2015.22
• 4. Performance Analysis of Multiplier with Different Bits Size for MAC Unit
• Anuraj, V., & Vaithiyanathan, D. (2024). Performance analysis of multiplier with different bits size for MAC unit. In 2024 IEEE International
Conference on Emerging Technologies and Applications (ICETA). IEEE. https://doi.org/10.1109/ICETA.2024.XXXXXXX
FPGA -21ES612 Amrita Vishwa February 14, 2025 12 / 14

More Related Content

PDF
Presentation for min project
PDF
Fpga Implementations Of Neural Networks Amos R Omondi Jagath C Rajapakse
PPTX
team12.project_ver_1_(1).pptx
PDF
Capturing and Stitching of ground surface images to enable a Machine Learning...
PDF
OpenACC and Hackathons Monthly Highlights: April 2023
PDF
Cuda project paper
PDF
IRJET - A Research on Video Forgery Detection using Machine Learning
PDF
IRJET- Rice QA using Deep Learning
Presentation for min project
Fpga Implementations Of Neural Networks Amos R Omondi Jagath C Rajapakse
team12.project_ver_1_(1).pptx
Capturing and Stitching of ground surface images to enable a Machine Learning...
OpenACC and Hackathons Monthly Highlights: April 2023
Cuda project paper
IRJET - A Research on Video Forgery Detection using Machine Learning
IRJET- Rice QA using Deep Learning

Similar to Edge Detection using 4 bit MAC on Basys3 FPGA (20)

PDF
HARDWARE/SOFTWARE CO-DESIGN OF A 2D GRAPHICS SYSTEM ON FPGA
PDF
Nas net where model learn to generate models
PDF
K0445660
PDF
dc09ttp-2011-thesis
PDF
Orthogonal Matching Pursuit in 2D for Java with GPGPU Prospectives
PDF
IRJET - Computer Vision-based Image Processing System for Redundant Objec...
PDF
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
PDF
Location Tracking and Smooth Path Providing System
PPTX
imagefiltervhdl.pptx
PDF
Real-time 3D Object Detection on LIDAR Point Cloud using Complex- YOLO V4
PPTX
Fast block motion estimation with 8 bit partial sums using SIMD architecture
PDF
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
PPTX
Custom Hardware design for image processing.pptx
PDF
Review On Different Feature Extraction Algorithms
PDF
Resume_Aney N Khatavkar
PDF
Resume_Aney N Khatavkar
PDF
IRJET- Image Forgery Detection using Support Vector Machine
PDF
FPGA-based Hardware Acceleration for Fruit Recognition Using SVM
PDF
IoT-based Autonomously Driven Vehicle by using Machine Learning & Image Proce...
PDF
The Role of Machine Learning in Fluid Network Control and Data Planes.pdf
HARDWARE/SOFTWARE CO-DESIGN OF A 2D GRAPHICS SYSTEM ON FPGA
Nas net where model learn to generate models
K0445660
dc09ttp-2011-thesis
Orthogonal Matching Pursuit in 2D for Java with GPGPU Prospectives
IRJET - Computer Vision-based Image Processing System for Redundant Objec...
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
Location Tracking and Smooth Path Providing System
imagefiltervhdl.pptx
Real-time 3D Object Detection on LIDAR Point Cloud using Complex- YOLO V4
Fast block motion estimation with 8 bit partial sums using SIMD architecture
Talk at INFN CCR Workshop on "Quantum Computing Simulation on FPGA"
Custom Hardware design for image processing.pptx
Review On Different Feature Extraction Algorithms
Resume_Aney N Khatavkar
Resume_Aney N Khatavkar
IRJET- Image Forgery Detection using Support Vector Machine
FPGA-based Hardware Acceleration for Fruit Recognition Using SVM
IoT-based Autonomously Driven Vehicle by using Machine Learning & Image Proce...
The Role of Machine Learning in Fluid Network Control and Data Planes.pdf
Ad

More from girilogu2 (11)

PPTX
Decision tree algorithm in Machine Learning
PPTX
L11 Inner Product Space Applied Mathematics
PPTX
L14 Projection and Gram Schmidt applied Mathematics
PPTX
L15 Least square method in applied mathematics
PPTX
2.11 Diffie -hellman exchange.pptx
PPTX
2.15 Message Authentication Code and Hash Functions.pptx
PPT
2.2 Product-architecture.ppt
PPT
2.1 Product_Specifications.ppt
PPTX
VLSI Bluetooth baseband controller.pptx
PPTX
2.13 Inroductory idea of elliptic curve cryptography.pptx
PPTX
2.10 Security of RSA.pptx
Decision tree algorithm in Machine Learning
L11 Inner Product Space Applied Mathematics
L14 Projection and Gram Schmidt applied Mathematics
L15 Least square method in applied mathematics
2.11 Diffie -hellman exchange.pptx
2.15 Message Authentication Code and Hash Functions.pptx
2.2 Product-architecture.ppt
2.1 Product_Specifications.ppt
VLSI Bluetooth baseband controller.pptx
2.13 Inroductory idea of elliptic curve cryptography.pptx
2.10 Security of RSA.pptx
Ad

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Sustainable Sites - Green Building Construction
PPT
Project quality management in manufacturing
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
OOP with Java - Java Introduction (Basics)
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Well-logging-methods_new................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Sustainable Sites - Green Building Construction
Project quality management in manufacturing
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Internet of Things (IOT) - A guide to understanding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
OOP with Java - Java Introduction (Basics)
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Construction Project Organization Group 2.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Foundation to blockchain - A guide to Blockchain Tech
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Well-logging-methods_new................
CYBER-CRIMES AND SECURITY A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT-1 - COAL BASED THERMAL POWER PLANTS

Edge Detection using 4 bit MAC on Basys3 FPGA

  • 1. Edge Detection using 4 Bit MAC on Basys3 FPGA Subject: FPGA -21ES612 Gokul - CB.EN.P2EBS24009 Shravan Ramesh - CB.EN.P2EBS24020 Amrita School of Engineering, Coimbatore Amrita Vishwa Vidyapeetham February 14, 2025
  • 2. Outline 1. Objectives 2. Literature Revie w 3. Methodology 4. Partial Result 5. References FPGA -21ES612 Amrita Vishwa February 14, 2025 2 / 14
  • 3. Objectives • To implement a 4-bit MAC (Multiply-Accumulate) unit using in-memory computing for efficient edge detection in images on an FPGA. • Compare performance of FPGA using in memory and using LUT based process. • Perform MAC-based Sobel filtering inside memory (BRAM) instead of using external processing logic • Perform MAC-based Sobel filtering inside memory (LUT’S) instead of using external processing logic • Validate the system by displaying processed images on an FPGA- connected monitor. FPGA -21ES612 Amrita Vishwa February 14, 2025 3 / 14
  • 4. Outline 1. Objectives 2. Literature Revie w 3. Methodology 4. Partial Result 5. References FPGA -21ES612 Amrita Vishwa February 14, 2025 4 / 14
  • 5. Literature Review FPGA -21ES612 Amrita Vishwa February 14, 2025 5 / 14 Title/Year Key Findings Performance Analysis of Multiplier with Different Bits Size for MAC unit- 2024 The analysis could help in selecting or designing a multiplier that is specifically optimized for 4-bit precision, which is often sufficient for low-resolution image processing tasks. An Efficient Softcore Multiplier Architecture for Xilinx FPGAs-2015 The architecture could be modified or scaled down to handle 4-bit data, ensuring that the multiplier is both area-efficient and fast, which is important for real-time image processing applications. Image Display using FPGA with BRAM and VGA Interface for Multimedia Applications-2023 For 4-bit image processing, the paper could provide valuable information on how to store and retrieve 4-bit image data efficiently from BRAM, as well as how to interface with a VGA display Implementation of Sobel Edge Detection with Image Processing on FPGA-2024 For 4-bit image processing, the paper could provide insights into how to adapt the Sobel algorithm to work with 4-bit data, ensuring that the edge detection is both accurate and efficient.
  • 6. Outline 1. Objectives 2. Literature Revie w 3. Methodology 4. Partial Result 5. References FPGA -21ES612 Amrita Vishwa February 14, 2025 6 / 14
  • 7. Methodology Image Preprocessing and Memory Mapping • A grayscale image is converted into a binary memory file (image.mem) using a Python script. Storing Image in Block RAM (BRAM): • In the IMC-based approach, the image is loaded into BRAM where all operations occur. • In the LUT-based approach, image data is stored in registers and processed through logic gates. FPGA -21ES612 Amrita Vishwa February 14, 2025 7 / 14
  • 8. Methodology Implementing 4-Bit MAC Unit • The MAC operation (Multiply and Accumulate) is used to perform convolution for edge detection. Implementing Edge Detection Using Sobel Filter • IMC-Based: The Sobel kernel coefficients are stored in BRAM, and convolution is performed inside memory. • LUT-Based: The image pixels are fetched into LUTs, processed through combinational logic, and stored back. FPGA -21ES612 Amrita Vishwa February 14, 2025 8 / 14
  • 9. Outline 1. Objectives 2. Literature Revie w 3. Methodology 4. Partial Result 5. References FPGA -21ES612 Amrita Vishwa February 14, 2025 9 / 14
  • 10. Partial Result (Continued) FPGA -21ES612 Amrita Vishwa February 14, 2025 10 / 14
  • 11. Outline 1. Objectives 2. Literature Revie w 3. Methodology 4. Partial Result 5. References FPGA -21ES612 Amrita Vishwa February 14, 2025 11 / 14
  • 12. References • 1. Implementation of Sobel Edge Detection with Image Processing on FPGA • Priyanka, V., Sri Rama, Y., Sravani, K., & Kavya, B. (2024). Implementation of Sobel edge detection with image processing on FPGA. In 2024 IEEE International Conference on Emerging Technologies and Applications (ICETA). IEEE. https://doi.org/10.1109/ICETA.2024.XXXXXXX • 2. Image Display using FPGA with BRAM and VGA Interface for Multimedia Applications • Navaneethan, S., Nath, S. S., Krishnan, U., Krishna, L., Sakthekannan, M. S., & Yogavignes, B. M. (2023). Image display using FPGA with BRAM and VGA interface for multimedia applications. In 2023 8th International Conference on Communication and Electronics Systems (ICCES) (pp. 77-83). IEEE. https://doi.org/10.1109/ICCES57224.2023.XXXXXXX • 3. An Efficient Softcore Multiplier Architecture for Xilinx FPGAs • Kumm, M., Abbas, S., & Zipf, P. (2015). An efficient softcore multiplier architecture for Xilinx FPGAs. In 2015 IEEE 22nd Symposium on Computer Arithmetic (pp. 1-8). IEEE. https://doi.org/10.1109/ARITH.2015.22 • 4. Performance Analysis of Multiplier with Different Bits Size for MAC Unit • Anuraj, V., & Vaithiyanathan, D. (2024). Performance analysis of multiplier with different bits size for MAC unit. In 2024 IEEE International Conference on Emerging Technologies and Applications (ICETA). IEEE. https://doi.org/10.1109/ICETA.2024.XXXXXXX FPGA -21ES612 Amrita Vishwa February 14, 2025 12 / 14