Where X=verilog

First I would like to thank Hackman since a lot of the verilog stuff I learned comes from his website! His verilog article.arrow-up-right There is a lot more to verilog that I still have to learn but these are the basics, I will continually come back and upgrade the page when I feel the need to.

Btw if you don't know this is written in the style of learnxinyminutes.comarrow-up-right, I just decided to make mine because they don't have one for verilog.

Simple hello world example:

initial $display("Hello, world!");

Declaring a module looks like this:

module top_module (
    input a,
    output b
    );
endmodule

## Instantiation of a module looks like this:

module tb;
    wire a;
    reg b;

    top_module dut(
        .a(a),
        .b(b)
        );
endmodule

Assigning signals looks like this:

Simple diagram of the module `top_module`:

Wires and Registers:

Buses or Vectors:

Number Representations:

Operators:

IF statement:

Delays:

Always blocks: