Forum Discussion
KRose13
New Contributor
6 years agoHello, I am trying to convert BCD to Decimal on my DE10-Lite board. I want utilize all all six seven-segment displays but I'm don't know how to go about it. At the moment I can't seem to get two of seven-segments displays to work correctly.
module DE10_LITE_Default (SW,HEX1,HEX0); input [3:0]SW; output [6:0]HEX1,HEX0; wire z ; wire [3:0]y , m; wire [2:0]b; assign y = {1'b0,b}; //------------------------- // comparator compar1(...
KRose13
New Contributor
6 years agoThis is what I am trying to achieve.
first task;
Use switches SW7−4 and SW3−0 for the inputs A and B, respectively, and use SW8 for the carry-in. The value of A should be displayed on the 7-segment display HEX5, while B should be on HEX3. Display the BCD sum, S1S0, on HEX1 and HEX0.
Second task;
Design a combinational circuit that converts a 6-bit binary number into a 2-digit decimal number represented in the BCD form. Use switches SW5−0 to input the binary number and 7-segment displays HEX1 and HEX0 to display the decimal number.
Finding these tasks difficult as I am very new to this and I have a few more task like these.
So, I will need all the help I can get.