HDLbits
Start Practicing

Getting Started/First Steps

A Single Wire

easy
basicswiresfirst-module

Welcome to your first circuit. A “circuit” here is nothing more than a piece of wire: whatever value appears on the input should appear on the output, at every instant, with no delay and no logic in between.

This introduces the basic shape every problem on this site will use: a module (or entity) with a fixed set of ports that you must implement to match the given interface exactly.

Interface

Signal Direction Width Description
in input 1 The value to be copied
out output 1 Must always equal in

Notes

  • Use a single continuous assignment (assign in Verilog/SystemVerilog, a concurrent signal assignment in VHDL). No clock is involved — this is a purely combinational circuit.
  • The VHDL port names are in_bit / out_bit because in and out are reserved keywords in VHDL and cannot be used as identifiers.