fpga-hardware-design-and-review-guide
Installation
SKILL.md
FPGA Hardware Design Guide
A practical FPGA hardware design guide based on real-world project experience.
Core Design Philosophy
1. Pipeline Architecture First
When processing high-speed data streams (video, network packets), adopt multi-stage pipeline design:
- Single-stage processing: Combinational logic delay too large, prone to timing violations
- Multi-stage pipeline: Insert registers at each stage, distribute delay, increase clock frequency
- Typical applications: RGB-to-YUV conversion, image filtering, protocol parsing
Real Case: RGB-to-YUV converter with 5-stage pipeline
- Stage 0: Input register (synchronize input signals)
- Stage 1: Multiply operation (coefficient * pixel value)
- Stage 2: Partial accumulation (Rcoef_r + Gcoef_g)
- Stage 3: Final accumulation (+ B*coef_b)
- Stage 4: Shift and saturation (truncate result to 8-bit)