EECS_140_Lab 7_four_bit_adder
.pdf
keyboard_arrow_up
School
University of Kansas *
*We aren’t endorsed by this school
Course
140
Subject
Electrical Engineering
Date
Jan 9, 2024
Type
Pages
9
Uploaded by ColonelElectronDolphin32
Lab 7: EECS 140 Four Bit Adder1
Adder with Display
Objectives
The objective of this laboratory exercise is for you to learn how to use modular design in VHDL to
create a real world application by implementing an adder unit into an FPGA chip and display the
addition result.
You will use Xilinx Vivado software to implement a 4-bit adder circuit. You will then connect the
result of the adder to the input of your display drivers (from the previous lab). Finally, you will
download the circuit design to the board and will test proper functionality of the circuit. An eight bit
slide switch will be used for implementing two 4-bit numbers as inputs, the addition will be outputted
on two seven segment displays.
Discussion
Click here to view the 4-bit full adder block diagram(better quality)
Figure 1: Flow chart for Four bit adder (140 students)
We will also introduce
modular design for VHDL
. This is a powerful tool to streamline FPGA design,
avoid code repetition and enhance portability, re-usability and abstraction.
For this lab, you will need to write VHDL modules for three components and then instantiate them in
the toplevel.vhd file. Look at examples in the modular VHDL tutorial attached above for syntax and
usage.
•
1 bit full adder: You will have to edit the bit_full_adder.vhd
file to include the expressions for sum and carry out of the 1
bit full adder.
•
display_driver: You have already done this is the last lab.
This component takes in a 4-bit input and outputs 7 bits
controlling the 7 segments.
•
LEDdisplay: This component is used to switch between the
outputs of display_driver1 and display_driver2 (refer the
block diagram attached above).
Your outputs on the 2 seven segments will range from 00 to 1E (00 to E1 for multiplier).
Tasks
VHDL files
Figure 2: Flow chart for Four bit multiplier(141 students)
Download and Add these source files to your new project project navigator. (Right click->Save link
as). Also change the file extension to .vhd. EECS 140 students download file 1-4, 141 students
download 1-3 and 5-7.
1.
bit_full_adder.vhd
2.
display_driver.vhd
3.
LEDdisplay.vhd
4.
toplevel.vhd
5.
multiplier flow chart (Honors) better quality
6.
bit_mult.vhd (Honors)
7.
toplevel.vhd (Honors)
Pre Lab
Please answer the following questions and submit to your TA at the start of the lab:
1.
(Previous Lab) Why did we have to negate the outputs
of the seven segment display?
2.
If we wanted the display to light up the left seven
segment LEDs instead of the right ones, what would we
change?
3.
(Current Lab) What's the basic component we will use
to implement our 4-bit adder?
4.
What kind of 4-bit adder are we designing?
5.
What is the significance of the "Anodes" (AN0, AN1,
AN2, and AN3) ?
Step 1: VHDL Tutorials
If you haven't done so yet, review the following tutorials for VHDL and mudular VHDL.
Pay special
attention the the modular VHDL tutorial, as from now on we will use modular VHDL almost
exclusively.
•
This
VHDL tutorial
will teach about the VHDL language, its
fundamentals, and how to represent a simple circuit in
VHDL.
•
This
Modular VHDL tutorial
will teach about the using
components in VHDL, and creating larger entities by
structural design.
Step 2: Ripple Carry Adder Design (bit_full_adder.vhd)
You should have a good idea of the
adder design concept
as well as some basic VHDL. The main
idea behind thisapproach is to start little, then build big. Hence:
* Use the classic truth table, Kmap, Sum-Of-Products approach to get the
equations for your outputs (S and Cout).
* Edit the bit_full_adder.vhd file with the equations for sum and carry out,
that is architecture (Similar to Lab1,2,3).
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
Draw logic diagram for half adder and full adder circuit using Logisim Software
arrow_forward
The practical inverters output voltage
normally is
OSinusoidal waveform
ONon-Sinusoidal waveform
OQuasi-square waveform
arrow_forward
Write an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.
arrow_forward
8. An 8-bit ADC with a 10.0 V reference has an input of 3.637 V
i. Determine the digital output.
ii.
What range of input voltages would produce this same output?
iii.
Suppose the output of the ADC is 101101012, calculate the input voltage.
arrow_forward
The required 7-segmrnt decoder should have 3-inputs (which are the bits of the binary number desired to
be designed, call them A,B,C), and 7 outputs (the 7 segments of the display unit which are a, b, c, d, e, f
& g).
8.
gf a b
t la Ob
d Dp
e d8c Dp
The 7-segment to be used is of common anode type. Consequently, any segment will be ON if its input
is Low, meaning that for displaying 0 the segments inputs (a,b,c,d,e,f.g) should be (0000001), or g will be
OFF while all the others are ON.
1- Make a table explaining the inputs and the corresponding outputs for the 6 combinations input
(000.101), assuming the other two combinations as don't care.
2-
Find the output as a function of the inputs (A,B,C) using K-map to minimize the expressions
3-
Show your design using 2-input, and 3-input NAND gates, and inverter.
arrow_forward
For the cct shown below find zt
and drow the equivalent cct
IPD
I
Cgdp
RE
Cgdn
CPD
VDD
Mp
Ma
HH
Figure 5. Schematic diagram of the Inv-TIA.
Cout
arrow_forward
A single phase half-bridge voltage source inverter (VSI) has a resistive load of 2.4Ω andinput dc voltage Vdc = 48V. The desired fundamental frequency of the load voltage is 50 Hz.Determine: RMS output voltage at fundamental frequency and voltage rating of switches
arrow_forward
In a simple, three-phase voltage-source inverter of the form shown in
Fig. 8.18, the direct voltage va in the link is 550 V. The frequency of the
inverter output is 200 Hz. Determine:
(a) the rms value of the fundamental component of the output voltage,
line to line and line to neutral, and
(b) the rms value of the actual output voltage line to line and line to
neutral.
arrow_forward
H.W: Reduce the combinational logic circuit in Figure below to a
minimum form.
arrow_forward
H.W :-
1) A four logic-signal A,B,C,D are being used to represent a
4-bit binary number with A as the LSB and D as the MSB. The
binary inputs are fed to a logic circuit that produces a logic 1
(HIGH) output only when the binary number is greater than
01102-610. Design this circuit.
2) repeat problem 1 for the output will be 0 (LOW) when the
binary input is less than 01112-710-
Saleem Lateef
arrow_forward
Briefly describe and compare the different types of Digital to Analog (D / A ) Converters.
for this topic describe the characteristics of some major Logic families and Analyze and describe different types of conversion circuits including A/D and D/A.
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
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
Q2/A) Design 8x1 multiplexer using 2x1 multiplexer?
Q2 B)Simplify the Logic circuit shown below using K-map then draw the
Simplified circuit?
Q2/C) design logic block diagram for adding 12 to 5 using full adder showing
the input for each adder?
arrow_forward
Consider the following schematic diagram: If R1 = 10 kO, and R2 = 10 kO, this circuit would be that of:
Select one:
O a. A non-inverting amplifier
O b. A buffer
C. An inverter
Activate Wind
Go to Senings to
O d. An inverting summer
arrow_forward
B6
arrow_forward
3d. will give thumbs up
arrow_forward
quick solution please
arrow_forward
) The input waveforms in are applied to logic circuit in figure below. Determine the output
waveforms.
B
G2
C
C
D
D
E
arrow_forward
Explain the function of the 7493 and 7490 ICs. Explain their inputs, outputs, mod number, etc. Provide detailed information about each IC.
arrow_forward
1.
(Figure 4 illustrates the basic blocks of MATLAB Simulink).
b)
1/
Integrator
34
Scope
Mux
Sum
E
Switch
Relational
Operator
ABAN SAAN MALAYSIA
UNIVERS ABAN
Rajah 4: Blok asas MATLAB Simulink
Figure 4: Basic blocks of MATLAB Simulink
a) (Design a model of single-phase half-bridge inverter circuit with resistive load. Those circuit contains 12 VDC input voltage, 2 units of 100 uF DC capacitors, 2 units of IGBT power switches
with anti-parallel diodes, a 0.1 mEl series filter inductor, a 200 uF shunt filter capacitor besides a load resistor of 12 S2. The predetermined switching frequency is 10 kHz, the system
frequency is 50 Hz, and the amplitude modulation index is 0.8 respectively. Use the provided basic MATLAB Simulink block diagrams at Figure 4 to build the model. The block diagrams model
must have a clear labels and symbols.)
(Sketch the AC output voltage and AC output current waveforms for a single full cycle of 20 ms.)
c)
(Determine the value of AC ouput voltage and AC output…
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
c. Sketch the zero-pole plot and the direct form II diagram of the completed design out
of part b.
d. Calculate and sketch the output sequence after feeding x [n] into this system.
arrow_forward
A. Write a Verilog HDL code for Verilog code for a for 6-bit unsigned up
counter
B. Write test bench code of the circuit in the figure:
DỊ40)
5-bit
Full Adder
5-bit
5-bit
Up - Counter
DFF
Ck
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
By using the design procedure for digital computers, design the following:i. Encoderii. Decoderiii. 4-bit comparator
arrow_forward
Design a logic circuit for decoder that accepts 3-bit input and displays alphabet “048” at the seven-
segment as illustrated at Figure 1 (a). The input-output mapping shown in Table 1 (a). Refer Figure
1(b) and Figure 1(c) for seven-segment display format showing arrangements of segments using
common anode connection. Show each steps clearly to produce the expressions and required
design.
[Rekabentuk litar logik untuk penyahkod yang menerima input 3-bit dan paparkan abjad "048" di tujuh-segmen
seperti digambarkan pada Rajah 1(a). Pemetaan masukan-keluaran ditunjukkan dalam Jadual 1(a). Rujuk Rajah
1(b) and Rajah 1(c) untuk format paparan tujuh-segmen yang menunjukkan susunan segmen menngunakan
sambungan 'common anode'. Tunjukkan setiap langkah dengan jelas untuk menghasilkan ungkapan dan reka bentuk
yang dikehendaki.]
Xs
X6
X7
DECODER
Figure 1(a)
[Rajah 1(a)]
a
b
с
d
e
f
g
a
80123456789
Figure 1(c)
[Rajah 1(c)]
g
Figure 1 (b)
[Rajah 1(b)]
b
с
DP
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- Draw logic diagram for half adder and full adder circuit using Logisim Softwarearrow_forwardThe practical inverters output voltage normally is OSinusoidal waveform ONon-Sinusoidal waveform OQuasi-square waveformarrow_forwardWrite an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.arrow_forward
- 8. An 8-bit ADC with a 10.0 V reference has an input of 3.637 V i. Determine the digital output. ii. What range of input voltages would produce this same output? iii. Suppose the output of the ADC is 101101012, calculate the input voltage.arrow_forwardThe required 7-segmrnt decoder should have 3-inputs (which are the bits of the binary number desired to be designed, call them A,B,C), and 7 outputs (the 7 segments of the display unit which are a, b, c, d, e, f & g). 8. gf a b t la Ob d Dp e d8c Dp The 7-segment to be used is of common anode type. Consequently, any segment will be ON if its input is Low, meaning that for displaying 0 the segments inputs (a,b,c,d,e,f.g) should be (0000001), or g will be OFF while all the others are ON. 1- Make a table explaining the inputs and the corresponding outputs for the 6 combinations input (000.101), assuming the other two combinations as don't care. 2- Find the output as a function of the inputs (A,B,C) using K-map to minimize the expressions 3- Show your design using 2-input, and 3-input NAND gates, and inverter.arrow_forwardFor the cct shown below find zt and drow the equivalent cct IPD I Cgdp RE Cgdn CPD VDD Mp Ma HH Figure 5. Schematic diagram of the Inv-TIA. Coutarrow_forward
- A single phase half-bridge voltage source inverter (VSI) has a resistive load of 2.4Ω andinput dc voltage Vdc = 48V. The desired fundamental frequency of the load voltage is 50 Hz.Determine: RMS output voltage at fundamental frequency and voltage rating of switchesarrow_forwardIn a simple, three-phase voltage-source inverter of the form shown in Fig. 8.18, the direct voltage va in the link is 550 V. The frequency of the inverter output is 200 Hz. Determine: (a) the rms value of the fundamental component of the output voltage, line to line and line to neutral, and (b) the rms value of the actual output voltage line to line and line to neutral.arrow_forwardH.W: Reduce the combinational logic circuit in Figure below to a minimum form.arrow_forward
- H.W :- 1) A four logic-signal A,B,C,D are being used to represent a 4-bit binary number with A as the LSB and D as the MSB. The binary inputs are fed to a logic circuit that produces a logic 1 (HIGH) output only when the binary number is greater than 01102-610. Design this circuit. 2) repeat problem 1 for the output will be 0 (LOW) when the binary input is less than 01112-710- Saleem Lateefarrow_forwardBriefly describe and compare the different types of Digital to Analog (D / A ) Converters. for this topic describe the characteristics of some major Logic families and Analyze and describe different types of conversion circuits including A/D and D/A.arrow_forwardehcu.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_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you