DC Cheat
DC Cheat
Unit 3
Q.Draw the logic diagram of half adder& full-adder and its truth table.
Half-adder
• The half-adder operation needs two binary inputs: augenda addend bits; and two binary outputs: sum and
carry.
• The truth table shown in Table Q.38.1 gives the relation between input and output variables for half-adder
operation.
Full adder
• A full-adder combinational is a circuit that forms the arithmetic sum of three input bits.
• It consists of three inputs and two outputs.
• Two of the input variables, denoted by A and B, represent the two significant bits to be added. The third input
Cin represents the carry from the previous lower significant position.
• The truth table for full-adder is shown in Table Q.38.2.
2
3
Unit 4
Q.Explain the function of a shift register. Give its application.
Function of a Shift Register:
Data Storage: A shift register can store a certain number of bits. Each storage element holds one bit of data.
Serial Data Shifting: It allows the movement of data, either left or right, by shifting bits through its stages.
Serial Input and Output: New data can be serially inputted into the register, shifting existing data to
accommodate the new bits. Similarly, data can be read out serially as it shifts through the register.
Types of Shift Registers:
Serial In – Serial Out (SISO): Only one bit can be entered or taken out at a time.
Serial In – Parallel Out (SIPO): Serial input, but multiple bits can be read out in parallel.
Parallel In – Serial Out (PISO): Multiple bits entered in parallel, but outputted serially.
Parallel In – Parallel Out (PIPO): Both input and output occur in parallel.
Applications of Shift Registers:
Serial-to-Parallel and Parallel-to-Serial Conversion: Useful for interfacing between serial and parallel data buses
in communication systems.
Shift Register Counters: Employed in digital counters and sequence generators, enabling various counting
sequences based on the shifting of bits.
Data Storage and Temporary Registers: Used in memory units for temporary storage and in microprocessors for
various operations.
Shift Registers in Serial Communication: Commonly used in serial data transmission for sending and receiving
data in a sequential manner.
Shift Registers in Display Systems: Utilized in controlling and refreshing LED or LCD display panels, enabling
the sequential presentation of data for each display element.
Shift Registers in Delay Circuits: Employed in signal processing and time-delay circuits due to their ability to
delay and shift data in a controlled manner.
7
Operation
Case 1: I_{f}S=R=0 and the clock pulse is applied, the output do not change, i.e. Q_{n+1}=Q_{n} This is
indicated in the first row of the truth table.
Case 2: f~S=0 R=1 and the clock pulse is applied, Q_{n+1}=0 This is indicated in the second row of the truth
table.
Case 3: If s=1 R=0 and the clock pulse is applied, Q_{n+1}=1 This is indicated in the third row of the truth
table.
Case 4: S=R=1 and the clock pulse is applied, the state of the flip-flip is undefined and therefore is indicated as
indeterminate in the fourth row of the truth table.
8
Ans. A group of flip-flops can be used to store a word, which is called register.
• The binary informa ion (data) in a register can be moved from stage to stage within the register or into or out
of the register upon application of clock pulses. Such registers are called ‘shift registers
Q.Explain with diagram the working of D type Flip-flop. Give its truth table.
Ans. In SR Flip-Flop, when both inputs are same the output either does not change or it is invalid
(Inputs \rightarrow00, no change and inputs 11, invalid).
• These input conditions can be avoided by making them complement of each other. This modified SR flip-flop
is known as D flip-flop.
• The D input goes directly to the S input, and its complement is applied to the R input. Due to these
connections, only two input conditions exists, either s=0 and R=1 or S=1 and R=0.
Truth Table
• The truth table for D flip-flop consider only these two conditions and it is as shown in the Fig. Q.8.1 (b)
•Qn+1 function follows D input at the positive going edges of the clock pulses. Hence the characteristic
equation for D flip-flop is Qn+1 = D.
9
Q.With the neat diagram, explain the working operation of 4-bit SISO.
In this shift register, data within the shift register is shifted left one bit position at each clock pulse. The data
input bit is loaded in the right most flip-flop
Fig. Q.3.2 shows serial-in serial-out shift-right register.
In this shift register, data within the shift register is shifted right one bit position at each clock pulse. The data
input bit is loaded in the left most flip-flop.
11
Unit 5
Q.Draw ASM chart for a 2 bit up-down counter having mode control input M. [8] M=1 Up counter. M = 0
Down Center.
13
I)State diagram is a pictorial representation of a bahaviour of a sequential circuit. The state is represented by the
circle, and the transition between states is indicated by directed lines connecting the circles. A directed line
cor.necting a circle with itself indicates that next state is same as present state. The binary number inside each
circle identifies the state represented by the circle. The directed lines are labelled with two binary numbers
separated by a symbol ‘/’. The input value that causes the state transition is labelled first and the output value
during the present state is labelled after the symbol ‘/’.
II)A special flowchart that has been developed specifically to define digital hardware algorithms is called an
Algorithmic State Machine (ASM) chart.The ASM chart resembles a conventional flow chart, but is interpreted
somewhat differently. A conventional flow chart describes the sequence of procedural steps and decision paths
for an algorithm without concern for their time relationship. An ASM chart describes the sequence of events as
well as the timing relationship between the states of a sequential controller and the events that occur while
going from one state to the next.
III)It is convenient to translate the information contained in the state diagram into a tabular form called state
synthesis table or simply state table.
It represents relationship between input, output and flip-flop states. It consists of three sections labeled present
state, next state, and output. The present state designates the state of flip-flops before the occurrence of aclock
pulse. The next state is state of theflip-flop after the application of a clock pulse, and the output section gives
the values of the output variables during the present state.
IV)To determine the flip-flop input functions. It is necessary to represent states in the state diagram using binary
values instead of alphabets.
• This procedure is known as state assignment.
• We must assign binary values to the states in such a way that it is possible to implement flip-flop input
functions using minimum logic gates.
14
Q.Draw ASM chart for 2 bit binary counter having one enable line E such That: E=1,
15
Q. Explain [8]
i) Rules for state assignments.
ii) State reduction
I)To determine the flip-flop input functions. It is necessary to represent states in the state diagram using binary
values instead of alphabets.
• This procedure is known as state assignment.
• We must assign binary values to the states in such a way that it is possible to implement flip-flop input
functions using minimum logic gates.
• There are two basic rules for making state assignments.
Rule 1: States having the same NEXT STATES for a given input condition should have assignments which can
be grouped into logically adjacent cells in a K-map.
Fig. Q.8.1 shows the example for Rule 1. As shown in the Fig. Q.8.1, there are four states whose next state is
same. Thus assignments states for these states are 100, 101, 110 and 111 which can be grouped logically into
adjacent cells in a K-inap.
Rule 2: States that are the NEXT STATES of a single state should have assignment which can be grouped into
logically adjacent cells in a K-map.Fig. Q.8.2 shows the example for Rule 2. As shown in the Fig. Q.8.2, for
state 000, there are four next states. These states are assigned as 100, 101, 110 and 111 so that they can be
grouped into logically adjacent cells in K-map and a table shows the state table.
II)The state reduction technique basically avoids the introduction states. Of redundant
The redu. Io in redundant states reduce the number of required flip-flops and logic gates, reducing the cost of
the final circuit.
The two states are said to be redundant or equivalent, ifevery possible set of inputs generate exactly same output
and same next state.
• When two states are equivalent, one of them can be removed without altering the input-output.relationship.
16
Unit 6
Q.Explain the classification of memories based on their principle of Operation.
• Broadly semiconductor memories are classified as volatile memories and non-volatile memories. Volatile
memories can retain their state as long as power is applied. On the other hand, non-volatile memories can hold
data even if power is turned off. Read/Write Memories (RWMs) are those memories, which allows both read
and write operations. They are used in applications where data has to change continuously. They are also used
for temporary storage of data. ROM memories allow only read operation. They are used to store monitor
programs and constants used in the program.
• The volatile memories which can hold data as long as power is ON are called Static RAMs (SRAMs).
Dynamic RAMS (DRAMs) stores the data as a charge on the capacitor and they need refreshing of charge on
the capacitor after every few milliseconds to hold the data even if power is ON. EPROM and EEPROM are
erasable memories in which the stored data can be erased and new data can be stored.
• The semiconductor memories are also classified as Bipolar and MOS memories depending upon the type of
transistors used to construct the individual cell.
17
• It consists of n-inputs, output buffer with m outputs, m product terms, m sum terms, input and output buffers.
• The product terms constitute a group of m AND gates and the sum terms constitute a group of m OR gates,
called OR matrix.
• Fuses are inserted between all n-inputs and their complement values to each of the AND gates.
• Fuses are also provided between the outputs of the AND gates and the inputs of the OR gates.
• The third set of fuses in the output inverters allows the output function to be generated either in the AND-OR
form or in the AND-OR-INVERT form.
• Input buffers are provided in the PLA to limit loading of the sources that drive the inputs.
• The driving capacity of PLA is increased by providing buffers at the output
Q.Explain the meaning of static and dynamic memories. State their Applications.
Static Memory:
Meaning: Static memory uses flip-flops or latches to store data as long as power is supplied. It doesn’t need
periodic refreshing like dynamic memory. Each memory cell typically consists of multiple transistors, making it
more complex compared to dynamic memory cells.
Operation: In static memory, once data is written, it remains stored until explicitly changed. It retains data as
long as power is supplied, making it faster and requiring lower power during normal operation.
Applications:
Cache Memory: Used as cache memory in CPUs due to its speed and ability to quickly access data.
Registers: Used in processors for storing temporary data and in control units.
High-Speed Buffers: Employed in high-speed data processing and applications requiring fast access times.
Dynamic Memory:
Meaning: Dynamic memory uses capacitors to store data as charge. It requires constant refreshing of data due to
charge leakage from the capacitors. Each memory cell typically consists of a single transistor and a capacitor,
making it simpler but requiring refresh circuits.
Operation: In dynamic memory, stored data slowly fades away due to charge leakage. Therefore, it requires
periodic refreshing to maintain data integrity, making it slower and consuming more power during normal
operation.
Applications:
Main Memory (RAM): Used as main memory in computers and digital devices due to its high density and cost-
effectiveness.
Mobile Devices: Commonly used in smartphones, tablets, and other portable devices due to its lower power
consumption and smaller footprint.
Embedded Systems: Used in embedded systems where cost and density are significant factors.
Comparison:
Speed: Static memory is faster as it doesn’t need refreshing, while dynamic memory is slower due to the need
for refresh cycles.
Density and Cost: Dynamic memory offers higher density and lower cost per bit compared to static memory.
Power Consumption: Static memory consumes less power during normal operation, whereas dynamic memory
consumes more power due to the need for refreshing.
21
Q.What is meant by ROM? What are the types of ROM? Compare between Them.
ROM stands for Read-Only Memory. It’s a type of non-volatile memory that stores data permanently and is
primarily used for storing instructions required during the boot-up process or for essential system functions in
electronic devices. Unlike RAM (Random Access Memory), ROM retains its data even when the power is
turned off.
Types of ROM:
Mask ROM (MROM): This type of ROM is manufactured with data permanently encoded during the chip
fabrication process. It’s called “mask” ROM because the data is created by masking and etching the silicon
wafers during production. Once programmed, the data is fixed and cannot be changed or reprogrammed. It’s
cost-effective for large-scale production but lacks flexibility.
Programmable ROM (PROM): PROM is initially blank, and users can program it once using a special device
called a PROM programmer. A PROM contains fuses that can be selectively burned or left intact to represent
binary data. Once programmed, the data becomes permanent and cannot be changed. PROM is less expensive
than mask ROM but has a limited programming cycle.
Erasable Programmable ROM (EPROM): EPROM allows multiple programming cycles. It uses a floating-
gate transistor that can be programmed and erased using ultraviolet light. EPROM chips are erased by exposing
them to UV light for a specified duration. While they offer flexibility in programming, the process of erasing
requires the chip to be removed from the system.
Electrically Erasable Programmable ROM (EEPROM or E2PROM): EEPROM, also known as E2PROM,
can be erased and reprogrammed electrically, meaning it doesn’t require UV light for erasure. EEPROM allows
data to be selectively erased and reprogrammed without removing the chip from the system. It’s more flexible
and user-friendly than EPROM but typically has slower write/erase cycles and lower storage density.
Comparison:
Permanence of Data: Mask ROM’s data is fixed during manufacturing, whereas PROM, EPROM, and
EEPROM allow data programming or erasing.
Reprogrammability: PROM is programmable only once, while EPROM and EEPROM offer multiple
programming/erasing cycles.
Erasure Methods: EPROM requires exposure to UV light for erasure, while EEPROM can be erased
electronically, making it more user-friendly.
Flexibility and Cost: EPROM and EEPROM offer greater flexibility for data changes but are costlier compared
to mask ROM or PROM.
Speed and Access: EPROM and EEPROM generally have slower access times compared to mask ROM due to
their erasure and reprogramming mechanisms.