Altera_Forum
Honored Contributor
11 years agoVerilog Problem hexadecimal sum
Hey everybody i have a question that i can't solve.
-We wish to display the hexadecimal value of an 8-bit number A on the two 7-segment displays HEX[3:2] -We also wish to display the hex value of an 8-bit number B on the two 7-segment displays HEX[1:0] -The values of A and B are inputs to the circuit which are provided by means of switches SW7[7:0]. -To input the values of A and B, first set the switches to the desired value of A, store these switch values in a register, and then change theswitches to the desired value of B. -Finally, use an adder to generate the arithmetic sum S = A + B, and display this sum on the 7-segment displays HEX[5:4] Show the carry-out produced by the adder on LEDR[0]. 1. Create a new Quartus II project which will be used to implement the desired circuit on the DE1-SoC board. 2. Write a Verilog file that provides the necessary functionality. Use KEY0 as an active-low asynchronous reset, and use KEY1 as a clock input. 3. Include the necessary pin assignments for the pushbutton switches and 7-segment displays, and then compile the circuit. 4. Download the circuit onto the DE1-SoC board and test its functionality by toggling the switches and observing the output displays