Verilog Examples
We have a huge number of examples in this tutorial. Each example starts with a statement of the problem. We want you to look at the problem first. Then try the problem yourself.
Once you have tried the problem and given enough time, and not able to solve, look at the solution.
You may also like to compare your solution to see if it comes out to be better than the solution presented here.