




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
fundamental concept of digital logic
Typology: Essays (university)
1 / 8
This page cannot be seen from the preview
Don't miss anything!
Continuous Time and Discrete Time Signals ▲ A signal is said to be continuous when it is defined for all instants of time.
▲ A signal is said to be discrete when it is defined at only discrete instants of time.
Analog and Digital Signals: ▲ A signal is said to be analog if it has infinite number of possible amplitude values. It can be continuous or discrete time signals.
▲ A signal is said to be digital if it has finite number of possible amplitude values.
Analog System : Analog systems process analog signals which can take any value within a range. For example, the output from a speaker or a microphone. Digital System : Digital systems process digital signals which can take only a limited number of values, usually just two values. The general purpose digital computer is a best known example of digital system.
▲ Choosing the high-level H to represent logic-1 defines a positive logic system. Choosing the low-level L to represent logic-1 defines a negative logic system. Digital Operation : ▲ The operations performed in digital electronics are called digital operations. Some common digital operations are counting, arithmetic operation and logic operations. ▲ The counting operation is performed by “Counters”. ▲ The arithmetic operations are performed by arithmetic and logic unit and are addition, subtraction, multiplication and division and are accomplished with other digital circuits. ▲ The logic operations too are performed by ALU and they include inversion (NOT), AND and OR. ▲ Selecting a single output of multiple inputs (MULTIPLEXING) or giving out many outputs with single inputs (DEMULTIPLEXING) can also be treated as digital operation. ▲ Similarly, the process of encoding and decoding are also digital operations. These operations are performed by different data processing circuits like Multiplexes, de-multiplexes, encoder, decoder etc.
Integrated Circuits: An Integrated circuit is an associa�on (or connec�on) of various electronic devices such as resistors, capacitors and transistors fabricated to a semiconductor material such as silicon or germanium. It is also called as a chip or microchip. An IC can func�on as an amplifier, rec�fier, oscillator, counter, �mer and memory. Some�me ICs are connected to various other systems to perform complex func�ons. Types of ICs: ICs can be categorized into two types:
▲ The sign-magnitude approach represents a signed number in a natural manner. With 4 bits we can only represent numbers in the range − 7 ≤ x ≤ +7. In general, if there are n bits, then we can cover all numbers in the range ±(2n-1^ - 1). Note that with n - 1 bits, any value from 0 to 2 n-1^ - 1 can be represented. However, this approach leads to a confusion because there are two representations for the number zero (0000 means +0; 1000 means −0). ▲ In complement approach, positive numbers have the same representation as they do in the sign- magnitude representation. However, in this technique negative numbers are represented in a different manner. ▲ In the ones complement approach, a negative number, − x , is the complement of its positive representation. For example let us find the ones complement representation of 0100 2 (+4 (^) 10). The complement of 0100 is 1011, and this denotes the negative number -410. Table below summarizes 4-bit integers and their interpretations using ones complement numbers.
▲ The ones complement approach does not handle negative numbers naturally. In other words, if the number is negative (when the sign bit is 1), its magnitude is not obvious from its ones complement. To determine its magnitude, one needs to take its ones complement. For example, consider the number
negative, its magnitude cannot be obtained by directly looking at 110110. Instead, one needs to take the ones complement of 110110 to obtain 001001. The value of 001001 as a sign-magnitude number is +9. On the other hand, 110110 represent −9 in ones complement form. Like the sign-magnitude representation, the ones complement approach does not increase the range of numbers covered by a fixed number of bit patterns. For example, 4 bits cover the range −7 to +7. The same range is obtained with sign-magnitude representation. Note that the confusion of two distinct representations for zero exists in the ones complement approach. ▲ In twos complement method; positive integers are represented in the same manner as they are in the sign-magnitude method. In other words, if the sign bit is zero, the number is positive and its magnitude can be directly obtained by looking at the remaining n - 1 bits. However, a negative number -x can be represented in twos complement form as follows:
▲ From the above table, it can be concluded that:
▲ On the other hand, in an odd parity scheme, the parity bit is added in such a way that the number of 1's in the message and the parity bit is an odd number.
▲ For example, suppose a message to be transmitted is 0110. If even parity is used by the transmitting computer, the transmitted data along with the parity will be 00110. On the other hand, if odd parity is used, the data to be transmitted will be 10110.
▲ The parity computation can be implemented in hardware by using exclusive-OR gates. Usually for a given message, the parity bit is generated using either an even or odd parity scheme by the transmitting computer. The message is then transmitted along with the parity bit. At the receiving end, the parity is checked by the receiving computer. If there is a discrepancy, the data received will obviously be incorrect. ▲ With a single parity bit, an error due to a single bit change can be detected. Errors due to 2-bit changes during transmission will go undetected. In such situations, multiple parity bits are used. Unit-3 Combina�onal Logic Design 3.1 Basic Logic Gates: NOT, OR and AND ▲ Logic gates are electronic circuits that operate on one or more input signals to produce an output signal. ▲ Electrical signals such as voltages or currents exist throughout a digital system in either one of two recognizable values (bi-state 0 or 1). Voltage-operated circuits respond to two separate voltage ranges that represent a binary variable equal to logic 1 or logic 0. ▲ The graphics symbols used to designate the three types of gates AND, OR, and NOT are shown in Figure below:
Fig: Graphic Symbols
▲ These circuits, called gates, are blocks of hardware that produce a logic-1 or logic-0 output signal if input logic requirements are sa�sfied. ▲ Note that four different names have been used for the same type of circuits: digital circuits, switching circuits, logic circuits, and gates. ▲ AND and OR gates may have more than two inputs. NOT gate is single input circuit, it simply inverts the input.
Fig: Timing Diagram ▲ The two input signals X and Y to the AND and OR gates take on one of four possible combina�ons: 00, 01, 10, or
■ Implemen�ng AND Using only NAND Gates: The AND is replaced by a NAND gate with its output complemented by a NAND gate inverter.
■ Implemen�ng OR Using only NAND Gates: The OR gate is replaced by a NAND gate with all its inputs complemented by NAND gate inverters.
▲ Thus, the NAND gate is a universal gate since it can implement the AND, OR and NOT func�ons. NOR Gate is a Universal Gate: ▲ To prove that any Boolean func�on can be implemented using only NOR gates, we will show that the AND, OR, and NOT opera�ons can be performed using only these gates. ■ Implemen�ng an Inverter Using only NOR Gate: All NOR input pins connect to the input signal A gives an output A’.
■ Implemen�ng OR Using only NOR Gates: The OR is replaced by a NOR gate with its output complemented by a NOR gate inverter.
■ Implemen�ng AND Using only NOR Gates: The AND gate is replaced by a NOR gate with all its inputs complemented by NOR gate inverters.
▲ Thus, the NOR gate is a universal gate since it can implement the AND, OR and NOT func�ons.