Skip to content

bvsnithin/HDLBits-Solutions

Repository files navigation

HDLBits-Solutions

HDLBits is considered by many as the leetcode for HDL :) It is a repo of many circuit design exercises. I will capture my solutions in this repo. Feel free to snoop around and star the repo if it helped you in your HDL learning journey.

Table of Contents

1. Getting Started (2 Problems)

2. Verilog Language (41 Problems)

2.1 Basics (8 Problems)

2.2 Vectors (9 Problems)

2.3 Modules (9 Problems)

2.4 Procedures (8 Problems)

2.5 More Verilog Features (7 Problems)

3. Circuits (86 Problems)

3.1 Combinational Logic (37 Problems)

3.1.1 Basic Gates (17 Problems)
3.1.2 Multiplexers (5 Problems)
3.1.3 Arithmetic Circuits (7 Problems)
3.1.4 Karnaugh Map to Circuit (8 Problems)

3.2 Sequential Logic (49 Problems)

3.2.1 Latches and Flip-Flops (18 Problems)
3.2.2 Counters (8 Problems)
3.2.3 Shift Registers (9 Problems)
3.2.4 More Circuits (4 Problems)
3.2.5 Finite State Machines (33 Problems)

3.3 Building Larger Circuits (7 Problems)

4. Verification: Reading Simulations (15 Problems)

4.1 Finding Bugs in Code (5 Problems)

4.2 Build a Circuit from a Simulation Waveform (10 Problems)

5. Verification: Writing Testbenches (5 Problems)

How to Use

  1. Navigate to the appropriate category directory
  2. Open the Verilog file matching the problem you want to solve
  3. Each file contains:
    • Problem description in comments
    • Module definition with I/O ports
    • Complete or template implementation

Contributing

Feel free to suggest improvements or corrections to the solutions.

About

HDLBits is considered by many as the leetcode for HDL :) It is a repo of many circuit design exercises. I will capture my solutions in this repo. Feel free to snoop around and star the repo if it helped you in your HDL learning journey.

Topics

Resources

Stars

Watchers

Forks

Contributors