all about vlsi DV
Run Your First Verilog Program Online (No Installation Required)
Expected Time: Less than 1 hour
Getting started with a new language can be messy. There can be multiple installations, environment setup issues, and things that go wrong.
If you work in a corporate setting, you might not want to install tools on your system and mix personal practice with office setup.
Thankfully, there is a very quick and clean way to start learning Verilog — without installing anything.
Let’s get started.
Step 1: Open EDA Playground (Online Verilog Simulator)
Go to: https://www.edaplayground.com
If you are a first-time user, you might be asked to register.
You can register using Google or Facebook for quick access.
After successful login, you will see a workspace like this:
f you face issues, check the troubleshooting tips available at the bottom of the page.
Step 2: Writing Your First Verilog Code
You can start writing your design and testbench code immediately.
But before running your code:
-
You must save the code
-
You must select the correct simulator/tool from the left panel
First, let’s write a simple Verilog module.
Step 3: Define a Module in Verilog
In the editor pane on the left side, define a module using the module keyword followed by the module name.
Example:
module myModule;
Step 4: Declare Inputs and Outputs
Inside the module, declare inputs and outputs using input and output.
For this example:
-
Two inputs → in1, in2
-
One output → out
-
All of type wire
module myModule(
input wire in1,
input wire in2,
output wire out
);
-
Step 5: Implement Simple Logic (AND Gate Example)
-
Now let’s implement simple functionality.
-
We will create a basic AND gate using continuous assignment:
-
module myModule( input wire in1, input wire in2, output wire out ); // AND gate implementation assign out = in1 & in2; endmodule
-
If you don’t understand the syntax yet, don’t worry.
-
This tutorial is mainly to:
-
Understand how the tool works
-
Learn how to write and run code
-
Get comfortable with the workflow
-
We will go deeper into concepts in upcoming articles.
-
Step 6: Select Simulator and Run the Code
-
Now:
-
Select the simulator from the left panel
-
Save your program
-
Choose Public or Private
-
Click Run
-
After running, you will see the output log at the bottom.




Why Didn’t Our Verilog Code Show Any Output?
You must have already noticed the problem with this code.
It is no fun — because it does not display anything.
There are no errors.
But did it actually do anything?
Not really.
How Verilog is Different from C
This is where Verilog is very different from programming languages like C.
In C:
-
The program starts execution from main()
-
You explicitly print something
-
You give inputs through scanf() or arguments
In Verilog:
-
We declared inputs and outputs
-
But we never applied any input
-
We never told the simulator when to start or how to stimulate the design
So technically, our module is correct —
but nothing is driving it.
There is no execution flow like a C program.
What is Missing? → A Testbench
To actually see results, we need something called a testbench.
A testbench:
-
Generates input signals
-
Drives the design
-
Observes outputs
-
Controls simulation time
Think of it as the environment that tests your hardware module.
We will learn this properly in the next tutorial.
For now, just understand:
A Verilog module alone does not “run.”
It needs a testbench to stimulate it.
Start building TB by following this:
Try the Code Yourself
Meanwhile, I have shared my program here:
👉 https://www.edaplayground.com/x/Gccr
Feel free to play around.
Modify the code.
Experiment.
Break it.
Run it again.
That’s how you learn.
Happy coding!
Troubleshooting Tips (If Simulation Fails)
Sometimes, EDA Playground may be temporarily down.
If your log shows:
-
Weird timeout errors
-
Compilation failures without code issues
-
Server-related errors
Don’t panic.
EDA Playground is a very stable platform, but occasional downtime can happen.
If that happens:
-
Try refreshing
-
Or revisit after a few hours or a day
Disclaimer
This website does not endorse or claim ownership of the external link (EDA Playground).
It is a free tool used only for tutorial purposes.
To start building TB head over to next article