Is it a BCD digit?

Design a circuit that receives a 4-bit number and generates an output that indicates when the number represents a BCD digit (the value is between 0 and 9).

Specification

module is_bcd_digit(digit, is_bcd);
   input [3:0] digit;
   output is_bcd;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:15:48.190Z

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