AI Accelerator with FPGA — From Image Processing to CNN Training and Hardware Verification
Many people have learned FPGA and Verilog but get stuck at the question, "So, how do I actually build an AI accelerator?" This course resolves that curiosity. Using just a single entry-level FPGA and free tools, you will start from a hand-designed 3×3 kernel, train a CNN yourself, quantize the trained weights to INT8 to load onto the hardware, and verify that the results are Bit-True—not deviating by even a single bit from the Python model. As a professor with 30 years of experience in the semiconductor industry, I teach only verified content as 'working circuits' on actual FPGAs. By gaining the experience of designing and proving it yourself rather than just learning theory, you will acquire practical skills that are recognized in the fabless design and AI semiconductor fields.
The ability to directly design an image recognition accelerator, from 3×3 kernels to CNNs, and run it on an FPGA.
Practical ability to quantize trained floating-point weights to INT8 (PTQ/QAT) and deploy them onto hardware.
Bit-True verification capability to compare Python reference models and Verilog RTL on a bit-by-bit basis
Ability to implement real-time image processing pipelines (pixel filters, 3×3 convolutions) on FPGA
The ability to directly design hardware-friendly computational structures such as line buffers, Winner-Take-All, and Argmax.
Practical experience in handling two clock domains and meeting timing requirements in FPGA implementation.
A working AI accelerator result, completed using only free tools and a single FPGA, that can be used in a portfolio.
■ Course Introduction
This is a hands-on course where you will design, train, and verify an AI accelerator (NPU) using only an entry-level FPGA (Arty S7-25) and free tools (Vivado). Starting from a hand-designed 3×3 kernel, you will train a CNN yourself, quantize the trained floating-point weights to INT8 to load onto the FPGA, and verify that the results are "Bit-True"—matching the Python reference model without a single bit of error. Moving beyond mere conceptual explanations, you will see your designed circuits operate on actual hardware, and all source code is publicly available on GitHub.
■ What this course covers
It spans two tracks, from image processing to AI accelerator design.
· Intro to AI Acceleration — Fixed Kernel Classifier → CNN Training & Quantization (PTQ·QAT) → Bit-True Verification of Training Weights
It starts with manual design and progresses all the way to verifying machine-learned weights on hardware.
■ Recommended for the following people
· Junior engineers or students preparing for semiconductor fabless front-end design positions who feel lost because they only know the theory and lack hands-on design experience.
· Junior engineers who have experience with FPGA and Verilog but have not yet reached the level of designing and verifying AI accelerators on their own
· Electronics or Computer Engineering students who need a portfolio demonstrating the physical implementation of AI semiconductors
· Those who wish to transition to the AI system semiconductor field and need a way to prove their practical hardware capabilities
■ After taking this course
· The ability to directly design image recognition accelerators, from 3×3 kernels to CNNs, and run them on FPGAs
· Practical ability to quantize learned floating-point weights to INT8 (PTQ·QAT) and deploy them onto hardware
· Bit-True verification skills to compare Python reference models and Verilog RTL bit-by-bit
· The ability to directly design hardware-friendly computational structures such as line buffers, Winner-Take-All, and Argmax.
· A functional AI accelerator output that can be used immediately in portfolios and interviews
■ Prerequisites
· Basic C programming, basic digital logic circuits
· Experience with Verilog-HDL syntax and FPGA synthesis/implementation
· Basic use of Python
· Basic concepts of CNNs and neural networks
■ Preparation before taking the course (Important)
This course assumes that the Vivado and Python environments are installed and that you are able to run basic simulations. The setup of the basic environment below will not be covered in detail during the lecture, so please prepare it in advance.
- Vivado installation and basic usage
- Python (Anaconda/Jupyter) installation
- Basic Verilog-HDL
The basics mentioned above are covered in free videos on my YouTube channel (@EdgeChipLab), or you may refer to other available resources. This course focuses on "image processing and AI accelerator design, training, and verification" based on those fundamentals.
■ Practice Environment · Requirements
· FPGA Board: Digilent Arty S7-25
· Display: Pmod OLEDrgb (SSD1331, 96×64) — For displaying input and result images
· Practice Source Code: Fully available on GitHub (RTL·Python·Testbench·.mem)
· Input uses stored images (.mem), and no camera is required.
· Learn everything from video processing to Vivado simulation even without a board or OLED
■ Unique strengths of this course
· A complete loop leading from design → training → hardware verification
· 100% Bit-True Verification — proving it's not just 'working,' but 'exactly the same as Python'
· Complete the course anytime, anywhere with a single entry-level FPGA and free tools.
· Fully public on GitHub for immediate download and reproduction
· A current professor with 30 years of experience in the semiconductor industry delivers only content verified on actual FPGAs.
■ Reference
· All design and implementation content in this lecture was created by the instructor, and the narration (voice) was produced using TTS.
Recommended for these people
Who is this course right for?
Those who are preparing for a job in semiconductor fabless front-end design but feel lost because they only know the theory and have no hands-on design experience.
Junior engineers who have experience with FPGA and Verilog but have not yet reached the level of designing and verifying AI accelerators on their own.
Electronics and Computer Engineering majors who need a portfolio demonstrating the physical implementation of AI semiconductors.
Those who are looking to transition into the AI system semiconductor field and need a way to prove their practical hardware capabilities.
Need to know before starting?
C Language Basics
Basics of Digital Logic Circuits
Verilog-HDL Syntax (Prerequisite learning available through free Level 1 YouTube videos)
Vivado · Python (Anaconda/Jupyter) Installation and Basic Simulation Execution
"In the AI era, the surest response is to build AI semiconductors yourself."
This program is neither a theory-focused university course nor the standardized curriculum of a contract department tailored to specific specifications. Nor is it limited to simply gaining experience using EDA tools or leveraging libraries, as in conventional fragmented practical seminars.
Designed and FPGA-verified by a practicing engineering professor with 30 years of experience, who began as a system semiconductor researcher at Samsung Electronics’ DS Division, received the Silver Award (Group Chairman’s Award) at the Samsung Technology Awards for design automation, and served as Director of Samsung’s UK and German subsidiaries and head of the System LSI marketing and sales group, this is a one-of-a-kind, hands-on course.
We also provide free web-based practice tools developed by the author: EdgeTCAD, EdgeAssembler, and EdgeVerilog.
We have created an educational environment where students can directly simulate and analyze the structures, operating principles, and electrical properties of semiconductor devices such as PN junctions, MOS capacitors, planar MOSFETs, 3D FinFETs, and GAA on their own PCs using the semiconductor device simulation tool EdgeTCAD.
With EdgeAssembler, you can convert RISC-V Assembly into Machine Code and Instruction Encoding and inspect the results, and use EdgeVerilog to design RTL and simulate it on your PC.
[ Key differentiators for industry professionals and aspiring engineers ]
Architecture design skills—rather than connecting off-the-shelf IP or modifying code, directly design the RV32I five-stage Pipeline (IF·ID·EX·MEM·WB) in RTL, including Data Hazard Forwarding, Load-Use Stall, and Branch handling. Understanding and directly working with the five-stage Pipeline is what sets your design skills apart.
From Algorithm to RTL — Implement an MNIST CNN as NPU RTL, starting with a Python model and applying Quantization, then verify that the Python and hardware results match bit-for-bit for the same input. The key is to achieve 100% identical results in Python and Verilog and produce results from actual FPGA operation.
CPU + NPU + RTOS integration on a single FPGA — Put everything on a single device: a CPU you designed running an NPU you designed, with FreeRTOS implemented by EdgeChipLab running on top. Students can use all these publicly available RTL and code resources to create their own semiconductor chips.
Free RTL design and simulation environment — With our in-house developed EdgeVerilog v1.0, you can write Verilog RTL, run simulations, and analyze waveforms on a PC or smartphone without signing up or installing any software. We provide a real simulation environment based on Icarus Verilog and 52 design examples for free, making it easy for anyone to get started with semiconductor design practice.
AI Algorithm → RTL Design → FPGA Implementation → Bit-True Verification → AI SoC
It provides an unparalleled, top-tier practical guide not only for undergraduate and graduate students, but also for working professionals looking to advance into next-generation AI semiconductor/SoC design.
Beyond theory to actual AI hardware implementation
It is difficult to develop system-level AI semiconductor design skills with only scattered, fragmented knowledge.
Students will not stop at using finished black-box IP. The goal is to progressively develop the system design skills to design an AI NPU and a 5-stage Pipeline RISC-V CPU themselves, integrate memory and peripherals, port an RTOS on top of them, and ultimately build their own AI SoC.
Starting with the fundamentals of transistors and digital circuits, this course connects FPGA, CPU, and NPU technologies to hardware for accelerating Transformers and LLMs.
We validate the research results on actual FPGA hardware.
This is not a lecture you only watch. Rather than stopping at theory or simple simulations, you will run AI semiconductor circuits you designed yourself on an actual FPGA and perform Bit-True verification, confirming that the Python model and RTL results match down to the last bit.
The instructor also connects research results, including four KCI-indexed papers on AI semiconductors, FPGAs, and RISC-V, to the educational content, taking technologies validated through research into actual design and FPGA implementation. The source code needed for the exercises—including a self-developed RISC-V CPU, Python code for image training, and Verilog RTL—is made available.
Built around the affordable Arty S7-25 FPGA board and the free Vivado design tool, this course enables learners to reproduce the entire process of designing, implementing, and verifying their own work. It can also be used with Digilent FPGA boards, including the Zybo Z7. Simply modify the XDC pin mapping (board) and clock division parameters (RTL) to match your board. The 'MNIST NPU with FPGA' course only requires modifying the XDC pin mapping, while courses that use an OLED and camera require modifying the clock division parameters (RTL).
→ The divider parameters for the course exercises are set based on the Arty S7’s 100 MHz input clock. Since other boards have different input clocks (for example, the Zybo Z7 has a 125 MHz input clock), you will need to recalculate the divider value so that the target frequency remains the same. If you miss this, the screen or video may not display properly,which can easily be mistaken for a code error, so please check.
Free RISC-V and Verilog Practice Environment — EdgeAssembler · EdgeVerilog
You can now start semiconductor design practice in your web browser without installing any software.
EdgeAssembler and EdgeVerilog, developed by the instructor, are free educational tools for hands-on practice. In EdgeAssembler, you can see how RISC-V Assembly is converted into Machine Code, and in EdgeVerilog, you can design and simulate RTL that processes those instructions. They run directly in your web browser, with no need to install separate EDA software.
Instruction Encoding Display: Select a Machine Code row to display its 32-bit binary representation and illustrate the opcode, rd, funct3, rs1, rs2, and imm fields.
Immediate Reconstruction: Reassemble scattered immediate bits, as in B-type and J-type, and display the offset and target address as well.
TinyRV32I Target: Tests tailored to the range of instructions supported by the textbook CPU
Encoding verification tool: Does not execute hardware; actual behavior is verified through EdgeVerilog’s RTL Simulation.
Key Features of EdgeVerilog
Actual RTL Simulation: Compile and simulate based on the open-source Icarus Verilog 12
Waveform Viewer: Observe signal changes, zoom, display HEX/DEC/BIN, position the cursor at signal changes, navigate to the previous or next change, and expand bus bits.
Example Library: Provides 52 digital circuit design examples, including counters, FSMs, and CPUs.
Project management: Write RTL and testbenches, autosave, and ZIP export/import
Mobile Support: Edit RTL, run simulations, and analyze waveforms on smartphones as well
Free of charge: Freely available for educational and non-commercial purposes.
Using the two tools together, learners can explore everything from introductory Verilog-HDL and FSMs to AXI4 and RISC-V CPU design, and verify everything from instruction encoding to RTL.
EdgeAssembler is a tool for checking instruction encoding, and EdgeVerilog is an educational tool for RTL functional verification. FPGA synthesis, implementation, and timing verification are performed in Vivado.
A seamless full-stack roadmap: from fundamentals to a mini LLM accelerator
Each lecture is part of a journey toward completing one vast system, not an isolated fragment.
Step 1: Fundamentals of AI Theory and Image Processing (Including Machine Learning)
Step 2: AI Accelerator (NPU) Design and Verification (Including Machine Learning)
Step 3: 5-Stage Pipeline RISC-V CPU Design and System Integration
Step 4: Advanced AI SoC Implementation and Expansion into a Mini LLM Acceleration Platform (Ongoing Content Updates)
Objective Verification Metrics
All design deliverables from this course have undergone rigorous validation against global standards and by the academic community.
5-Stage Pipeline RISC-V Architecture Verification: In-house developed RISC-V CPU passed the international foundation’s official compliance test (ACT), and its source code was released (GitHub)
Academic Recognition: Four sole-authored academic papers published in IJIBC, a prestigious KCI Grade A journal.
Global Recognition: Published four global Amazon technology books (reached #1 bestseller status)
Real-World Operation Verification Complete: Core IPs, including the RV32I CPU, NPU, vision system, GPS, Transformer, and AURA-Edge SoC, operate flawlessly in the Arty S7 environment.
Take on the challenge. By the end of this process of loading your own code onto the board and verifying the results, you will have leveled up into a hardware engineer with a completely different perspective.