Even number

Design a circuit that receives a 4-bit number as input and produces an output that is asserted when the input number is even.

Specification

module even4(number, even);
   input [3:0] number;
   output even;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-07-14T06:43:24.452Z

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