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

Output

Problem information

Author: Jordi Cortadella

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

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