Bus invert

Design a circuit that transfers or inverts the value of an NN-bit bus. A control signal called invert will determine whether the value must be transferred (invert=0) or inverted (invert=1). NN must be a parameter of the circuit with default value 8.

Specification

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

Input

Output

Problem information

Author: Jordi Cortadella

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

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