Bus invert

Design a circuit that inverts the value of an N-bit bus. N must be a
parameter of the circuit with default value 8.

Specification

    module bus_invert(in, out);
        parameter N=8;
        input [N-1:0] in;
        output [N-1:0] out;

Input

- in is the N-bit input bus.

Output

- out is the N-bit inverted value of the bus.

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:14:25.786Z

© Jutge.org, 2006–2026.
https://jutge.org
