Bus invert

Design a circuit that inverts the value of an NN-bit bus. NN 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

Output

Problem information

Author: Jordi Cortadella

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

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