Home / Learn Verilog / Vectors and Buses: Multi-bit Signals

Vectors and Buses: Multi-bit Signals

Declare ranges like [7:0] to group bits.

The short versionDeclare ranges like [7:0] to group bits.

Theory in plain words

wire [7:0] data7766554433221100
wire [7:0] data

In plain terms

A vector is a multi-bit signal: wire [7:0] data;. [7:0] means bit 7 is the MSB.

Why we use it

Buses carry bytes, addresses and words.

Under the hood

Whole vector operations work on all bits at once.

Real-world use

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

8-bit bus operationsVerilog: edit and run

Each operator acts on all 8 bits.

Quick quiz

1. [7:0] has how many bits?