Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Size: px
Start display at page:

Download "Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4"

Transcription

1 Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction Signal Comparison of Analog and Digital Signal Number Systems Decimal Number System Binary Number System Octal Number System Hexadecimal Number System Decimal to binary conversion: The steps to perform decimal to binary conversion are as follows Binary to Decimal conversion: The steps to perform Binary to Decimal conversion are as follows Binary to Hexadecimal conversion: The steps to perform Binary to Hexadecimal conversion are as follows Hexadecimal to Binary conversion: Decimal to Hexadecimal conversion: The steps to perform Decimal to Hexadecimal conversion are as follows Hexadecimal to Decimal conversion: The steps to perform Hexadecimal to Decimal conversion are as follows Binary to Octal conversion: F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 1

2 The steps to perform Binary to Octal conversion are as follows BCD or Binary Coded Decimal Table2. Representation Of Decimal Numbers, Binary and BCD numbers Binary to Gray Code and Viceversa Table3. Binary to Gray Code Binary to gray code conversion Gray code to binary conversion Arithmetic Operations of Binary Number Binary Addition Binary Subtraction Subtraction by 1 s Complement Subtraction by 2 s Complement Boolean Algebra De Morgan s Theorem or Law: Logic Gates Universal Gates Combinational circuits Definition of Combinational logic circuits Half Adder: Full Adder: Parallel Binary Adder Sequential logic circuits F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 2

3 4.11 Types of Sequential circuits There are two types of Sequential circuits they are FLIP-FLOPS: Triggering of Flip-Flops: D Flip-Flop: JK Flip-Flop: Data Register: Binary Counter and Frequency Divider: Multiplexers F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 3

4 4.1 Introduction In the modern world of electronics, the term Digital is generally associated with a computer because the term Digital is derived from the way computers perform operation, by counting digits. For many years, the application of digital electronics was only in the computer system. But now-a-days, Digital Electronics is used in many other applications. Following are some of the examples in which Digital electronics is heavily used. Industrial process control Military system Television Communication system Medical equipment Radar Navigation Signal Signal can be defined as a physical quantity, which contains some information. It is a function of one or more than one independent variables. There are two types of signals they are Analog Signal Digital Signal Analog Signal:- An analog signal is defined as the signal having continuous values. Analog signal can have infinite number of different values. In real world scenario, most of the things observed in nature are analog. Examples of the analog signals are as follows Temperature Pressure Distance Sound Voltage Current Power F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 4

5 The graphical representation of Analog Signal (Temperature) is shown in the Figure 1 Figure 1: Graphical Representation Of Analog Signal The circuits that process the analog signals are called as analog circuits or system. Examples of the analog system are as follows Filter Amplifiers Television receiver Motor speed controller Disadvantages:- The disadvantages of Analog System are as follows Less accuracy Less versatility More noise effect More distortion More effect of weather Digital Signal:- A digital signal is defined as the signal which has only a finite number of distinct values. Digital signals are not continuous signals. In the digital electronic calculator, the input is given with the help of switches. This input is converted into electrical signal which have two discrete values or levels. One of these may be called low level and another is F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 5

6 called high level. The signal will always be one of the two levels. This type of signal is called digital signal. The Graphical representation of the Digital Signal (Binary) is shown in the Figure 2. Figure 1: Graphical Representation Of Digital Signal The circuits that process the digital signals are called digital systems or digital circuits. Examples of the digital systems are as follows Registers Flip-flop Counters Microprocessors Advantages:- The Advantages of Digital System are as follows More accuracy More versatility Less distortion Easy communicate Possible storage of information F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 6

7 4.1.2 Comparison of Analog and Digital Signal S.N. Analog Signal Digital Signal 1 Analog signal has infinite values. Digital signal has a finite number of values. 2 Analog signal has a continuous nature. Digital signal has a discrete nature. 3 4 Analog signal is generated by transducers and signal generators. Example of analog signal sine wave, triangular waves. Digital signal is generated by Analog to Digital converter. Example of digital signal binary signal. 4.2 Number Systems A digital system can understand positional number system only where there are a few symbols called digits and these symbols represent different values depending on the position they occupy in the number. A value of each digit in a number can be determined using The digit The position of the digit in the number The base of the number system (where base is defined as the total number of digits available in the number system) Decimal Number System The number system that we use in our day-to-day life is the decimal number system. Decimal number system has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the successive positions to the left of the decimal point represents units, tens, hundreds, thousands and so on. Each position represents a specific power of the base (10). For example, the decimal number 1234 consists of the digit 4 in the units position, 3 in the tens position, 2 in the hundreds position, and 1 in the thousands position, and its value can be written as (1 1000) + (2 100) + (3 10) + (4 l) ( ) + ( ) + ( ) + (4 l0 0 ) = 1234 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 7

8 As a computer programmer or an IT professional, it is necessary to understand the following number systems which are frequently used in computers Binary Number System The Characteristics of Binary Number System are: Uses two digits, 0 and 1. It is also called base 2 number system Each position in a binary number represents a 0 power of the base (2). Example: 2 0 Last position in a binary number represents an x power of the base (2). Example: 2 x where x represents the last position - 1. Example Binary Number: Calculating Decimal Equivalent Steps Binary Number Decimal Number Step ((1 2 4 ) + (0 2 3 ) + (1 2 2 ) + (0 2 1 ) + (1 2 0 ))10 Step ( )10 Step Note: is normally written as Octal Number System The Characteristics of Octal Number System are as follows: Uses eight digits, 0,1,2,3,4,5,6,7. It is also called base 8 number system Each position in an octal number represents a 0 power of the base (8). Example: 8 0 Last position in an octal number represents an x power of the base (8). Example: 8 x where x represents the last position - 1. Example Octal Number F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 8

9 Calculating Decimal Equivalent Step Octal Number Decimal Number Step ((1 8 4 ) + (2 8 3 ) + (5 8 2 ) + (7 8 1 ) + (0 8 0 ))10 Step ( )10 Step Note: is normally written as Hexadecimal Number System The Characteristics of Hexadecimal Number System are as follows: Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Letters represents numbers starting from 10. A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Also called base 16 number system. Each position in a hexadecimal number represents a 0 power of the base (16). Example Last position in a hexadecimal number represents an x power of the base (16). Example 16 x where x represents the last position - 1. Example Hexadecimal Number: 19FDE16 Calculating Decimal Equivalent Step Binary Number Decimal Number Step 1 19FDE16 (( ) + ( ) + (F 16 2 ) + (D 16 1 ) + (E 16 0 ))10 Step 2 19FDE16 (( ) + ( ) + ( ) + ( ) + ( ))10 Step 3 19FDE16 ( )10 Step 4 19FDE Note 19FDE16 is normally written as 19FDE. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 9

10 4.2.5 Decimal to binary conversion: The steps to perform decimal to binary conversion are as follows 1. Consider the given decimal number before decimal point and divide successively by 2 until the number is not divisible by2 and at the same time write reminder for every division at the RHS side. 2. Write all the remainder from bottom to top gives the binary equivalent number of that given decimal number before decimal point. 3. For the conversion of fractional part of decimal number multiply it by 2 and write the carry or if there is any digit goes beyond fractional point take out the carry and multiply it until it reaches Zero or until sufficient accuracy is obtained. 4. Write all the carries generated from number of multiplication procedure from top to bottom to get the binary equivalent of decimal fractional part. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 10

11 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 11

12 4.2.6 Binary to Decimal conversion: The steps to perform Binary to Decimal conversion are as follows 1. Count the number of binary digits before fractional, binary or radix point and put the weight of each digit as 0, 1, 2... from right hand side to left hand side. Let N is the total number of bits or digits; the last digit has a weight of (N-!) 2. Count the number of binary digit after the radix or binary point and put the weight of each digit as-1,-2,-3..., from left hand side to right hand side. Let M is the number of bits, last bit or digit has weight equal to 2 -M. 3. Write the binary bit stream in generalized equation. 4. Finally add all the products, which give the number equivalent to the decimal number system. Example: Convert ( ) 2 in to decimal system OR ( ) 2 = (?) *2 4 0*2 3 1*2 2 1*2 1 0*2 0. 1*2-1 1*2-2 0* Hence the result is ( ) 2 = (22.75) 10 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 12

13 4.2.7 Binary to Hexadecimal conversion: The steps to perform Binary to Hexadecimal conversion are as follows 1. Group the given binary digit or bits from RHS to LHS before binary or radix point 4 bits at a time. If the last group is not equal to 4 bits prefix the required number of 0 s and the value will not change. 2. Write the corresponding Hexadecimal number for each group gives the Hexadecimal representation of binary digits. 3. Group the given digit or bit from LHS to RHS after of radix point 4 bits at a time. If the last group is not equal to 4 bits postfix the required number of 0 s and the value will not change. 4. Write the corresponding Hexadecimal equivalent number for each group gives the Hexadecimal representation of binary digits Hexadecimal to Binary conversion: Since 2 4 is equal to 16, the number given in Hexadecimal system is to be written in binary system by considering each Hexadecimal bit from LHS to RHS and is to be written in its equivalent binary number. If the number is separated by Hexadecimal or radix point in given Hexadecimal number then the Hexadecimal or radix point is placed exactly at that place in binary number. For the Hexadecimal number representation in binary number use only four binary bits. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 13

14 Example: (1ABC. 2F) 16 = (?) 2 Hence result is Hexadecimal 1 A B C. 2 F Decimal Binary (1ABC.2F) 16 = ( ) Decimal to Hexadecimal conversion: The steps to perform Decimal to Hexadecimal conversion are as follows 1. Consider the given decimal number before decimal point and divide successively by 16 until the number is not divisible by 16 and at the same time write reminder for every division at the RHS ( in this we may get reminder from 0to 9 and A to F). 2. Write all the remainder from bottom to top gives the binary equivalent number of that given decimal number before decimal point 3. For the conversion of fractional part of decimal number multiply it by 16 and write the carry or if there is any digit goes beyond fractional point take out the carry and multiply 4. it until it reaches Zero or until sufficient accuracy is obtained. 5. Write all the carries generated from number of multiplication procedure from top to bottom to get the Hexadecimal equivalent of decimal fractional part. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 14

15 Hexadecimal to Decimal conversion: The steps to perform Hexadecimal to Decimal conversion are as follows 1. Count the number of Hexadecimal digits before radix point and put the weight of each digit as 0, 1, 2... from right hand side to left hand side. Let N is the total number of bits or digits; the last digit has a weight of (N-!) 2. Count the number of Hexadecimal digit after the radix or binary point and put the weight of each digit as-1,-2,-3..., from left hand side to right hand side. Let M is the number of bits, last bit or digit has weight equal to 2 -M. 3. Use the generalized equation for converting it to decimal equivalent 4. Finally add all the products terms, which gives the number equivalent to the decimal number system. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 15

16 Example; Convert (ABC.CD) 16 in to decimal system OR (ABC.CD) 16 = (?)10 Hence result is (ABC.CD) 16 = ( )10 A B C. C D A*16 2 B*16 1 C*16 0. C*16-1 D* * * * * * Binary to Octal conversion: The steps to perform Binary to Octal conversion are as follows 1. Group the given binary digit or bits from RHS to LHS before binary or radix point 3 bits at a time. If the last group is not equal to 3 bits prefix the required number of 0 s and the value will not change. 2. Write the corresponding octal number for each group gives the octal representation of binary digits. 3. Group the given digit or bit from LHS to RHS after of radix point 3 bits at a time. If the last group is not equal to 3 bits postfix the required number of 0 s and the value will not change. 4. Write the corresponding octal equivalent number for each group gives the octal representation of binary digits. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 16

17 Number Systems Chart: Decimal Binary Octal Hexadecimal ` A B C F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 17

18 D E F Table 1. Number System Chart Hints for Conversion: Others to Decimal Decimal to Others Multiply Divide Binary to Hexadecimal Group of 4 Binary to Octal Group of 3 Hexadecimal to Octal -- Hexadecimal BinaryOctal If we come across with a large binary number, that has to be converted to decimal, we first convert number into Hexadecimal, then convert Hexadecimal to Decimal. 4.3 BCD or Binary Coded Decimal BCD or Binary Coded Decimal is that number system or code which has the binary numbers or digits to represent a decimal number. A decimal number contains 10 digits (0-9). Now the equivalent binary numbers can be found out of these 10 decimal numbers. In case of BCD the binary number formed by four binary digits, will be the equivalent code for the given decimal digits. In BCD we can use the binary number from only, which are the decimal equivalent from 0-9 respectively. Suppose if a number have single decimal digit then it s equivalent Binary Coded Decimal will be the respective four binary digits of that decimal number and if the number contains two decimal digits then it s equivalent BCD will be the respective eight binary bits of the given decimal number. Four for the first decimal digit and next four for the second decimal digit. It may be cleared from an example. Let, (12) 10 be the decimal number whose equivalent Binary coded decimal will be Four bits from L.S.B is binary equivalent of 2 and next four is the binary equivalent of 1. Table given below shows the binary and BCD codes for the decimal numbers 0 to 15. From the table below, we can conclude that after 9 the decimal equivalent binary number is of four bit but in case of BCD it is an eight bit number. This is the main difference between Binary F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 18

19 number and binary coded decimal. For 0 to 9 decimal numbers both binary and BCD is equal but when decimal number is more than one bit BCD differs from binary. Decimal number Binary number Binary Coded Decimal(BCD) Table2. Representation Of Decimal Numbers, Binary and BCD numbers 4.4 Binary to Gray Code and Viceversa Code is a symbolic representation of discrete information. Codes are of different types. Gray Code is one of the most important codes. It is a non-weighted code which belongs to a class of codes called minimum change codes. In this codes while traversing from one step to another step only one bit in the code group changes. In case of Gray Code two adjacent code numbers differs from each other by only one bit. The idea of it can be cleared from the table given below. As this code is not applicable in any types of arithmetic operations but it has some applications in analog to digital converters and in some input/output devices. Now let us concentrate on the table of Gray Code given below where we F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 19

20 can find the difference of binary code from gray code while traversing through the table for their respective decimal numbers. Table3. Binary to Gray Code Binary to gray code conversion Binary to gray code conversion is a very simple process. There are several steps to do this types of conversions. Steps given below elaborate on the idea on this type of conversion. 1. The M.S.B. of the gray code will be exactly equal to the first bit of the given binary number. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 20

21 2. Now the second bit of the code will be exclusive-or of the first and second bit of the given binary number, i.e if both the bits are same the result will be 0 and if they are different the result will be The third bit of gray code will be equal to the exclusive-or of the second and third bit of the given binary number. Thus the Binary to gray code conversion goes on. One example given below can make your idea clear on this type of conversion. Thus the equivalent gray code is Now concentrate on the example where the M.S.B. of the binary is 0 so for it will be 0 for the most significant gray bit. Next, the XOR of the first and the second bit is done. The bits are different so the resultant gray bit will be 1. Again move to the next step, XOR of second and third bit is again 1 as they are different. Next, XOR of third and fourth bit is 0 as both the bits are same. Lastly the XOR of fourth and fifth bit is 1 as they are different. That is how the result of binary to gray code conversion of is done whose equivalent gray code is Gray code to binary conversion Gray code to binary conversion is again very simple and easy process. Following steps can make your idea clear on this type of conversions. 1. The M.S.B of the binary number will be equal to the M.S.B of the given gray code. 2. Now if the second gray bit is 0 the second binary bit will be same as the previous or the first bit. If the gray bit is 1 the second binary bit will alter. If it was 1 it will be 0 and if it was 0 it will be This step is continued for all the bits to do Gray code to binary conversion. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 21

22 One example given below will make your idea clear. The M.S.B of the binary will be 0 as the M.S.B of gray is 0. Now move to the next gray bit. As it is 1 the previous binary bit will alter i.e it will be 1, thus the second binary bit will be 1. Next look at the third bit of the gray code. It is again 1 thus the previous bit i.e the second binary bit will again alter and the third bit of the binary number will be 0. Now, 4th bit of the given gray is 0 so the previous binary bit will be unchanged, i.e 4th binary bit will be 0. Now again the 5th grey bit is 1 thus the previous binary bit will alter, it will be 1 from 0. Therefore the equivalent Binary number in case of gray code to binary conversion will be (01001). F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 22

23 4.5 Arithmetic Operations of Binary Number The arithmetic operations of binary numbers includes namely, addition, subtraction of binary numbers Binary Addition Binary addition is preformed in the same manner as decimal addition. The rules of binary addition are as follows: = = = = 0 with a carry-over of 1 Carry-overs of binary addition are performed in the same manner as in decimal addition. With the help of the above rules addition of three or more binary numbers can be worked out but this has little use in digital computers. For addition of fractional binary numbers, the binary point of the two numbers are placed one below the other just like the decimal points and the usual rules are followed. Find the sum of the following numbers: i) and Solution: and Carry overs ii) and 111 Solution: and Carry overs F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 23

24 iii) and Solution: and Carry overs iv) and Solution: and Carry overs Binary Subtraction Binary subtraction is also similar to that of decimal subtraction with the difference that when 1 is subtracted from 0, it is necessary to borrow 1 from the next higher order bit and that bit is reduced by 1 (or 1 is added to the next bit of subtrahend) and the remainder is 1. Thus the rules of binary subtraction are as follows: F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 24

25 0-0 = = = = 1 with a borrow of 1 For fractional numbers, the rules of subtraction are the same with the binary point properly placed. Subtract the following numbers: i) 101 from 1001 Solution: 101 from Borrow ii) 111 from 1000 Solution: 111 from Borrow iii) from Solution: from Borrow F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 25

26 iv) from Solution: from Borrow Subtraction by 1 s Complement In subtraction by 1 s complement we subtract two binary numbers using carried by 1 s complement. The steps to be followed in subtraction by 1 s complement are: i) Write down 1 s complement of the subtrahend. ii) Add this with the minuend. iii) If the result of addition has a carry over then it is dropped and an 1 is added in the last bit. iv) If there is no carry over, then 1 s complement of the result of addition is obtained to get the final result and it is negative. Evaluate: (i) Solution: 1 s complement of is Hence Minued s complement of subtrahend Carry over The required difference is (ii) Solution: 1 s complement of is Hence Minued s complement Hence the difference is F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 26

27 (iii) Solution: 1 s complement of is Hence Minued s complement of subtrahend Carry over Hence the required difference is (iv) Solution: 1 s complement of is Hence the required difference is i.e Subtraction by 2 s Complement With the help of subtraction by 2 s complement method we can easily subtract two binary numbers. The operation is carried out by means of the following steps: (i) At first, 2 s complement of the subtrahend is found. (ii) Then it is added to the minuend. (iii) If the final carry over of the sum is 1, it is dropped and the result is positive. (iv) If there is no carry over, the two s complement of the sum will be the result and it is negative. The following examples on subtraction by 2 s complement will make the procedure clear: Evaluate: (i) Solution: The numbers of bits in the subtrahend is 5 while that of minuend is 6. We make the number of bits in the subtrahend equal to that of minuend by taking a `0 in the sixth place of the subtrahend. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 27

28 Now, 2 s complement of is ( ) i.e Adding this with the minuend Minuend s complement of subtrahend Carry over Result of addition After dropping the carry over we get the result of subtraction to be (ii) Solution: 2 s complement of is ( ) i.e Hence Minued s complement of subtrahend Result of addition As there is no carry over, the result of subtraction is negative and is obtained by writing the 2 s complement of i.e.( ) or Hence the difference is 100. (iii) Solution: 2 s complement of is Hence Minued s complement of subtrahend Carry over After dropping the carry over we get the result of subtraction as (iv) Solution: 2 s complement of is Hence Minued s complement of subtrahend Result of addition As there is no carry over the result of subtraction is negative and is obtained by writing the 2 s complement of Hence the required result is F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 28

29 4.7 Boolean Algebra Boolean algebra is a system of mathematical logic developed by George Boole. The Laws of Boolean algebra are used to simplify and evaluate logic expression. Operations like addition (+), Subtraction (-), Multiplication ( ) and Division ( ) are used to evaluate arithmetic expression. Logical expressions have their own operations: i.e. AND (.), OR(=) and NOT ( ' or ). Three basic binary operations are F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 29

30 4.7.1 De Morgan s Theorem or Law: De Morgan s theorem states that the inversion bar of an expression may be broken at any point and the operation at that point is replaced by its opposite (ie., AND is replaced by OR or vice versa). F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 30

31 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 31

32 4.8 Logic Gates A logic gate is an Electronic circuit which makes Logical decisions The most commonly used logic gates are NOT, OR, AND, NOR and NAND gates. In addition to these EX-OR and EX- NOR gates are other types, which can be constructed using Basic gates NOT, OR and AND. Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates. The basic operations are described below with the aid of truth tables. 1) AND gate The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are high. A dot (.) is used to show the AND operation i.e. A.B. Bear in mind that this dot is sometimes omitted i.e. AB F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 32

33 2)OR gate The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are high. A plus (+) is used to show the OR operation. 3)NOT gate The NOT gate is an electronic circuit that produces an inverted version of the input at its output. It is also known as an inverter. If the input variable is A, the inverted output is known as NOT A. This is also shown as A', or A with a bar over the top, as shown at the outputs. The diagrams below show two ways that the NAND logic gate can be configured to produce a NOT gate. It can also be done using NOR logic gates in the same way. 4)NAND gate This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a small circle on the output. The small circle represents inversion. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 33

34 5)NOR gate This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The outputs of all NOR gates are low if any of the inputs are high.the symbol is an OR gate with a small circle on the output. The small circle represents inversion. 6)EXOR gate The 'Exclusive-OR' gate is a circuit which will give a high output if either, but not both, of its two inputs are high. An encircled plus sign ( ) is used to show the EOR operation. 7)EXNOR gate The 'Exclusive-NOR' gate circuit does the opposite to the EOR gate. It will give a low output if either, but not both, of its two inputs are high. The symbol is an EXOR gate with a small circle on the output. The small circle represents inversion. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 34

35 4.8.1 Universal Gates The NAND and NOR gates are called universal functions since with either one the AND and OR functions and NOT can be generated. Note: A function in sum of products form can be implemented using NAND gates by replacing all AND and OR gates by NAND gates. A function in product of sums form can be implemented using NOR gates by replacing all AND and OR gates by NOR gates. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 35

36 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 36

37 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 37

38 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 38

39 4.9 Combinational circuits Logic circuits are divided into two types: 1. Combinational Logic circuit 2. Sequential Logic Circuit F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 39

40 4.9.1 Definition of Combinational logic circuits The circuit in which outputs depends on only present value of inputs as shown in Fig. So,it is possible to describe each output as a function of inputs by using Boolean expression. No memory element involved. No clock input. Circuit is implemented by using logic gates. The propagation delay depends on, delay of logic gates. Examples of combinational logic circuits are: Full adder, subtractor, decoder, code converter, multiplexers etc. COMBINATIONAL INPUT CIRCUIT OUTPUT Half Adder: Figure 3: Combinational Logic Circuit A logic circuit for the addition of two-one-bit binary numbers is referred to as an Half Adder. The Half Adder accepts two binary digits at its input and produces two binary digits at its output i.e., a SUM bit and a CARRY bit. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 40

41 4.9.2 Full Adder: Full Adder is a Combinational logic circuit which performs the addition of three binary bits. It consists of three inputs and two outputs F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 41

42 4.9.3 Parallel Binary Adder An n-bit adder is a circuit which adds two n-bit numbers say A&B. In addition an n-bit adder will have another single bit input which is added to the two numbers called the carry-in (Cin). The output of the n-bit adder is an n-bit SUM (S) and a CARRY- OUT (Cout) bit. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 42

43 Figure 4: Block diagrams of Half Adder and Full Adder: The carry out bit of one stage of full adder is used as carry-in i.e. Input to the next stage. In general, an n-bit binary parallel adder can be built out of n full adder blocks (or with n-1 full adder block and one half adder block). F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 43

44 4.10 Sequential logic circuits Sequential Circuit is the logic circuit in which output depends on present value of inputs at that instant of time and past history of circuit i.e. previous output as indicated in Fig. The past output is stored by using memory device. The key to build storage circuits is feedback. The internal data stored in circuit is called as state. Hence such circuits are also called Finite state machines. Devices in this class include flip-flops, counters, monostables, latches, and more complex devices such as microprocessors. Sequential logic devices usually respond to inputs when a separate trigger signal transitions from one level to another. The trigger signal is usually referred to as the clock(ck) signal. The clock signal can be a periodic square wave or an aperiodic collection of pulses. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 44

45 4.11 Types of Sequential circuits Sequential Logic Circuit There are two types of Sequential circuits they are 1.Synchronous: These circuits are controlled by a master clock Inputs are sampled at specific clock intervals & hence the state as well as outputs change at these clock intervals 2. Asynchronous: Are not controlled by any clock pulses Output responds immediately to change in inputs 4.12 FLIP-FLOPS:- A flip-flop is a sequential logic device that can perform this function. The flip-flop is called a bistable device, because it has two and only two possible stable output states: 1 (high) and 0 (low). It has the capability to remain in a particular output state (i.e., storing a bit) until input F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 45

46 signals cause it to change state. This is the basis of all semiconductor information storage and processing in digital computers; in fact, flip-flops perform many of the basic functions critical to the operation of almost all digital devices. Figure 5: Symbol Of SR flipflop A fundamental flip-flop, an SR flip-flop, is schematically shown in Figure5.S is the set input, R is the reset input, and Q and Q bar are the complementary outputs. Most flip-flops include both outputs, where one output is the inverse (NOT) of the other. The RS flip-flop operates based on the following rules: 1) As long as the inputs S and R are both 0, the outputs of the flip-flop remain unchanged. 2) When S is 1 and R is 0, the flip-flop is set to Q=1 and Q=0. 3) When S is 0 and R is 1, the flip-flop is reset to Q=0 and Q=1 4) It is not allowed (NA) to place a 1 on S and R simultaneously because the output will be unpredictable. A truth table is a valuable tool for describing the functionality of a flip-flop. The truth table for a basic RS flip-flop is given in Table. The first row shows the memory state where the flip-flop retains the last value set or reset. Qo is the value of the output Q before the indicated input conditions were established; 1 is logic high and 0 is logic low. The NA in the last row indicates that the input condition for that row is not allowed. Because we are precluded from applying the S=1, R=1 input condition, the RS flip-flop is seldom used in actual designs. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 46

47 Other more versatile flip-flops that avoid the NA limitation are presented in subsequent sections. To understand how flip-flops and other sequential logic circuits function, we will look at the internal design of an RS flip-flop illustrated in Figure. It consists of combinational logic gates with internal feedback from the outputs to the inputs of the NAND gates. Figure illustrates the timing of the various signals, which are affected by very short propagation delays through the NAND gates. Immediately after signal R transitions from 0 to 1, the inputs to the lower NAND gate are 0 and Q, which is still 1. This changes Q to 1 after a slight propagation delay Δt1. Feedback of Q to the top NAND gate drives Q to 0 after a slight delay Δt2. Now the flipflop is reset, and it remains in this state even after R returns to 0. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 47

48 The set operation functions in a similar manner. The propagation delays Δt1 and Δt2 are usually in the nanosecond range. All sequential logic devices depend on feedback and propagation delays for their operation Triggering of Flip-Flops:- Flip-flops are usually clocked; that is, a signal designated clock coordinates or synchronizes the changes of the output states of the device. This allows the design of complex circuits such as a microprocessor where all system changes are triggered by a common clock signal. This is called synchronous operation because changes in state are coordinated by the clock pulses. The outputs of different types of clocked flip-flops can change on either a positive edge or a negative edge of a clock pulse. These flip-flops are termed edge-triggered flip-flops. Positive edge triggering is indicated schematically by a small angle bracket on the clock input to the flip-flop (see Figure 6.8a ). Negative edge triggering is indicated schematically by a small circle and angle bracket on the clock input (see Figure 6.8b ). The function of the edge-triggered RS flip-flop is defined by the following rules: 1) If S and R are both 0 when the clock edge is encountered, the output state remains unchanged. 2) If S is 1 and R is 0 when the clock edge is encountered, the flip-flop output is set to 1. If the output is at 1 already, there is no change. 3) If S is 0 and R is 1 when the clock edge is encountered, the flip-flop output is reset to 0. If the output is at 0 already, there is no change. 4) S and R should never both be 1 when the clock edge is encountered. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 48

49 The truth table for a positive edge-triggered RS flip-flop is given in Table. The up-arrow in the clock (CK) column represents the positive edge transition from 0 to 1. The NA in the second to last row indicates that the input condition for that row is not allowed. As long as there is no positive edge transition, the values of S and R have no effect on the output as shown by the X symbols in the last row of the table. An example timing diagram is shown in Figure. The output is reset (Q=0) at the first positive edge of the clock signal, where R =1 and S=0, and the output is set (Q=1) at the second positive edge, where S=1 and R= 0. There are special devices that are not edge triggered in the way just described. An important example is called a latch. Its schematic symbol is shown in Figure. The output Q tracks the input D as long as CK is high. When a negative edge occurs (i.e., when CK goes low), the flip-flop will store (latch) the value that D had at the negative edge, and that value will be retained at the output. Because the output follows the input when the clock is high, we say the latch is transparent during this time. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 49

50 The latch can also be referred to as a positive-level-triggered device. The truth table for a latch is given in Table, and a timing diagram example is shown in Figure. Note how the output (Q) tracks the input (D) while the clock level is high (CK=1). The X in the last row of the table indicates that the value of D has no effect on the output as long as CK is low. Asynchronous Inputs:- Flip-flops may have preset and clear functions that instantaneously override any other inputs. They are called asynchronous inputs, because their effect may be asserted at any time. They are not triggered by a clock signal. The preset input is used to set or initialize the output Q of F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 50

51 the flip-flop to high (1). The clear input is used to clear or reset the output Q of the flip-flop to low (0). The small inversion symbols shown at the asynchronous inputs in Figure are typical of most devices and imply that the function is asserted when the asynchronous input signal is low. Such an input is referred to as an active low input. Both preset and clear should not be asserted simultaneously. Either of these inputs can be used to define the state of a flipflop after power-up; otherwise, at power-up the output of a flip-flop is uncertain D Flip-Flop:- The D flip-flop, also called a data flip-flop, has a single input D whose value is stored and presented at the output Q at the edge of a clock pulse. A positive edge-triggered D flip-flop is illustrated in Figure, and its truth table is given in Table. Unlike a latch, a D flip-flop does not exhibit transparency. The output changes only when triggered by the appropriate clock edge (in this case, a positive edge). F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 51

52 4.14 JK Flip-Flop:- The JK flip-flop is similar to the RS flip-flop where the J is analogous to the S (set) input and the K is analogous to the R (reset) input. The major difference is that the J and K inputs may both be high simultaneously. This state causes the output to toggle, which means the output changes value (i.e., a 1 would become 0, and a 0 would become 1). The schematic representation and truth table for a negative edge triggered JK flip-flop are shown in above Figure and Table.The first two rows of the table describe the preset or clear functions that can be used to initialize the output of the flip-flop. Recall that these features are active low and override the other inputs. The third row precludes presetting and clearing simultaneously. The symbol represents the negative edge of the clock signal, which causes the change in the F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 52

53 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 53

54 output. The last row describes the memory feature of the flip-flop in the absence of a negative edge. The JK flip flop has a wide range of applications, and all flip-flops can easily be constructed from it with proper external wiring. The T (toggle) flip-flop serves as a good example of this. The symbol for a positive edge-triggered T flip-flop and the equivalent JK flip-flop implementation are shown in Figure. The T flip-flop simply toggles the output every time it is triggered. The preset and clear functions are necessary to provide direct control over the output because the T input alone provides no mechanism for initializing the output value. The truth table is given in above Table Data Register:- Figure shows a 4-bit data register that uses negative edge-triggered D flip-flops to transfer data from four data lines to the outputs of four AND gates. It does this in two distinct steps. First, the data values Di are transferred to the outputs. Q of the flip-flops on the negative edge of the load signal. Then a pulse on the read line presents the data at the register outputs Ri of the AND gates. Data registers are used in microprocessors to hold data for arithmetic calculations. Data registers can be cascaded to store as many bits as are required Binary Counter and Frequency Divider:- Figure shows a 4-bit binary counter consisting of four negative edge-triggered toggle flipflops connected in sequence. The timing diagram is also shown for the first 10 input pulses. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 54

55 The four output bits Bi change according to the binary number counting sequence, counting from 0 (B 3 B 2 B 1 B 0 _ 0000), to 1 (B 3 B 2 B 1 B 0 =0001),etc., to 15 (B 3 B 2 B 1 B 0 =1111), and then returning back to 0. This circuit may also be used as a frequency divider. Output B0 is a divide-by-2 output because its frequency is 1/2 the input pulse train frequency. B1, B2, and B3 are divide-by _4, _ 8, and _ 16 outputs, respectively Multiplexers A multiplexer (MUX) is a device allowing one or more low-speed analog or digital input signals to be selected, combined and transmitted at a higher speed on a single shared medium or within a single shared device. Thus, several signals may share a single device or transmission conductor such as a copper wire or fiber optic cable. A MUX functions as a multiple-input, single-output switch. In telecommunications the combined signals, analog or digital, are considered a singleoutput higher-speed signal transmitted on several communication channels by a particular multiplex method or technique. With two input signals and one output signal, the device is referred to as a 2-to-1 multiplexer; with four input signals it is a 4-to-1 multiplexer; etc. F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 55

56 A multiplexer has 2 n data inputs n control inputs 1 output A multiplexer routes (or connects) the selected data input to the output. The value of the control inputs determines the data input that is selected. sel Io I1 out F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 56

57 F r e s h m a n B a s i c E l e c t r o n i c s T e a m ( ) 57

Fundamentals of Digital Design

Fundamentals of Digital Design Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric

More information

Synchronous Sequential Logic

Synchronous Sequential Logic 1 IT 201 DIGITAL SYSTEMS DESIGN MODULE4 NOTES Synchronous Sequential Logic Sequential Circuits - A sequential circuit consists of a combinational circuit and a feedback through the storage elements in

More information

Logic. Combinational. inputs. outputs. the result. system can

Logic. Combinational. inputs. outputs. the result. system can Digital Electronics Combinational Logic Functions Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends

More information

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 100 Q.1(a) Attempt any SIX of the following : [12] Q.1(a) (i) Derive AND gate and OR gate

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

LOGIC CIRCUITS. Basic Experiment and Design of Electronics Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Outline Combinational logic circuits Output

More information

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS 1) Given the two binary numbers X = 1010100 and Y = 1000011, perform the subtraction (a) X -Y and (b) Y - X using 2's complements. a) X = 1010100

More information

of Digital Electronics

of Digital Electronics 26 Digital Electronics 729 Digital Electronics 26.1 Analog and Digital Signals 26.3 Binary Number System 26.5 Decimal to Binary Conversion 26.7 Octal Number System 26.9 Binary-Coded Decimal Code (BCD Code)

More information

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 6 Following the slides of Dr. Ahmed H. Madian محرم 1439 ه Winter

More information

Sample Test Paper - I

Sample Test Paper - I Scheme G Sample Test Paper - I Course Name : Computer Engineering Group Marks : 25 Hours: 1 Hrs. Q.1) Attempt any THREE: 09 Marks a) Define i) Propagation delay ii) Fan-in iii) Fan-out b) Convert the following:

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D. Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Digital IC packages TTL (transistor-transistor

More information

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary Number System Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary BOOLEAN ALGEBRA BOOLEAN LOGIC OPERATIONS Logical AND Logical OR Logical COMPLEMENTATION

More information

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

PG - TRB UNIT-X- DIGITAL ELECTRONICS.   POLYTECHNIC-TRB MATERIALS SRIMAAN COACHING CENTRE-PG-TRB-PHYSICS- DIGITAL ELECTRONICS-STUDY MATERIAL-CONTACT: 8072230063 SRIMAAN PG - TRB PHYSICS UNIT-X- DIGITAL ELECTRONICS POLYTECHNIC-TRB MATERIALS MATHS/COMPUTER SCIENCE/IT/ECE/EEE

More information

Digital Electronics Circuits 2017

Digital Electronics Circuits 2017 JSS SCIENCE AND TECHNOLOGY UNIVERSITY Digital Electronics Circuits (EC37L) Lab in-charge: Dr. Shankraiah Course outcomes: After the completion of laboratory the student will be able to, 1. Simplify, design

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each) Subject Code: 17333 Model Answer Page 1/ 27 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model

More information

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date. Schedule Date Day Class No. Dec Mon 25 Final Review 2 Dec Tue 3 Dec Wed 26 Final Review Title Chapters HW Due date Lab Due date LAB 8 Exam 4 Dec Thu 5 Dec Fri Recitation HW 6 Dec Sat 7 Dec Sun 8 Dec Mon

More information

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing IT 204 Section 3.0 Boolean Algebra and Digital Logic Boolean Algebra 2 Logic Equations to Truth Tables X = A. B + A. B + AB A B X 0 0 0 0 3 Sum of Products The OR operation performed on the products of

More information

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 100 Q.1(a) Attempt any SIX of the following : [12]

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN UNIT I : BOOLEAN ALGEBRA AND LOGIC GATES PART - A (2 MARKS) Number

More information

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS Unit : I - V Unit : I Overview Fundamentals of Computers Characteristics of Computers Computer Language Operating Systems Generation of Computers 2 Definition of

More information

COMBINATIONAL LOGIC FUNCTIONS

COMBINATIONAL LOGIC FUNCTIONS COMBINATIONAL LOGIC FUNCTIONS Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends only on the present

More information

Sequential vs. Combinational

Sequential vs. Combinational Sequential Circuits Sequential vs. Combinational Combinational Logic: Output depends only on current input TV channel selector (-9) inputs system outputs Sequential Logic: Output depends not only on current

More information

Chapter 7 Logic Circuits

Chapter 7 Logic Circuits Chapter 7 Logic Circuits Goal. Advantages of digital technology compared to analog technology. 2. Terminology of Digital Circuits. 3. Convert Numbers between Decimal, Binary and Other forms. 5. Binary

More information

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER 7. Exercises 17/ / /2 2 0 CHAPTER 7 Exercises E7. (a) For the whole part, we have: Quotient Remainders 23/2 /2 5 5/2 2 2/2 0 /2 0 Reading the remainders in reverse order, we obtain: 23 0 = 0 2 For the fractional part we have 2

More information

Design of Sequential Circuits

Design of Sequential Circuits Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 17 EXAMINATION Subject Name: Digital Techniques Model Answer Subject Code: 17333 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given

More information

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept. WINTER 17 EXAMINATION Subject Name: Digital Techniques Model Answer Subject Code: 17333 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given

More information

DE58/DC58 LOGIC DESIGN DEC 2014

DE58/DC58 LOGIC DESIGN DEC 2014 Q.2 a. In a base-5 number system, 3 digit representations is used. Find out (i) Number of distinct quantities that can be represented.(ii) Representation of highest decimal number in base-5. Since, r=5

More information

Systems I: Computer Organization and Architecture

Systems I: Computer Organization and Architecture Systems I: Computer Organization and Architecture Lecture 6 - Combinational Logic Introduction A combinational circuit consists of input variables, logic gates, and output variables. The logic gates accept

More information

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science Sequential Logic Rab Nawaz Khan Jadoon DCS COMSATS Institute of Information Technology Lecturer COMSATS Lahore Pakistan Digital Logic and Computer Design Sequential Logic Combinational circuits with memory

More information

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of 27 WORKBOOK Detailed Eplanations of Try Yourself Questions Electrical Engineering Digital Electronics Number Systems and Codes T : Solution Converting into decimal number system 2 + 3 + 5 + 8 2 + 4 8 +

More information

ELEN Electronique numérique

ELEN Electronique numérique ELEN0040 - Electronique numérique Patricia ROUSSEAUX Année académique 2014-2015 CHAPITRE 3 Combinational Logic Circuits ELEN0040 3-4 1 Combinational Functional Blocks 1.1 Rudimentary Functions 1.2 Functions

More information

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3 Digital Logic: Boolean Algebra and Gates Textbook Chapter 3 Basic Logic Gates XOR CMPE12 Summer 2009 02-2 Truth Table The most basic representation of a logic function Lists the output for all possible

More information

DIGITAL LOGIC CIRCUITS

DIGITAL LOGIC CIRCUITS DIGITAL LOGIC CIRCUITS Introduction Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops Sequential Circuits Memory Components Integrated Circuits Digital Computers 2 LOGIC GATES

More information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Adders 2 Circuit Delay Transistors have instrinsic resistance and capacitance

More information

Digital Logic (2) Boolean Algebra

Digital Logic (2) Boolean Algebra Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh

More information

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits EE40 Lec 15 Logic Synthesis and Sequential Logic Circuits Prof. Nathan Cheung 10/20/2009 Reading: Hambley Chapters 7.4-7.6 Karnaugh Maps: Read following before reading textbook http://www.facstaff.bucknell.edu/mastascu/elessonshtml/logic/logic3.html

More information

UNIT II COMBINATIONAL CIRCUITS:

UNIT II COMBINATIONAL CIRCUITS: UNIT II COMBINATIONAL CIRCUITS: INTRODUCTION: The digital system consists of two types of circuits, namely (i) (ii) Combinational circuits Sequential circuits Combinational circuit consists of logic gates

More information

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Computers also need devices capable of Storing data and information Performing mathematical operations on such data Sequential Machines Introduction Logic devices examined so far Combinational Output function of input only Output valid as long as input true Change input change output Computers also need devices capable

More information

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR TOPIS: Logic Logic Expressions Logic Gates Simplifying Logic Expressions Sequential Logic (Logic with a Memory) George oole (85-864), English mathematician, oolean logic used in digital computers since

More information

CHW 261: Logic Design

CHW 261: Logic Design CHW 26: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed4 http://bu.edu.eg/staff/ahmedshalaby4# Slide Digital Fundamentals Digital Concepts Slide 2 What?

More information

Gates and Flip-Flops

Gates and Flip-Flops Gates and Flip-Flops Chris Kervick (11355511) With Evan Sheridan and Tom Power December 2012 On a scale of 1 to 10, how likely is it that this question is using binary?...4? What s a 4? Abstract The operation

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534 007 DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING DIGITAL

More information

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function Question Paper Digital Electronics (EE-204-F) MDU Examination May 2015 1. (a) represent (32)10 in (i) BCD 8421 code (ii) Excess-3 code (iii) ASCII code (b) Design half adder using only NAND gates. ( c)

More information

Sequential Circuits Sequential circuits combinational circuits state gate delay

Sequential Circuits Sequential circuits combinational circuits state gate delay Sequential Circuits Sequential circuits are those with memory, also called feedback. In this, they differ from combinational circuits, which have no memory. The stable output of a combinational circuit

More information

UNIVERSITI TENAGA NASIONAL. College of Information Technology

UNIVERSITI TENAGA NASIONAL. College of Information Technology UNIVERSITI TENAGA NASIONAL College of Information Technology BACHELOR OF COMPUTER SCIENCE (HONS.) FINAL EXAMINATION SEMESTER 2 2012/2013 DIGITAL SYSTEMS DESIGN (CSNB163) January 2013 Time allowed: 3 hours

More information

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES EC 216(R-15) Total No. of Questions :09] [Total No. of Pages : 02 II/IV B.Tech. DEGREE EXAMINATIONS, DECEMBER- 2016 First Semester ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN

More information

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value EGC22 Digital Logic Fundamental Additional Practice Problems. Complete the following table of equivalent values. Binary. Octal 35.77 33.23.875 29.99 27 9 64 Hexadecimal B.3 D.FD B.4C 2. Calculate the following

More information

Synchronous Sequential Circuit

Synchronous Sequential Circuit Synchronous Sequential Circuit The change of internal state occurs in response to the synchronized clock pulses. Data are read during the clock pulse (e.g. rising-edge triggered) It is supposed to wait

More information

vidyarthiplus.com vidyarthiplus.com vidyarthiplus.com ANNA UNIVERSITY- COMBATORE B.E./ B.TECH. DEGREE EXAMINATION - JUNE 2009. ELECTRICAL & ELECTONICS ENGG. - FOURTH SEMESTER DIGITAL LOGIC CIRCUITS PART-A

More information

Digital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1

Digital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1 Digital Systems Digital systems have such a prominent role in everyday life The digital age The technology around us is ubiquitous, that is we don t even notice it anymore Digital systems are used in:

More information

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution . (a) (i) ( B C 5) H (A 2 B D) H S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution ( B C 5) H (A 2 B D) H = (FFFF 698) H (ii) (2.3) 4 + (22.3) 4 2 2. 3 2. 3 2 3. 2 (2.3)

More information

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction Chapter 5 igital systems digital system is any machine that processes information encoded in the form of digits. Modern digital systems use binary digits, encoded as voltage levels. Two voltage levels,

More information

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques Subject Code: Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word

More information

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering Sp 6 Reg. No. Question Paper Code : 27156 B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2015. Second Semester Computer Science and Engineering CS 6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN (Common

More information

PART-A. 2. Expand ASCII and BCD ASCII American Standard Code for Information Interchange BCD Binary Coded Decimal

PART-A. 2. Expand ASCII and BCD ASCII American Standard Code for Information Interchange BCD Binary Coded Decimal PART-A 1. What is radix? Give the radix for binary, octal, decimal and hexadecimal Radix is the total number of digits used in a particular number system Binary - 2 (0,1) Octal - 8 (0 to 7) Decimal - 10

More information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Instructor: Mohsen Imani UC San Diego Slides from: Prof.Tajana Simunic Rosing

More information

Combinational Logic. By : Ali Mustafa

Combinational Logic. By : Ali Mustafa Combinational Logic By : Ali Mustafa Contents Adder Subtractor Multiplier Comparator Decoder Encoder Multiplexer How to Analyze any combinational circuit like this? Analysis Procedure To obtain the output

More information

Why digital? Overview. Number Systems. Binary to Decimal conversion

Why digital? Overview. Number Systems. Binary to Decimal conversion Why digital? Overview It has the following advantages over analog. It can be processed and transmitted efficiently and reliably. It can be stored and retrieved with greater accuracy. Noise level does not

More information

CSC9R6 Computer Design. Practical Digital Logic

CSC9R6 Computer Design. Practical Digital Logic CSC9R6 Computer Design Practical Digital Logic 1 References (for this part of CSC9R6) Hamacher et al: Computer Organization App A. In library Floyd: Digital Fundamentals Ch 1, 3-6, 8-10 web page: www.prenhall.com/floyd/

More information

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE Estd-1984 KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE 641 006 QUESTION BANK UNIT I PART A ISO 9001:2000 Certified 1. Convert (100001110.010) 2 to a decimal number. 2. Find the canonical SOP for the function

More information

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri MATH 1101 haalshehri@ksu.edu.sa 1 Introduction To Number Systems First Section: Binary System Second Section: Octal Number System Third Section: Hexadecimal System 2 Binary System 3 Binary System The binary

More information

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits. CS211 Computer Architecture Digital Logic l Topics l Transistors (Design & Types) l Logic Gates l Combinational Circuits l K-Maps Figures & Tables borrowed from:! http://www.allaboutcircuits.com/vol_4/index.html!

More information

I. Motivation & Examples

I. Motivation & Examples I. Motivation & Examples Output depends on current input and past history of inputs. State embodies all the information about the past needed to predict current output based on current input. State variables,

More information

Lecture 7: Logic design. Combinational logic circuits

Lecture 7: Logic design. Combinational logic circuits /24/28 Lecture 7: Logic design Binary digital circuits: Two voltage levels: and (ground and supply voltage) Built from transistors used as on/off switches Analog circuits not very suitable for generic

More information

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions? Digital Logic Appendix A Gates Combinatorial Circuits Sequential Circuits Other operations NAND A NAND B = NOT ( A ANDB) = AB NOR A NOR B = NOT ( A ORB) = A + B Truth tables What is the result of the operation

More information

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop EE210: Switching Systems Lecture 14: State Tables, Diagrams, Latches, and Flip Flop Prof. YingLi Tian Nov. 6, 2017 Department of Electrical Engineering The City College of New York The City University

More information

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra Digital Logic Appendix A Gates Combinatorial Circuits Sequential Circuits George Boole ideas 1854 Claude Shannon, apply to circuit design, 1938 (piirisuunnittelu) Describe digital circuitry function programming

More information

The Design Procedure. Output Equation Determination - Derive output equations from the state table

The Design Procedure. Output Equation Determination - Derive output equations from the state table The Design Procedure Specification Formulation - Obtain a state diagram or state table State Assignment - Assign binary codes to the states Flip-Flop Input Equation Determination - Select flipflop types

More information

Introduction to Digital Logic Missouri S&T University CPE 2210 Subtractors

Introduction to Digital Logic Missouri S&T University CPE 2210 Subtractors Introduction to Digital Logic Missouri S&T University CPE 2210 Egemen K. Çetinkaya Egemen K. Çetinkaya Department of Electrical & Computer Engineering Missouri University of Science and Technology cetinkayae@mst.edu

More information

Digital Logic Appendix A

Digital Logic Appendix A Digital Logic Appendix A Boolean Algebra Gates Combinatorial Circuits Sequential Circuits 1 Boolean Algebra George Boole ideas 1854 Claude Shannon, apply to circuit design, 1938 Describe digital circuitry

More information

ECE 341. Lecture # 3

ECE 341. Lecture # 3 ECE 341 Lecture # 3 Instructor: Zeshan Chishti zeshan@ece.pdx.edu October 7, 2013 Portland State University Lecture Topics Counters Finite State Machines Decoders Multiplexers Reference: Appendix A of

More information

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Save from:   cs. Logic design 1 st Class أستاذ المادة: د. عماد Save from: www.uotiq.org/dep cs Logic design 1 st Class أستاذ المادة: د. عماد استاذة المادة: م.م ميساء Contents Lectured One: Number system operation 1- Decimal numbers. 2- Binary numbers. 3- Octal numbers.

More information

Show that the dual of the exclusive-or is equal to its compliment. 7

Show that the dual of the exclusive-or is equal to its compliment. 7 Darshan Institute of ngineering and Technology, Rajkot, Subject: Digital lectronics (2300) GTU Question ank Unit Group Questions Do as directed : I. Given that (6)0 = (00)x, find the value of x. II. dd

More information

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering SEQUENTIAL CIRCUITS: LATCHES Overview Circuits require memory to store intermediate

More information

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B . (a). (b). (c) S.E. Sem. III [EXTC] igital Electronics Prelim Question Paper Solution ABC ABC ABC ABC ABC ABC ABC ABC = B LHS = ABC ABC ABC ABC ABC ABC ABC ABC But ( ) = = ABC( ) ABC( ) ABC( ) ABC( )

More information

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System? :33:3 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 3 Lecture #: Binary Number System Complement Number Representation X Y Why Binary Number System? Because

More information

Review for B33DV2-Digital Design. Digital Design

Review for B33DV2-Digital Design. Digital Design Review for B33DV2 The Elements of Modern Behaviours Design Representations Blocks Waveforms Gates Truth Tables Boolean Algebra Switches Rapid Prototyping Technologies Circuit Technologies TTL MOS Simulation

More information

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit Digital Techniques 1. Binary System The digital computer is the best example of a digital system. A main characteristic of digital system is its ability to manipulate discrete elements of information.

More information

CHAPTER 2 NUMBER SYSTEMS

CHAPTER 2 NUMBER SYSTEMS CHAPTER 2 NUMBER SYSTEMS The Decimal Number System : We begin our study of the number systems with the familiar decimal number system. The decimal system contains ten unique symbol 0, 1, 2, 3, 4, 5, 6,

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001-2005 Certified) Subject Code: 12069 SUMMER 13 EXAMINATION Model Answer Important Instructions to examiners: 1) The answers should

More information

Latches. October 13, 2003 Latches 1

Latches. October 13, 2003 Latches 1 Latches The second part of CS231 focuses on sequential circuits, where we add memory to the hardware that we ve already seen. Our schedule will be very similar to before: We first show how primitive memory

More information

Cs302 Quiz for MID TERM Exam Solved

Cs302 Quiz for MID TERM Exam Solved Question # 1 of 10 ( Start time: 01:30:33 PM ) Total Marks: 1 Caveman used a number system that has distinct shapes: 4 5 6 7 Question # 2 of 10 ( Start time: 01:31:25 PM ) Total Marks: 1 TTL based devices

More information

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture) COSC 243 Introduction to Logic And Combinatorial Logic 1 Overview This Lecture Introduction to Digital Logic Gates Boolean algebra Combinatorial Logic Source: Chapter 11 (10 th edition) Source: J.R. Gregg,

More information

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS: EKURHULENI TECH COLLEGE. No. 3 Mogale Square, Krugersdorp. Website: www. ekurhulenitech.co.za Email: info@ekurhulenitech.co.za TEL: 011 040 7343 CELL: 073 770 3028/060 715 4529 PAST EXAM PAPER & MEMO N3

More information

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

L4: Sequential Building Blocks (Flip-flops, Latches and Registers) L4: Sequential Building Blocks (Flip-flops, Latches and Registers) Acknowledgements: Lecture material adapted from R. Katz, G. Borriello, Contemporary Logic esign (second edition), Prentice-Hall/Pearson

More information

Philadelphia University Student Name: Student Number:

Philadelphia University Student Name: Student Number: Philadelphia University Student Name: Student Number: Faculty of Engineering Serial Number: Final Exam, First Semester: 2017/2018 Dept. of Computer Engineering Course Title: Logic Circuits Date: 29/01/2018

More information

Digital Electronic Meters

Digital Electronic Meters Digital Electronic Meters EIE 240 Electrical and Electronic Measurement May 1, 2015 1 Digital Signal Binary or two stages: 0 (Low voltage 0-3 V) 1 (High voltage 4-5 V) Binary digit is called bit. Group

More information

Digital Electronics Final Examination. Part A

Digital Electronics Final Examination. Part A Digital Electronics Final Examination Part A Spring 2009 Student Name: Date: Class Period: Total Points: /50 Converted Score: /40 Page 1 of 13 Directions: This is a CLOSED BOOK/CLOSED NOTES exam. Select

More information

Fundamentals of Boolean Algebra

Fundamentals of Boolean Algebra UNIT-II 1 Fundamentals of Boolean Algebra Basic Postulates Postulate 1 (Definition): A Boolean algebra is a closed algebraic system containing a set K of two or more elements and the two operators and

More information

Combinational Logic. Course Instructor Mohammed Abdul kader

Combinational Logic. Course Instructor Mohammed Abdul kader Combinational Logic Contents: Combinational and Sequential digital circuits. Design Procedure of combinational circuit. Adders: Half adder and Full adder. Subtractors: Half Subtractor and Full Subtractor.

More information

EE 209 Logic Cumulative Exam Name:

EE 209 Logic Cumulative Exam Name: EE 209 Logic Cumulative Exam Name: 1.) Answer the following questions as True or False a.) A 4-to-1 multiplexer requires at least 4 select lines: true / false b.) An 8-to-1 mux and no other logi can be

More information

DIGITAL LOGIC CIRCUITS

DIGITAL LOGIC CIRCUITS DIGITAL LOGIC CIRCUITS Digital logic circuits BINARY NUMBER SYSTEM electronic circuits that handle information encoded in binary form (deal with signals that have only two values, and ) Digital. computers,

More information

Chapter 5 Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic Chapter 5 Synchronous Sequential Logic Sequential circuit: A circuit that includes memory elements. In this case the output depends not only on the current input but also on the past inputs. Memory A synchronous

More information

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2. Digital Circuits 1. Inputs & Outputs are quantized at two levels. 2. inary arithmetic, only digits are 0 & 1. Position indicates power of 2. 11001 = 2 4 + 2 3 + 0 + 0 +2 0 16 + 8 + 0 + 0 + 1 = 25 Digital

More information

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits Logic and Computer Design Fundamentals Chapter 5 Arithmetic Functions and Circuits Arithmetic functions Operate on binary vectors Use the same subfunction in each bit position Can design functional block

More information

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1 Lab 3 Revisited Zener diodes R C 6.091 IAP 2008 Lecture 4 1 Lab 3 Revisited +15 Voltage regulators 555 timers 270 1N758 0.1uf 5K pot V+ V- 2N2222 0.1uf V o. V CC V Vin s = 5 V Vc V c Vs 1 e t = RC Threshold

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Simple Processor CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Digital

More information

ECE 2300 Digital Logic & Computer Organization

ECE 2300 Digital Logic & Computer Organization ECE 23 Digital Logic & Computer Organization Spring 28 Combinational Building Blocks Lecture 5: Announcements Lab 2 prelab due tomorrow HW due Friday HW 2 to be posted on Thursday Lecture 4 to be replayed

More information

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison Introduction to Computer Engineering CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison Chapter 3 Digital Logic Structures Slides based on set prepared by

More information

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10) ELEC 2200-002 Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering

More information