Max of two numbers

Design a circuit receives two 3-bit numbers at the input and produces
the maximum of both numbers at the output.

Specification

    module max3(a, b, max);
        input [2:0] a, b;
        output [2:0] max;

Input

- a and b are the two 3-bit input numbers.

Output

- max is the 3-bit output number.

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:16:44.492Z

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