This is what I built for the full adder; when I connect to a board in class I connect the 3 bit inputs to switches on the board. I have Cin = 0; This displays a 4 bit output with the outputs going to LEDs. I need help coding this to get the output to display onto a 1s seven segment display. If the output is over 10 the 10s display will turn on.
My teacher gave me a hint but would not help much further. He told me the module with have "assign a" and assignment verilog. I am using this in Vivado and a Basys3 board to display this in class.
Those aren't other modules, they are Verilog language primitives for gates, they are part of the language. Don't know why anyone would teach using them, they seem rather pointless to me, I've never had a reason to use them for 20+ years.
Note the output of the adder is in binary therefore 1001 = 9 and is the largest single digit number you can represent. Values form 1010 to 1111 require a 10s digit. Search for the double dabble algorithm.
Perhaps there is a reason. You need to start with a flow chart: you need to recall the concepts of carry, borrow etc that you have learnt in the basic arithmetic.
This is what I built for the full adder; when I connect to a board in class I connect the 3 bit inputs to switches on the board. I have Cin = 0; This displays a 4 bit output with the outputs going to LEDs. I need help coding this to get the output to display onto a 1s seven segment display. If the output is over 10 the 10s display will turn on.
Thanks in advance for help!
I think he has more up to two 3-bit inputs where he feeds 0 upto 7 to the FPGA from each input. For the outputs to be 4-bit outputs, I think those are BCD outputs. The board seems to have a BCD-to-seven-segment converter. I think he needshould to implement addition on the 3-bit inputs and then convert the result from straight binary to BCD.
I don't know the board. I'm just guessing. I don't use verilog either.