Jutge.org
The Virtual Learning Environment for Computer Programming
Square of a BCD digit
X74175 en
Design a dircuit that produces the square of a BCD digit. The output should be in the binary
representation.
The top module must be called square bcd.
module
square bcd(bcd, square );
input
[3:0] bcd;
output
[6:0] square ;
Input
• bcd is the input BCD digit.
Output
• square is the output representing the square of the input digit in binary code.
Problem information
Author : Jordi Cortadella
Generation : 2013-07-17 16:32:04
© Jutge.org, 2006–2013.
http://www.jutge.org