project6
.docx
keyboard_arrow_up
School
California State University, Long Beach *
*We aren’t endorsed by this school
Course
174
Subject
Electrical Engineering
Date
Dec 6, 2023
Type
docx
Pages
3
Uploaded by ajkseo
Project 6: 4-bit Adder-Subtractor
Using a BCD to 7-Segment Display Decoder
Objectives:
Learn the concept of hierarchical design
Implement the 4-bit adder-subtractor and test its performance
What to do?
In project4, we built a circuit to do addition and subtraction of 4-bit numbers. Now, we will display the result in the
7-segment LED display we designed before.
The system diagram looks like the following:
Here is your to-do list:
1)
Use project4 AddSub.v code which describes your 4-bit Adder-Subtractor (you should have completed this step
and verify your 4-bit Adder-Subtractor works correctly;
2)
You should have also finished project5 and check the 7-segment LED display.
3)
Create a new project and name it Project6
4)
Add AddSub.v and display.v to your project.
5)
Do pin assignments, synthesize your design and implement. Then generate the bit file.
6)
Test your board and consider if this is a functional calculator.
1
Implementing your 4-bit Adder-Subtractor on board using 7 segment LED decoder
Now we need to connect the 7-segment LED Decoder with the 4-bit Adder-Subtractor. As shown in the diagram, the result
of the calculation now becomes the inputs to the decoder. We can see that in this final circuit, the outputs should be the
segments of the LED display.
To reflect the above changes, we need to modify the input/output list of the AddSub module as follows:
After you change the input/outputs, you also need to insert the following Verilog code to describe the 7-segment LED
display decoder (note that the inputs to the decoder is the calculation
result
):
display
d1(result[3], result[2],result[1],result[0],a,b,c,d,e,f,g,dp,enable);
Now, we are ready to do pin assignment. Go to Constraints and add Nexys-A7-100T-Master.xdc into the project. We want
to connect the 4-bit inputs
x and y
with the switches (SW7 to SW0), the
select
is connected to the push button (don’t push
is x+y, push is x-y), the result is displayed on the 7-segment LED display, and Cout is connected to LED0 (the LED light).
Make sure you input the correct pin number, and save the file.
Now, Synthesis
Run Synthesis, then, Implementation
Run Implementation and wait for the Green Check. If
everything is OK, then click on “Generate bitStream” to generate AddSub.bit
Once your bit file is generated, Open Hardware Manager and program the device and test your board with different inputs
for x, and y.
2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Design the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by one
arrow_forward
Rewrite the following high-level code to a RISC-V assembly function. The
function linear search (int
int size,
int target) searches a
*
nums,
specified integer target in an integer array nums. Assume a0, al, and a2 hold base
address of nums array, array size and the searching value target, respectively.
int linear_search(int * nums, int size, int target)
{
int * arrEnd =
nums + size
1;
while (nums <= arrEnd && *nums != target)
nums++;
if ( nums <= arrEnd)
return (arrEnd - nums) / sizeof (int) + 1;
return -1;
}
arrow_forward
6)
This QUESTION FROM Information theory course.
just write for me the the correct answer.
arrow_forward
the diagram on the right is for a register bank circuit that contain 8 registers. Each register is 16-bit. The register can read or write to one register at a time using address bus. Design the circuit and specify the width of EVERY bus.
arrow_forward
Q2: In the 7-segment display, derive an SOP
expression for segment ('f )'using the input
variables WXYZ and theń
expression using Karnaugh map (each digit
represented by a BCD codě).
minimize the
arrow_forward
New Solution
arrow_forward
What is a multipath channel? Why is a multipath channel frequency selective?
arrow_forward
A voice frequency channel, a signal voltage is 40mV and noise voltage is 40fV.What is the maximum data rate that can be transmitted if parameter resistances are equal?
arrow_forward
The resolution of the ADC unit with the reference voltage value of 3V is set to 8 bits. If the voltage level applied to the ADC input is 1.67 V, what is the numerical value read? For numbers with commas, take 4 digits after commas.?
arrow_forward
Write a verilog code for 8-bit up/down counter and design a circuit diagram.
arrow_forward
What are the shortcomings of one dimensional parity error detection scheme? And discuss the advantages of Two-dimensional parity over single parity scheme?
arrow_forward
See the figure below for Manchester scheme on CH-1 of Scope. Write the corresponding input
bit stream.
DE
arrow_forward
Write a Verilog code for 8-bit up/down counter for
any type of Modeling.
arrow_forward
Perform the following functions:a. What will be the parity of the data signal to send as even parity:10100111001b. (0101)BCD = (---?---)2 = (---?---)Excess-3 = (---?---)Grayc. How to represent following numbers in signed representation:1. (-78)102. (-19)10
arrow_forward
I need the answer as soon as possible
arrow_forward
Q1/Binary to octal conversion (2D9)16 =( )2
arrow_forward
The upper 16-bits of the 40-bit binary count value are displayed on the four
seven-segment displays as four hexadecimal digits. Hexadecimal values
aren't good for human perception. How would you suggest the counter
design be modified so that only decimal count values are displayed?
arrow_forward
To implement a Full Subtracter,
Using TWO 8:1 Multiplexers (ONE for Sum output and ONE for Cout output). Assign (or Connect) X, Y,and Bin variables to the Select Inputs of Multiplexers and connect 1 or 0 to each Data Input.
arrow_forward
Correct and detailed answer please. I will like for sure . Thank you!
arrow_forward
By using the design procedure for digital computers, design the following:i. Encoderii. Decoderiii. 4-bit comparator
arrow_forward
q4 b
arrow_forward
Detailed answer please. thank you
arrow_forward
Q4. A common bus system which is capable of transferring 2 bits at time with
number of registers are 4 each register is of 2 bit? Draw circuit diagram for this and
also define how many multiplexers are required and what will be the size of
multiplexer with truth table Also explain how to gather data from this bus back into
register [10]
arrow_forward
Assume a block diagram for a clock divider that can take a 1 MHz oscillator and create a
signal that has clock frequency of 20 Hz. What is the terminal count value needed to create this frequency and the number of bits needed on the counter if the clock divider can select between a 20 Hz signal and 2 kHz signal?
arrow_forward
draw the curcuit diagram for 4 channel 4 bit multiplexer implemented using 4 channel 1 bit multiplexer.
make sure that i need full circuit to save the final multiplexer in the library.
arrow_forward
The upper 16 -bit binary count value are displayed on the four seven -segemnt displays as four hexadecimal digits. Hexadecimal values aren't good for human perception. How would you suggest the counter design be modified so that only decimal count values are displayed.
arrow_forward
Implement a full-adder circuit with a decoder and two OR gates.
C--
- the f.
arrow_forward
Give me right solution otherwise leave it.
A voltage signal with a range of zero to 115 V. is to be converted by means of an ADC. Determine the minimum number of bits required to obtain a resolution of 10V?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Related Questions
- Design the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by onearrow_forwardRewrite the following high-level code to a RISC-V assembly function. The function linear search (int int size, int target) searches a * nums, specified integer target in an integer array nums. Assume a0, al, and a2 hold base address of nums array, array size and the searching value target, respectively. int linear_search(int * nums, int size, int target) { int * arrEnd = nums + size 1; while (nums <= arrEnd && *nums != target) nums++; if ( nums <= arrEnd) return (arrEnd - nums) / sizeof (int) + 1; return -1; }arrow_forward6) This QUESTION FROM Information theory course. just write for me the the correct answer.arrow_forward
- the diagram on the right is for a register bank circuit that contain 8 registers. Each register is 16-bit. The register can read or write to one register at a time using address bus. Design the circuit and specify the width of EVERY bus.arrow_forwardQ2: In the 7-segment display, derive an SOP expression for segment ('f )'using the input variables WXYZ and theń expression using Karnaugh map (each digit represented by a BCD codě). minimize thearrow_forwardNew Solutionarrow_forward
- What is a multipath channel? Why is a multipath channel frequency selective?arrow_forwardA voice frequency channel, a signal voltage is 40mV and noise voltage is 40fV.What is the maximum data rate that can be transmitted if parameter resistances are equal?arrow_forwardThe resolution of the ADC unit with the reference voltage value of 3V is set to 8 bits. If the voltage level applied to the ADC input is 1.67 V, what is the numerical value read? For numbers with commas, take 4 digits after commas.?arrow_forward
- Write a verilog code for 8-bit up/down counter and design a circuit diagram.arrow_forwardWhat are the shortcomings of one dimensional parity error detection scheme? And discuss the advantages of Two-dimensional parity over single parity scheme?arrow_forwardSee the figure below for Manchester scheme on CH-1 of Scope. Write the corresponding input bit stream. DEarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Delmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage Learning
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning