Level 30: Hello, Wire!

Open the level →

Task

In Verilog, code is not an algorithm — it is a circuit blueprint. Call the basic AND gate to connect wires.

Module AndGate has two 1-bit inputs (a, b) and one output (out).

Write one line: and gate1(out, a, b);

Solution

Each line here is not a command but a physical element: a wire, a gate, a connection. The lines are not executed one after another — they all exist at once, like tracks on a printed circuit board.

Simply call the and primitive:

and gate1(out, a, b);

The output (out) comes first, then the two inputs (a, b). The instance name gate1 can be anything.

Solution circuit for level 30 — Hello, Wire!
The authored solution for level 30 in the simulator (dark theme)