ECE230L_Lab06
.pdf
keyboard_arrow_up
School
Boise State University *
*We aren’t endorsed by this school
Course
230L
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
Pages
10
Uploaded by PrivateSummer12964
Boise State University Electrical and Computer Engineering Department EE230L: Digital Systems Laboratory Lab 6: BCD Adder w/ Display
Project Group: Team 31
Team Members: Maten Karim, Damian Guzman
Experiment Date: 03/05/2024 Report Due: 03/08/2024
Title of Lab ECE 230L Page 2 of 10 1
Objective For this lab, we are creating a 4-bit BCD adder (binary-coded decimal). We will display the numbers we are adding and the result of the addition by using the seven segment display. The 4 bit binary adder from lab 3 will be used, with a bit of tweaking to ensure we get the results we are looking for. 2
Content Overview The 4 bit binary adder from lab 3 will give us the answer of two digits that add to 9 or less. The problem comes when the answer is more than 9, in our case it would be from 10-18. We want the most significant BCD value to be 1 while the least significant is the number from the 4 bit binary adder. To do this, we will add 6 to the output so our most significant bit will be a 1, while our least significant bits will be the correct results. By utilizing this technique, we can ensure the most significant BCD adder bit will be on and showing a “
1
”
when the resultant is between 10 and 18. 2.1
Content Below, the block design for the BCD Adder can be seen. By utilizing a 4 bit adder and 2 bit adder, we can add values from 0 –
18. Figure 1: BCD Adder Block Design
Title of Lab ECE 230L Page 3 of 10 The simulation waveform below shows inputs up to x = 4 and y = 0. This shows the design is correct since it properly adds the numbers together and shows a 1 at the carry out when needed. Figure 2: Simulation Waveform The three separate images below of the simulation waveform depict output values of 5, 10, and 17. Figure 3: (0 + 5) = 05 Figure 4: (1 + 9) = 10
Title of Lab ECE 230L Page 4 of 10 Figure 5: (8 + 9) = 17 The above simulation waveforms were all produced by the testbench that is provided in the appendices, section 5.1. 2.2
Results Overall, this part of the lab was very straightforward. Creating the block design did take some trial and error but we were able to figure it out. The simulation waveforms clearly show that our implementation works correctly. Question 1: For the case of switches signal (switches[7:0]) equal to 56 in hexadecimal, what two numbers are you adding? I.e. what two numbers are the inputs for your adder? Explain your answer. Hint: In hex, each digit represents 4 bits. We are adding 5 and 6 together. 56 in decimal form is 86 and 86 in binary code is 1010110. This binary code can be seen as 1010 0110. These two values 1010 and 0110 are equal to 5 and 6. Question 2: For the same case in the waveform, list the result (leds[4:0]) showing the value in decimal, hexadecimal, and binary. Does each representation make sense? Explain your answer. The result for leds[4:0] is being shown in decimal form. When viewing the value of the leds[4:0] it shows each led value in 1s and 0s. When the overall value is given, it is then translated into decimal form. Question 3: For the same case, what would be the result (in hexadecimal) if we were adding those numbers using a 4-bit binary adder instead of the BCD adder? 5+6=11 which in hexadecimal is B.
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
Explain minimum 5 Boolean laws applicable in case of digital circuits.Explain N type semiconductors
arrow_forward
Write an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.
arrow_forward
Q1// What are the difference between Logic Devices and Programmable
Logic Devices?
arrow_forward
ehcu.org/pluginfile
100%
10 / 11
locations, count how many times is 0 and how
many times 1 is.
Questions:-
1- Write a program in assembly language to perform the following logic
ci
BL
CL
DL
[5100]-
2- How we can perform the NEG and NOT instructions by using different
instructions.
3- Write the following program by using different instruction or instructions
for each instruction on the
program.
MOV AL , 00
MOV BX , FFFF
XOR CL , FF
NEG BYTE PTR [DI]
AND CX ,
LG
arrow_forward
logic circuit diagram for fabinaaci counter that gives output in fabinaaci sequence.upto 2 digits please mentions the gates and ics used in circuit.
arrow_forward
Q3) A - Convert the Excess-3 to binary number :
( 110001011100.10001010)ex-3
B- convert each Gray code to binary:
1-( 011010001001)G
2-(59)D
arrow_forward
H.W: Reduce the combinational logic circuit in Figure below to a
minimum form.
arrow_forward
Convert the following numbers:
10101010 binary to hexadecimal
Hexadecimal number BEAD to decimal
Decimal number 129 to binary.
Decimal 47802 to hexadecimal.
arrow_forward
6. Express the following gray code numbers as binary numhers:
a) 100111100
b) 0110101
c) 10110010101
7. Express the following decimal numbers as 2421 codes:
a) 168
b) 6735
c) 9021
d) 254
arrow_forward
Classify IC logic circuits based on the package density, i.e. the number of devices in an IC chip.
arrow_forward
5) Draw the circuit diagram using diode and write the truth table of a logic gates whose output will
be the logical OR operation of two inputs.
arrow_forward
Electrical Engineering
Draw 2, 1 bit ALUS to create a basic 2 bit
ALU. the carry out and carry in bits must
ripple across. The ALU should subtract/add,
logical NOR, logical AND, and logical OR.
Draw out the adding logic circuit
arrow_forward
please show work included
4. If a 6-bit binary number is used to represent an analog value in the range from -63 to 126, what is the accuracy of the system? In other words, if the binary number is incremented by one, how much change does it represent in the analog value?
arrow_forward
Answer the D, E and F part
arrow_forward
DIGIT ELECTRONICS
arrow_forward
For a microprocessor similar to ATmega328p an 8 bit ADC uses a VREF = 3.3 V. When an analog read is executed the return value is 112.
What Voltage is present on the input?
Enter the value in the box provided in mV. Round to the nearest mV.
arrow_forward
Please help me, solve this question.
arrow_forward
I need the answer as soon as possible
arrow_forward
please answer ASAP
Subject: MICROPROCESSOR
arrow_forward
Draw logic diagram for half adder and full adder circuit using Logisim Software
arrow_forward
In TTL, what are the two main kinds of output circuits?
arrow_forward
An Intel 8085 processor is executing the program
given below.
MVI A, 10H
MVI B, 10H
BACK NOP
:
ADD B
RLC
JNC BACK
HLT
The number of times that the operation NOP will
be executed is equal to
arrow_forward
(a) Consider the flipflop circuits below:
(i) Name the 2 circuits given in the figure. Explain how they are different from each
other.
a.
b.
(ii) Choose from the list the input that triggers data to travel to the next flipflop in a
counter.
A: Input at top NAND gate
B: Input at bottom NAND gate
C: Clock input clk
Q
arrow_forward
New Solution
arrow_forward
#2
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
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- Explain minimum 5 Boolean laws applicable in case of digital circuits.Explain N type semiconductorsarrow_forwardWrite an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.arrow_forwardQ1// What are the difference between Logic Devices and Programmable Logic Devices?arrow_forward
- ehcu.org/pluginfile 100% 10 / 11 locations, count how many times is 0 and how many times 1 is. Questions:- 1- Write a program in assembly language to perform the following logic ci BL CL DL [5100]- 2- How we can perform the NEG and NOT instructions by using different instructions. 3- Write the following program by using different instruction or instructions for each instruction on the program. MOV AL , 00 MOV BX , FFFF XOR CL , FF NEG BYTE PTR [DI] AND CX , LGarrow_forwardlogic circuit diagram for fabinaaci counter that gives output in fabinaaci sequence.upto 2 digits please mentions the gates and ics used in circuit.arrow_forwardQ3) A - Convert the Excess-3 to binary number : ( 110001011100.10001010)ex-3 B- convert each Gray code to binary: 1-( 011010001001)G 2-(59)Darrow_forward
- H.W: Reduce the combinational logic circuit in Figure below to a minimum form.arrow_forwardConvert the following numbers: 10101010 binary to hexadecimal Hexadecimal number BEAD to decimal Decimal number 129 to binary. Decimal 47802 to hexadecimal.arrow_forward6. Express the following gray code numbers as binary numhers: a) 100111100 b) 0110101 c) 10110010101 7. Express the following decimal numbers as 2421 codes: a) 168 b) 6735 c) 9021 d) 254arrow_forward
- Classify IC logic circuits based on the package density, i.e. the number of devices in an IC chip.arrow_forward5) Draw the circuit diagram using diode and write the truth table of a logic gates whose output will be the logical OR operation of two inputs.arrow_forwardElectrical Engineering Draw 2, 1 bit ALUS to create a basic 2 bit ALU. the carry out and carry in bits must ripple across. The ALU should subtract/add, logical NOR, logical AND, and logical OR. Draw out the adding logic circuitarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you