Active: design.v Counter
Verilog-2001
1

          
        
// Ready. Click Run or press Ctrl+Enter to simulate HDL...
Verilator & IEEE Static Linter Verilator 5.032
// Click Lint in the toolbar to run Verilator static checks and detect inferred latches, width mismatches, and undriven nets.
Cursor: — 0 signals
SIGNAL VAL
📈
No Waveform Generated Yet
Make sure your testbench includes:
$dumpfile("dump.vcd"); $dumpvars(0, tb);
then click Run.
Gate-Level Schematic Netlist
Ready. Click 'Netlist' to synthesize gate-level schematic.

      
Yosys Generic Logic Synthesis RTL Synthesis
⚙
Generic Logic Synthesis (Yosys)
Synthesize synthesizable Verilog / SystemVerilog RTL logic into generic gate-level primitives (AND, OR, NOT, MUX, DFF) using the Yosys Open SYnthesis Suite.
OpenSTA Signoff Static Timing Analysis Static Timing
⏱
OpenSTA Signoff Static Timing Analysis
Perform signoff static timing analysis on your design with OpenSTA to compute critical data arrival times, required arrival times, Worst Negative Slack (WNS), and Total Negative Slack (TNS).
NanGate 45nm Technology Cell Mapping 45nm Open Cell
📚
NanGate 45nm Standard Cell Library Mapping
Map your synthesizable RTL to real open-source NanGate 45nm standard cell library primitives (NAND, NOR, DFF, INV) using ABC technology mapping and Yosys.
SkyWater SKY130 HD PDK ASIC Synthesis SKY130 HD
🔬
SkyWater SKY130 HD Standard Cell Synthesis
Synthesize and optimize your design against commercial SkyWater 130nm high-density (sky130_fd_sc_hd) standard cells with true area metrics and cell instance counts.
OpenROAD Physical Floorplan (OpenLANE ASIC Flow) OpenROAD · OpenLANE
🏗
OpenROAD Die & Core Physical Floorplanning
Execute open-source ASIC physical design floorplanning using OpenROAD and SkyWater SKY130 HD PDK (as in the OpenLANE ASIC flow). Calculates die aspect ratio, core boundaries, halo margins, site rows, and target utilization.
Architectural Block Diagram
Click Refresh Diagram to inspect parsed module ports, internal registers, and combinational paths.

🎓 RTL Engineering Learning Companion

EcrioniX Verilog Studio includes an interactive tutorial companion designed for students, FPGA beginners, and ASIC engineers.

Current Module Analysis
Load any example from the Explorer sidebar to view a line-by-line microarchitectural breakdown, testbench simulation guide, and synthesis insights.

Free Online Verilog & SystemVerilog Simulator & Compiler with Interactive Waveforms

EcrioniX Verilog Studio is an industrial-grade, browser-based hardware description language (HDL) development and digital verification environment. Designed for VLSI engineers, RTL designers, FPGA developers, and computer engineering students, Verilog Studio compiles, simulates, synthesizes, and analyzes IEEE 1364-2005 Verilog and IEEE 1800-2012 SystemVerilog designs with zero setup, zero local software installations, and zero account registration. Featuring Icarus Verilog simulation, real-time VCD waveform rendering, Verilator static linting, Yosys RTL logic synthesis, NanGate45 technology mapping, OpenSTA static timing analysis, SkyWater SKY130 PDK targeting, and automated OpenROAD floorplanning.

⚡ Icarus Verilog Simulation 📈 Interactive VCD Waveform Viewer 🛡 Verilator RTL Linting 🔬 Yosys & NanGate45 Synthesis ⏱ OpenSTA Timing Analysis 🏭 SkyWater SKY130 PDK 📐 OpenROAD Macro Floorplan 📚 33+ Runnable RTL Examples

What Is an Online Verilog Simulator?

An online Verilog simulator is a cloud-powered computer-aided design (CAD) tool that allows semiconductor engineers and students to write, compile, and execute Hardware Description Language (HDL) code directly inside a web browser. Traditionally, hardware design and digital verification require installing gigabytes of heavyweight Electronic Design Automation (EDA) suites such as Siemens Questa / ModelSim, Synopsys VCS, Cadence Xcelium, or vendor FPGA toolchains like AMD Xilinx Vivado and Intel Quartus Prime.

EcrioniX Verilog Studio eliminates traditional friction by offloading HDL compilation to a high-performance cloud backend powered by Icarus Verilog (iverilog) and VVP (Verilog Virtual Processor). When you write an RTL design module and a matching stimulus testbench, the simulator:

Verilog vs SystemVerilog: Synthesizable Constructs & Verification Best Practices

While Verilog (IEEE 1364) was created in 1984 primarily as a hardware modeling language, SystemVerilog (IEEE 1800) represents a major leap forward, introducing explicit design semantics and advanced object-oriented verification features. EcrioniX Verilog Studio natively supports both standards.

1. Explicit Procedural Intent

In standard Verilog, designers used ambiguous always @* blocks that could inadvertently infer latches if an if-else or case branch was omitted. SystemVerilog introduces explicit compiler-checked constructs:

// SystemVerilog explicit blocks
always_comb begin // Flags latch warnings
  out = sel ? a : b;
end

always_ff @(posedge clk or negedge rst_n) begin
  if (!rst_n) q <= '0;
  else        q <= d;
end

2. The Universal `logic` Type

Verilog required designers to memorize whether a signal was driven continuously (requiring wire) or inside a procedural block (requiring reg), leading to frequent syntax errors. SystemVerilog solves this with the unified logic datatype:

// SystemVerilog unified logic
logic [31:0] data_bus;
logic        valid;
logic        ready;

// Can be driven continuously or procedurally!
assign valid = (data_bus != 0);

3. Type Safety & Enums

Finite State Machines (FSMs) in traditional Verilog used untyped parameter constants. SystemVerilog introduces strongly typed enumerated states, preventing illegal assignments and vastly simplifying state machine debugging:

typedef enum logic [1:0] {
  IDLE  = 2'b00,
  SETUP = 2'b01,
  BURST = 2'b10,
  ERROR = 2'b11
} state_t;

state_t current_state, next_state;

How to Simulate Verilog Code Online: Step-by-Step RTL-to-Waveform Guide

Step 1: Write Your Synthesizable RTL Module

In the RTL tab (design.v or module_name.sv), define your inputs, outputs, registers, and sequential/combinational logic. Always use non-blocking assignments (<=) for edge-triggered flip-flops and blocking assignments (=) for combinational equations.

Step 2: Construct the Testbench & VCD Dump Directives

In the Testbench tab (testbench.v), instantiate the Device Under Test (DUT), generate an oscillator clock using an always #5 clk = ~clk; loop, and instruct the simulator to record all signal transitions into a VCD file using the IEEE standard system tasks:

initial begin
  $dumpfile("dump.vcd"); // Creates the digital trace file
  $dumpvars(0, tb_counter); // Dumps all signals at hierarchy level 0
  // Apply stimulus
  rst_n = 0; #15 rst_n = 1;
  #200 $finish; // Concludes simulation
end

Step 3: Click "Run (Ctrl+Enter)" for Instant Execution

Click the prominent green Run button or press Ctrl + Enter. The code is packaged and streamed to the Icarus Verilog execution engine. Compilation outputs, $display() text messages, and execution warnings are streamed live to the Console panel.

Step 4: Inspect Digital Waveforms in the Interactive Viewer

The simulator automatically parses the resulting dump.vcd file and renders high-resolution signal waveforms on the Waveform panel. You can pan horizontally, zoom in and out, click any bus name to switch between Hexadecimal, Binary, and Decimal representations, or inspect multi-bit register counts cycle-by-cycle.

33+ Industrial & Academic Verilog and SystemVerilog Simulation Examples

EcrioniX Verilog Studio comes preloaded with an extensive library of verified, ready-to-run Verilog and SystemVerilog circuits spanning introductory logic to advanced ASIC subsystem controllers:

Combinational Logic

  • Basic Logic Gates (AND, OR, NOT, XOR, NAND, NOR)
  • Half Adder & Full Adder
  • 4-bit Ripple Carry Adder & Carry Lookahead
  • 2:1 & 4:1 Multiplexers (Mux)
  • 1-to-4 Demultiplexer (Demux)
  • 4-to-2 Priority Encoder
  • 3-to-8 Binary Decoder
  • 4-bit Magnitude Comparator
  • BCD to 7-Segment Display Decoder

Sequential Logic & Registers

  • D Flip-Flop with Async Reset
  • JK Flip-Flop with Enable
  • 4-bit Up/Down Synchronous Counter
  • 4-bit Universal Shift Register (SISO/SIPO/PISO/PIPO)
  • Ring Counter & 4-bit Johnson Counter
  • Traffic Light Controller FSM
  • 1011 Sequence Detector (Mealy & Moore)
  • Parametric Clock Divider

Advanced RTL & Bus Protocols

  • ARM AMBA APB3 Slave Bus Controller
  • Synchronous FIFO with Full, Empty & Watermark Flags
  • Round-Robin & Strict Priority Arbiter
  • 2-Flip-Flop Clock Domain Crossing (CDC) Synchronizer
  • Asynchronous Reset Synchronizer (De-assert Sync)
  • UART Full-Duplex Transmitter & Baud Rate Gen
  • Configurable Pulse Width Modulation (PWM) Engine
  • SystemVerilog-2012 Enumerated State Machines

Understanding Digital Waveforms: Clocks, Transitions, X and Z States

In digital circuit simulation, analyzing timing diagrams is the core verification method for debugging setup/hold margins, clock skew, and state transition bugs. Digital waveforms represent signals across four standard discrete logic levels:

Logic '0' & Logic '1'

Standard defined binary states. Logic 0 represents ground (VSS, 0V) while Logic 1 represents supply rail voltage (VDD, e.g., 1.8V, 1.2V, or 0.8V in modern FinFET/GAA nodes).

Logic 'X' (Unknown / Contention)

Indicates an uninitialized register at time zero before reset assertion, an unhandled branch in a case statement, or multi-driver contention where two gates drive opposing values onto the same net simultaneously.

Logic 'Z' (High Impedance / Floating)

Represents a disconnected, floating tri-state output. Common in shared bidirectional buses like I2C, SPI MISO lines when unselected, or memory data buses during read/write turnaround cycles.

RTL Logic Synthesis and Gate-Level Netlist Generation

Writing HDL code is only the first step in semiconductor engineering. To manufacture silicon or program an FPGA, your behavioral Verilog must undergo logic synthesis. EcrioniX Verilog Studio integrates the open-source industry standard Yosys synthesis engine:

Professional ASIC & FPGA Design Flow: From Lint to Floorplan

EcrioniX Verilog Studio provides a complete, cohesive EDA pipeline that replicates the core stages of modern ASIC physical implementation:

Design Stage Underlying EDA Engine Primary Function & Metrics Engineering Benefit
RTL Linting Verilator 5.x Detects unused nets, widths mismatches, combinational loops, latch inference, and multi-driven nets. Eliminates subtle bugs before expensive simulation or tapeout synthesis.
RTL Simulation Icarus Verilog + VVP Compiles IEEE 1364/1800 code and executes testbenches with nanosecond-resolution VCD dumping. Verifies functional correctness and protocol compliance.
Generic & 45nm Synthesis Yosys + NanGate45 Translates behavioral Verilog into standard cell gates (NAND2_X1, DFF_X1, INV_X1) with area reports. Calculates gate count, cell area (μm²), and structural connectivity.
Static Timing Analysis (STA) OpenSTA Evaluates worst setup and hold timing paths, data arrival time, and timing slack (±ps). Guarantees timing closure and calculates maximum operating clock frequency ($F_{max}$).
PDK Synthesis SkyWater SKY130 HD PDK Maps RTL to open-source SkyWater 130nm high-density standard cells (sky130_fd_sc_hd). Prepares designs for open-source silicon fabrication through Google & Efabless.
Macro Floorplanning OpenROAD Computes die dimensions, core utilization (%), aspect ratio, and I/O pin placements. Visualizes physical silicon floorplan bounding boxes before place-and-route.

Feature Comparison: EcrioniX Verilog Studio vs EDA Playground & Desktop EDA

Compare the capabilities of EcrioniX Verilog Studio with other web-based simulators and traditional desktop EDA tools:

Feature / Capability EcrioniX Verilog Studio EDA Playground Desktop EDA (ModelSim / Vivado)
Installation Required ✔ Zero (100% Web) ✔ Zero (100% Web) ✘ 10GB – 80GB installation
Account Registration Required ✔ None (Instant Access) ✘ Mandatory email sign-up ✘ License key required
Interactive VCD Waveform Viewer ✔ Built-in High-DPI Canvas ⚠ EPWave (separate window) ✔ Built-in GUI
Interactive Gate Netlist Schematic ✔ Built-in SVG Schematic ✘ Not available ✔ Included
Static Timing Analysis (OpenSTA) ✔ One-click OpenSTA ✘ Requires custom scripts ✔ Included (TimeQuest / Vivado)
SkyWater SKY130 PDK Synthesis ✔ Built-in SKY130 HD ✘ Not integrated ✘ Custom foundry kit setup
Automated Silicon Floorplanning ✔ Built-in OpenROAD ✘ Not available ⚠ Requires complex Tcl flow
Preloaded RTL Examples ✔ 33+ Verified Examples Community snippets Template projects
Guided Learning Mode ✔ Built-in Circuit Explanations ✘ None ✘ None
Mobile & Tablet Friendly ✔ Fully Responsive Layout ✘ Desktop only ✘ Desktop only

Frequently Asked Questions (FAQ)

What is an online Verilog simulator? ▼
An online Verilog simulator is a browser-based Electronic Design Automation (EDA) platform that compiles, simulates, synthesizes, and visualizes digital circuits described in Verilog (IEEE 1364) and SystemVerilog (IEEE 1800). It allows engineers, researchers, and students to write synthesizable RTL and testbenches, execute simulations, and inspect timing waveforms without installing multi-gigabyte desktop software.
Can I simulate SystemVerilog in EcrioniX Verilog Studio? ▼
Yes! EcrioniX Verilog Studio natively supports synthesizable SystemVerilog constructs defined under IEEE 1800-2012, including unified logic types, always_comb, always_ff, always_latch blocks, enumerated state definitions (typedef enum), multi-dimensional packed and unpacked arrays, parameterized modules, and concurrent assertion statements.
Can I view digital waveforms online? ▼
Yes. When your testbench includes standard VCD dump commands ($dumpfile("dump.vcd"); $dumpvars(0, tb_module);), EcrioniX Verilog Studio automatically parses the resulting Value Change Dump (VCD) file and renders an interactive, high-resolution digital timing diagram on an HTML5 canvas. You can zoom in/out, pan across clock cycles, and toggle signal display formats between Hexadecimal, Binary, and Decimal.
What EDA backend engines power this simulator? ▼
EcrioniX Verilog Studio is backed by open-source EDA engines hosted in a secure cloud infrastructure: Icarus Verilog (iverilog) and VVP for simulation, Verilator for high-speed RTL linting, Yosys for logic synthesis and technology mapping to the NanGate45 Open Cell Library and SkyWater SKY130 HD PDK, OpenSTA for static timing analysis, and OpenROAD for automated die macro floorplanning.
How does RTL logic synthesis work in EcrioniX Verilog Studio? ▼
Clicking the Synth or NanGate45 button transmits your RTL to our Yosys synthesis backend. Yosys performs behavioral elaboration, applies multi-level logic optimization, and maps high-level operators (+, -, muxes, registers) to concrete physical standard cells (NAND, NOR, DFF, MUX) from the NanGate45 standard cell library. The output report details exact cell counts, total area (μm²), and gate-level netlist connectivity.
Can I perform Static Timing Analysis (STA) on my Verilog design? ▼
Yes! By clicking the OpenSTA button in the application toolbar, our cloud backend synthesizes your RTL to standard cells and executes OpenSTA. It calculates worst-case data arrival times, required arrival times, setup slack ($T_{setup}$), hold slack ($T_{hold}$), and reports the critical timing path through your combinational logic to determine maximum clock frequency ($F_{max}$).
What is SkyWater SKY130 synthesis and why is it important? ▼
SkyWater SKY130 is the world's first open-source, commercially manufacturable 130nm CMOS process design kit (PDK), created by Google and SkyWater Technology. EcrioniX Verilog Studio allows you to target the sky130_fd_sc_hd (high density) standard cell library with one click, providing realistic gate area and cell distribution metrics matching production tapeouts fabricated through the Google Efabless ChipIgnite shuttles.
How does the automated OpenROAD floorplanning tool work? ▼
When you click Floorplan, the simulator synthesizes your design and passes the gate-level netlist to OpenROAD. OpenROAD computes physical die boundaries, core area, aspect ratios, target cell placement utilization, and assigns I/O pads around the die perimeter, displaying an interactive architectural floorplan diagram right in your browser.
Is EcrioniX Verilog Studio free and do I need to register an account? ▼
EcrioniX Verilog Studio is 100% free and open for public educational and professional use. No login, credit card, or account registration is required. You can start typing Verilog code immediately, load any of our 33+ preloaded templates, simulate, and export results without any barriers.
Can I simulate multi-file Verilog projects and custom testbenches? ▼
Yes! The built-in multi-file tab bar allows you to organize your project into separate RTL design files and Testbench files. You can click + RTL to add modular sub-blocks (e.g., ALU, register file, state machine) and + TB to create custom verification testbenches. All files are simultaneously packaged and compiled by the backend simulator.
How can I export and share my Verilog code and simulation results? ▼
You can click Share to generate a unique, compressed shareable URL containing your complete multi-file project. Additionally, the Export dropdown allows you to download the active file (.v or .sv), download the generated VCD waveform file (.vcd), download the synthesized gate netlist as a vector image (.svg), or download a complete project ZIP bundle.
What is the difference between blocking (`=`) and non-blocking (`<=`) assignments? ▼
Blocking assignments (=) execute sequentially in the order written, blocking subsequent statements until the current assignment is evaluated and stored. They are used for combinational logic in always_comb or always @* blocks. Non-blocking assignments (<=) evaluate right-hand side expressions concurrently at the start of the time step and schedule updates for the end of the step. They must always be used for edge-triggered sequential logic (always_ff @(posedge clk)) to prevent simulation race conditions between flip-flops.
Why do waveforms show 'X' or 'Z' states during simulation? ▼
An 'X' state (unknown) occurs when a register has not been initialized by an active reset signal, when a signal is driven by conflicting logic levels, or when arithmetic operations encounter unassigned inputs. A 'Z' state (high impedance) occurs when a signal is not driven by any active gate, typically during tri-state bus turnover. In EcrioniX Verilog Studio, 'X' states are rendered with red crosshatching, while 'Z' states appear as center-dashed amber floating traces.
How does EcrioniX Verilog Studio calculate the RTL Code Quality Score? ▼
The real-time RTL Quality badge scans your code using static heuristic rules based on IEEE standards and industrial linting guidelines. It checks for: explicit module naming, port direction declarations, proper reset initialization, avoidance of latch inference, clean separation of sequential non-blocking and combinational blocking assignments, presence of comments, and matching testbench VCD dump statements. Scores range from 0 to 100 with actionable feedback to help you adopt professional RTL coding habits.

Connected Semiconductor Platforms & Interactive Labs

Continue your VLSI and computer engineering journey with EcrioniX's suite of specialized interactive engineering tools:

🔌 EcrioniX LogicLab

Professional browser-based digital logic design and circuit simulation software. Drag and drop logic gates, flip-flops, multiplexers, and 7-segment displays on a virtual breadboard.

Open LogicLab →

💻 EcrioniX 8051 Studio

Interactive 8051 Microcontroller Emulator and Assembly IDE. Step through instructions, inspect CPU registers, RAM banks, Timers, and simulate virtual GPIO hardware.

Open 8051 Studio →

⚙ ARM Cortex-M3 Studio

Interactive 32-bit ARM Cortex-M3 processor simulator. Write Thumb-2 assembly, step through the 3-stage pipeline, visualize xPSR flags, and master NVIC interrupts.

Open Cortex-M3 Studio →

⚡ PCIe Learning Hub

The ultimate engineering guide to PCI Express architecture, protocol layers (Transaction, Data Link, Physical), TLP packets, 8b/10b & 128b/130b encoding, and PCIe Gen1–Gen7.

Explore PCIe Hub →

🏆 VLSI Practice Problems

40+ interactive digital design, static timing analysis (STA), FIFO depth calculation, and RTL coding interview challenges with real-time verification testbenches.

Practice VLSI Problems →

📚 EcrioniX VLSI Academy

Structured online curriculum covering Verilog HDL, Static Timing Analysis (STA), ASIC Physical Design, Computer Architecture, and Modern SoC Design.

View All Courses →