Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to design a digital circuit using VHDL

By Nikhil Agnihotri August 25, 2024

Digital circuit design is a critical part of electronics. In fact, most electronic components are digital electronic circuits. Even simple integrated circuits (ICs) contain thousands or hundreds of thousands of transistors. Microprocessors and microcontroller ICs typically have millions or billions of transistors.

Most ICs are produced in fabs, but digital circuit designs can be made using FPGA boards. It’s an important experience for any electronics learner.

The first step in designing digital circuits is learning the hardware description language (HDL). VHDL, Verilog, and SystemVerilog are the popular HDLs for digital circuit design. VHDL is beginner-friendly. It’s verbose but offers a strong type system with a structured syntax and good readability.

Verilog is concise and more efficient. However, it has less strict type checking, and certain constructs may remain ambiguous. SystemVerilog combines efficiency with advanced verification features, making it ideal for complex designs.

Verilog or VHDL are the only two viable options when new to digital circuit design, and the latter has some advantages. As a verbose hardware description language, VHDL builds a strong foundation of concepts in digital circuit design. Many existing hardware designs are written in VHDL, and many industries that focus on safety-critical systems prefer it over Verilog or SystemVerilog. Plus, any electronics student will learn VHDL as part of a university curriculum.

While learning VHDL, it’s necessary to design combinational logic like adders, subtractors, multipliers, comparators, encoders, decoders, multiplexers, and demultiplexers. With VHDL, it’s possible to describe hardware behavior, model hardware structure, simulate circuits, and synthesize them. You can build sequential logic like flip-flops, registers, counters, and shift registers. You can progress to designing ALUs, memory units, finite state machines, serial interfaces (UART, SPI, and I2C), parallel interfaces, and bus protocols.

At an advanced VHDL level, you can also:

  • Design core components of a microprocessor or microcontroller or implement digital signal processing circuits like FFTs, filters, and DSP algorithms.
  • Build communication systems like modems, encoders, and decoders.
  • Create image and video processing circuits, like implementing image and video compression, filtering, or enhancement algorithms.
  • Customize hardware accelerators for real-world applications using FPGA boards for image processing, video processing, cryptography, or machine learning.
  • Synthesize ASICs or control logic for embedded systems like automotive, consumer electronics, or industrial automation.

VHDL is a fundamental tool for designing and simulating digital circuits, building a strong foundation before learning Verilog or SystemVerilog. By writing VHDL codes, users will develop strong problem-solving skills and the essential logical thinking for digital circuit designing.

Overall, VHDL is relatively easy to learn. Here is a step-by-step guide:

  1. Get familiar with VHDL: Learn about VHDL’s advantages and disadvantages. Also, learn about the program structure of this hardware description language and the design flow.
  2. Begin your VHDL journey: By writing simple programs. These could be a full adder, 2-to-4 decoder, binary to gray code converter, 4-bit parity generator, 4X1 multiplexer, and more. This step is essential as it lays a strong foundation for tackling more complex designs.
  3. Simulate and verify designs: Learn to compile, simulate, and verify VHDL programs. 
  4. Design digital gates: After you have learned to design, compile, and verify codes in VHDL, start designing logic gates like AND, OR, NOT, NAND, NOR, XOR, and XNOR.
  5. Additional digital gates: Learn to design NAND, XOR, NOR, and XNOR gates with AND, OR, and NOT gates.  
  6. De Morgan’s Theorem: Design and verify De Morgan’s theorem in VHDL.
  7. Universal gate: Design and verify a 7 NAND universal gate in VHDL.
  8. NOR universal gate: Design and verify a NOR universal gate.
  9. Digital circuits with boolean equations: Learn to translate boolean equations into real digital circuits in VHDL.
  10. Half & full adder: Design and verify half and full-adder circuits in VHDL.
  11. Half & full subtractor: Design and verify half and full subtractor in VHDL.
  12. Parity generator and checker: Design and verify an 8-bit parity generator and checker in VHDL.
  13. Decoder and encoder: Design and verify 3×8 decoder and 8×3 encoder in VHDL.
  14. Multiplexer and demultiplexer: Design and verify an 8X1 multiplexer and 1×8 demultiplexer in VHDL.
  15. SR Flipflop: Design and verify a clocked SR latch.
  16. D Flipflop: Design and verify a D flipflop.
  17. JK Flipflop: Design and verify a JK flipflop in VHDL.
  18. T Flipflop: Design and verify a T flipflop in VHDL.
  19. Counter: Design and verify a 4-bit binary counter.
  20. Binary-to-gray and gray-to-binary converter: Design and verify 4-bit binary-to-gray and gray-to-binary converter in VHDL.
  21. An 8-bit adder: Design and verify an 8-bit full adder in VHDL.
  22. Comparator: Design and verify 1-bit and 8-t comparator.

The ideal way to learn digital circuit design is by writing HDL code for various circuits. Practice writing the code, compiling, verifying, and synthesizing if you have an FPGA board. Start with basic digital circuits like logic gates, boolean equations, combinational, and sequential logic circuits. Then, it gradually progresses to more complex digital circuits.

The step-by-step guide listed above will help build a foundation in digital circuit design using VHDL. You can then progress to more complex circuits like ALU, memory units, serial interfaces, parallel interfaces, bus protocols, and components of microprocessors and microcontrollers, ASICs, and DSPs. There’s virtually no limit.

 

You may also like:


  • What is Verilog, its features, and design flow?- Part 2

  • What are the top tools for developing embedded software?
  • VHDL
    VHDL Tutorial 1: Introduction to VHDL
  • VHDL
    VHDL Tutorial 2: VHDL programs

  • VHDL Tutorial 3: Using MAX+II to compile, simulate & verify…

  • Introduction to VHDL & Verilog – DE Part 9

Filed Under: Tech Articles
Tagged With: circuitdesign, circuits, digitalcircuits, electronics, integratedcircuits, language, systemverilog, techarticles, verilog, VHDL
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions.

  • Can anyone please help me with this single board computer?
  • Anyone successfully communicated to the BlueNRG-M0 module on the B-L4S5I-IOT01A board
  • How to Build an Audio Tone Control?
  • Current version of LTspice not working on Windows 11?
  • Addressable Latch in My Logic Project

RSS Electro-Tech-Online.com Discussions

  • Measuring controller current output with a meter
  • KiCad custom symbol definition correct approach
  • restarting this Christmas project
  • Anyone In The US Ordered From AliExpress Recently?
  • My Advanced Realistic Humanoid Robots Project

Featured Tutorials

Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
    Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
    Practical application of hardware filters with real-life examples
  • A filter design example
    A filter design example
  • Types of filter responses
    Types of filter responses
  • What are the two types of hardware filters?
    What are the two types of hardware filters?
  • What are hardware filters and their types?
    What are hardware filters and their types?
More Tutorials >

Recent Articles

  • Posifa sensors improve low-flow accuracy in compact systems
  • Acopian releases low-profile power supplies rated to 900 W
  • Octavo Systems OSDZU-3 REF Development Platform
  • Same Sky adds enclosure design to its audio engineering capabilities
  • Waterproof SMA-to-MHF I LK assemblies introduced by Amphenol RF

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe