博文

目前显示的是 四月, 2025的博文

Comparison of Leading PLD Manufacturers: Xilinx (AMD), Intel (Altera), and Lattice

图片
  1. Market Positioning and Target Applications Manufacturer Market Position Strengths Primary Target Markets Xilinx  (owned by AMD) FPGA market leader High-performance FPGAs , SoCs AI/ML, Automotive, 5G, Data Centers Intel (Altera) Second-largest provider Mid-range FPGAs, eFPGAs IoT, Industrial Automation, Military Lattice Niche provider Ultra-low-power, small FPGAs Edge AI, Consumer, Industrial Controls 2. Product Portfolio Comparison pie title FPGA Market Shares (2023) "Xilinx/AMD" : 51% "Intel/Altera" : 34% "Lattice" : 5% "Others" : 10% 3. Technical Differences Criteria Xilinx Intel (Altera) Lattice Flagship Series Versal (AI Engine) Stratix 10 (eASIC Technology) Nexus (FD-SOI Technology) Entry-Level FPGA Artix-7 Cyclone 10 iCE40 UltraPlus CPLDs CoolRunner II (legacy) MAX 10 (FPGA-like) MachXO3 Power Efficiency Medium (7nm) Medium (10nm) Very High (28nm FD-SOI) AI Acceleration Strong AI/ML Blocks Moderate DSP ...

LED Blinking FSM on a CPLD

图片
  We’ll design a   3-state machine   that controls an LED in different modes: OFF  → LED is off. SLOW_BLINK  → Toggles LED every  1 second . FAST_BLINK  → Toggles LED every  0.25 seconds . Hardware Setup CPLD Board : Xilinx CoolRunner-II ( XC2C256 ) or Lattice MachXO2 . Clock : Assume  12 MHz oscillator  (adjustable for timing). Inputs : A button ( btn ) to cycle through states. Outputs : One LED ( led ) for blinking. Step 1: VHDL Code for the State Machine vhdl library IEEE ; use IEEE . STD_LOGIC_1164 . ALL ; use IEEE . STD_LOGIC_UNSIGNED . ALL ; entity LED_Controller is Port ( clk : in STD_LOGIC ; -- 12 MHz clock btn : in STD_LOGIC ; -- Button to change state led : out STD_LOGIC -- Output LED ) ; end LED_Controller ; architecture Behavioral of LED_Controller is -- Define states type state_type is ( OFF , SLOW_BLINK , FAST_BLINK ) ; sign...

STM32 Microcontroller Tutorial: From Beginner to Advanced

图片
  This comprehensive STM32 tutorial covers everything from setting up your development environment to programming peripherals and using RTOS. STM32 (based on ARM Cortex-M) is one of the most popular 32-bit MCU families for embedded systems. 1. Getting Started with STM32 Hardware You'll Need STM32 development board (common options): Beginner : STM32F103C8T6 (Blue Pill, $5) Wireless : STM32WB55 (Bluetooth 5.0) High-performance : STM32H743 (Cortex-M7, 480 MHz) ST-Link programmer/debugger (or onboard debugger like STM32 Nucleo) USB cable, breadboard, LEDs, resistors Software Setup Install STM32CubeIDE  (Free official IDE from ST) Includes compiler, debugger, and STM32CubeMX (visual configurator) Download:  www.st.com/stm32cubeide Alternative Toolchains PlatformIO (VS Code extension) Keil MDK (Commercial) ARM GCC + Makefile (Advanced users) 2. Your First STM32 Program (Blinky LED) Using STM32CubeIDE Create New Project Select your MCU model (e.g., STM32F103C8 ) Configure clo...