Home / Learn Verilog / Unconnected Ports and Default Values

Unconnected Ports and Default Values

What happens when a port is left open.

The short versionWhat happens when a port is left open.

Theory in plain words

Open pinsblkainputb(open!)youtput
Open pins

In plain terms

An unconnected input is high-impedance z; an unconnected output is simply ignored.

Why we use it

A floating input can make outputs x, a classic bug.

Under the hood

Connect every input; leave outputs open with empty parentheses .y().

Real-world use

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

Try it

Floating input gives xVerilog: edit and run

open gives x, tied gives 1.

Quick quiz

1. An open input behaves as...