Is it a BCD digit ? X31983


Statement
 

pdf   zip

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

  • digit is the 4-bit input number.

Output

  • is_bcd indicates when the number is a BCD digit.

Information
Author
Jordi Cortadella
Language
English
Official solutions
Verilog
User solutions
Verilog