lab 11
.pdf
keyboard_arrow_up
School
University of Texas, Rio Grande Valley *
*We aren’t endorsed by this school
Course
2401
Subject
Electrical Engineering
Date
Dec 6, 2023
Type
Pages
7
Uploaded by ProfessorThunder12083
Experiment 11
Introduction:
Memory elements are used in computer memory and, more broadly, in sequential circuits. Any
smallest portion of such a system that has more than one stable state is referred to as a memory
element. A binary shift register, for example, has four flip-flops and 16 states, but each of its four
memory elements has just two states; a ternary shift register, on the other hand, has 81 states but
still has four memory elements, each with three states. It differs because combinational logic
cannot remember, output logic values are functions of inputs only Feedback is needed to be able
to remember a logic value, memory elements are needed most digital logic circuits to hold
(remember) logic values, 2 basic types of memory element. There are latches; Level-sensitive
inputs and Flip-flops: Edge-triggered on active edge of clock.
Procedure:
1.
The circuit on Figure 1 is built and tested by following the sequence on Table 1, from top
row to bottom row.
2.
The values for Q and Q’ are filled out.
3.
The circuit on Figure 2 is built and tested by following the sequence on Table 3, from top
row to bottom row.
4.
The values for Q and Q’ are filled out.
5.
The circuit on Figure 4 is built and tested by following the sequence on Table 5, from top row to
bottom row.
6.
The values for Q are filled out.
7.
The circuit on Figure 6 is built and tested by following the sequence on Table 7, from top
row to bottom row.
8.
The values for Q are filled out.
9.
The master-slave D flip-flop is demonstrate to the instructor.
Results:
This experiment contains multiple parts covering memory elements. Part one covers the basic SR
latch. This latch contains two NOR gates that wire into each other’s input. As for the other
inputs, there is a reset and a set input. The set input will create an output of one if it is active. The
reset input will create an output of zero if it is active. The purpose as to why the output of the
gates are wired into each other is to create a sort of a memory function. This means that the latch
will remember the output from the previous state. For instance, if the output was one from the
previous state, and reset is active in the current state, this will make the output zero. Another
example would be if the output from the previous state was one, and both inputs (set and reset)
are inactive in the current state, the output would still be one because it hasn’t been reset. In
other words, setting both S and R to low would result in no change to the output Q. If no change
occurs then the current output is the previous output. When the inputs S and R are equal to one,
then the output will be invalid.
Part two of the experiment covers the gated SR latch. In order to build this latch, it would need to
contain four NAND gates. The difference between a gated SR latch and a basic SR latch, is that a
gated latch includes a Clk input. The input signal Clk affects the output Q based on if it is either
HIGH or LOW. If Clk is HIGH, Q changes according to the input of S and R. If Clk is LOW, the
output will retain its previous value.
Part three of the experiment covers the gated D latch. To build this latch, an SR latch would need
to be built first. There are two inputs for the gated D latch, D and Clk. The D input would
connect to the S input. Clk would connect to the Clk input. Lastly, the input of R from the SR
gate would connect to NOT D. For this kind of latch, the definition would be: When Clk is
HIGH, Q(t+1) is equal to the binary value of D. When Clk is LOW, Q(t+1) is equal to Q(n). In
other words there is no change. This would be the summary of how the output Q would behave
in response to its inputs, Clk and D.
The final part of this experiment, part four, covers the master-slave D flip flop. In order to build
this flip flop, two gated D latches are needed. The schematic is important for this flip flop
because it is more complex compared to the other latches. Its complexity comes from the
combination of latches that were covered in previous parts. The first gated D is the master
component. Its inputs are the same as they would be for a gated D latch. For context, D connects
with D and Clk connects with Clk. The second gated D latch is the slave component. The D input
is the same as the master component but the Clk has the input of NOT Clk. The main difference
between a gated D latch and a Master-Slave D flip-flop is that a gated D latch changes its output
as long as Clk is HIGH. However, the Master-Slave D Flip-Flip proforms differently. For
instance, when Clk is HIGH, the master stores the value of D. When Clk is LOW, it produces a
steady output of what was stored.
In order to verify our data for this experiment, the Master-Slave D Flip Flop was demonstrated
using the truth table. It is important to note that the circuit needs to be reset so that it starts off
with its default settings. Also the process would need to follow a certain order because these
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
In the following statements
one of them is not true
A sequence of microinstructions is
called a microprogram, which is
stored in a memory.
In Microcontroller design the most 10
O functions are integrated into
package with CPU.
Length of microprocessors' data
word 4, 8, 16, 32, 64, & 128 bit
In Microprocessor design the CPU
and various 10 functions are packed
inside the ICs of CPU.
When instructions are fetched,
always instruction pointed by PC is
fetched into CPU
arrow_forward
Solve in 8086 microprocessor
arrow_forward
Computer architecture
1- A digital computer has a memory unit with 64 bits per word and
256G memory. The instruction set consists of 532 different operations.
All instructions have an opcode, general register, index register, mode,
future and address fields. This particular system includes 32 general-
purpose registers, 8 index register,4 modes, future and address.
a) How many bits are needed for the opcode?
b) How many bits are needed to specify the general and index registers?
c) How many bits are needed to specify the mode and the future?
d) How many bits are needed to specify the address?
e) What is the largest unsigned binary number that can be
arrow_forward
4. a. Design a Combinational circuit with three inputs, (A, B, and C) and four outputs, (U,
V, W, and X) with the 2- i/p NOR gate only for the following logic.
When the decimal value of the input is 4, 5, 6, or 7 the binary output is one less than the
input (input-1). When the decimal value of input is 0, 1, 2, or 3, the output is two greater
than (input +2) the input.
b. A majority circuit is a combinational circuit whose output is equal to 1 if the input
variables have more no. of 1's than 0's. The output is 0 otherwise. Design Using Boolean
laws, three input Majority circuits with P, Q, and R as input, output Function T and its
complement, Prove.
arrow_forward
Design a 5 bits input logic circuit that can be output F to go active (High) under the
following conditions:
- All inputs are logic 1"
- An odd number of inputs are logic 1"
- Non of the inputs are logic 1"
arrow_forward
assembly 8086
arrow_forward
Q2) Answer with True or False for each of the following:
A Demultiplexer is basically a logic circuit that has multiple inputs and a
single output.
True
False
The output lines of the encoder generate the binary codes corresponding
to the input values
True
False
The main types of sequential circuit are Synchronous and Asynchronous.
True
O False
arrow_forward
6) Write an 8086 assembly language program to multiply the contents of the registers CL & BL
by using repeated addition and store the result in AX.
0006
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
Identify the contents of the registers, the memory location (C055H), and the flags as the following instructions are executed in 8085 microprocessor.
A
H
L
S
Z
CY
M(C055H)
LXIH, C055H
MVI M,8AH
MVI A,76H
ADD M
STA C055H
HLT
arrow_forward
1- Write an 8086 assembly language program to multiply the contents of the registers CL & BL
by using repeated addition and store the result in AX.
2- Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the
AX register. Store the difference in register BX.
3- Write a short sequence of instructions that cube the 8-bit numbers found in DL. Load DL
with a 5 initially, and make sure that your results is a 16-bit number.
4- Determine the contents of the registers and the carry flag after execution the following
program:
MOV AX, 5
MOV BL, 7
MOV CX, 4823H
MUL BL
ААМ
OR AX, 3030H
OR CX, 0600H
AND CX, OFFFCH
XOR CX, 1000Н
ADD CH, CL
5- Determine the contents of the registers and the carry flag after execution the following
рrogram:
MOV AX, 198
MOV CX, 100
MOV DX, 0
DIV CX
AAM
ADD AX, 3030H
MOV BX, AX
XCHG AX, DX
AAM
ADD AX, 3030H
arrow_forward
Design a combinational circuit with 3-inputs and 1-output. The output is equal to logic-1 when the binary value of the input is less than 3. And the output is logic-0 otherwise.
arrow_forward
- The stack memory is addressed by a combination of the
plus
offset.
The PUSH and POP instructions always transfer
between
segment
-bit number
the stack and a register or memory location in the 8086 microprocessors.
For string instructions, DI always addresses data in the
segment.
The 8086 LOOP instruction decrements register
for a 0 to decide if a jump occurs
and tests it
arrow_forward
a) Design a logic circuit with three inputs A, B, C and an output that goes LOW only when A is HIGH while B and C are different. Draw and upload the circuit if you can, or at least describe it in words.
b) Which logic gates produce a 1 output in the disabled state?
c) Which logic gates pass the inverse of the input signal when these gates are enabled?
d) What is the normal resting state of the SET’ and RESET’ inputs of a latch circuit (the prime is same as bar)? What is the active state of each input?
e) What is the normal resting state of the NOR latch inputs? What is the active state?
arrow_forward
bit numbers and store lower byte of the result in accumulator A and higher byte in accumulator B..
Similarly lower byte of 2nd number is stored in R2 and higher byte in R3. Now subtract these two 16
numbers in the RAM such that lower byte of 1t number is stored in R0 and higher byte in RI.
manipulate 16 bits numbers as well. Write an assembly language program that stores two 16 bits
8051 is an 8-bit microcontroller that performs arithmetic on 8-bit numbers. However, we can
Question#3:
8051 is an 8-bit microcontroller that performs arithmetic on 8-bit numbers. Howeve
arrow_forward
i need the answer quickly
arrow_forward
Design a counter that counts 1-2-3-5-7
Please explain the following:state diagram
state table
simplification
Logic circuit
digital design
arrow_forward
Logic design
arrow_forward
Design a logic circuit that controls the passage of a signal A according to the following requirements:1. Output X will equal the value of A ( 0 or 1)when control inputs B is low and C is high.2. X will remain HIGH for all other input combinations.
A=MSB C=LSB
arrow_forward
Select a suitable example for sequential logic
circuit.
O None of the given choices
O hift registers
Decoder
O PLA
arrow_forward
The physical address of
the following memory
location specified in the
instruction MOV
[BX+0200H], AL is .........
(assume SS-5000H,
DS=6000H, ES=7000H,
BX=1000H, AL=10H)
71210H
61210H
71200H
61200H
51200H
arrow_forward
Electronics engineering.
arrow_forward
5. Provide the contents of RO and R1 registers after execution of the following code:
LDR R1, [RO, #4]!
Ox20008007 px88
Ox20008006 FOx79
Ox20008005 ex6A
Ox20008004 ex5B
Ox20008003 0x4C
Ox20008002 Ox3D
re = 0x20008000
Base memory
address
Ox20008001 ex2E
Ox20008000 0X1F
Memory Memory
address
data
RO
RI
arrow_forward
Create a state table and state diagram for the given sequential logic circuit as shown
below.
Xx1
J1
Q1
Ken0
K1
Q2
hen0
CIk L
arrow_forward
meinory
(b). Write an assembly language program in 8085 microprocessors to exchange conte
HL
register pair with DE register pair using PUSH and POP instructions.
3 | Page
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- In the following statements one of them is not true A sequence of microinstructions is called a microprogram, which is stored in a memory. In Microcontroller design the most 10 O functions are integrated into package with CPU. Length of microprocessors' data word 4, 8, 16, 32, 64, & 128 bit In Microprocessor design the CPU and various 10 functions are packed inside the ICs of CPU. When instructions are fetched, always instruction pointed by PC is fetched into CPUarrow_forwardSolve in 8086 microprocessorarrow_forwardComputer architecture 1- A digital computer has a memory unit with 64 bits per word and 256G memory. The instruction set consists of 532 different operations. All instructions have an opcode, general register, index register, mode, future and address fields. This particular system includes 32 general- purpose registers, 8 index register,4 modes, future and address. a) How many bits are needed for the opcode? b) How many bits are needed to specify the general and index registers? c) How many bits are needed to specify the mode and the future? d) How many bits are needed to specify the address? e) What is the largest unsigned binary number that can bearrow_forward
- 4. a. Design a Combinational circuit with three inputs, (A, B, and C) and four outputs, (U, V, W, and X) with the 2- i/p NOR gate only for the following logic. When the decimal value of the input is 4, 5, 6, or 7 the binary output is one less than the input (input-1). When the decimal value of input is 0, 1, 2, or 3, the output is two greater than (input +2) the input. b. A majority circuit is a combinational circuit whose output is equal to 1 if the input variables have more no. of 1's than 0's. The output is 0 otherwise. Design Using Boolean laws, three input Majority circuits with P, Q, and R as input, output Function T and its complement, Prove.arrow_forwardDesign a 5 bits input logic circuit that can be output F to go active (High) under the following conditions: - All inputs are logic 1" - An odd number of inputs are logic 1" - Non of the inputs are logic 1"arrow_forwardassembly 8086arrow_forward
- Q2) Answer with True or False for each of the following: A Demultiplexer is basically a logic circuit that has multiple inputs and a single output. True False The output lines of the encoder generate the binary codes corresponding to the input values True False The main types of sequential circuit are Synchronous and Asynchronous. True O Falsearrow_forward6) Write an 8086 assembly language program to multiply the contents of the registers CL & BL by using repeated addition and store the result in AX. 0006arrow_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
- Identify the contents of the registers, the memory location (C055H), and the flags as the following instructions are executed in 8085 microprocessor. A H L S Z CY M(C055H) LXIH, C055H MVI M,8AH MVI A,76H ADD M STA C055H HLTarrow_forward1- Write an 8086 assembly language program to multiply the contents of the registers CL & BL by using repeated addition and store the result in AX. 2- Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the AX register. Store the difference in register BX. 3- Write a short sequence of instructions that cube the 8-bit numbers found in DL. Load DL with a 5 initially, and make sure that your results is a 16-bit number. 4- Determine the contents of the registers and the carry flag after execution the following program: MOV AX, 5 MOV BL, 7 MOV CX, 4823H MUL BL ААМ OR AX, 3030H OR CX, 0600H AND CX, OFFFCH XOR CX, 1000Н ADD CH, CL 5- Determine the contents of the registers and the carry flag after execution the following рrogram: MOV AX, 198 MOV CX, 100 MOV DX, 0 DIV CX AAM ADD AX, 3030H MOV BX, AX XCHG AX, DX AAM ADD AX, 3030Harrow_forwardDesign a combinational circuit with 3-inputs and 1-output. The output is equal to logic-1 when the binary value of the input is less than 3. And the output is logic-0 otherwise.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you