DB19. 4-Bit Parallel Adder/ Subtractor. Digital Lab Experiment Board Ver. 1.0
|
|
|
- Griffin Ward
- 9 years ago
- Views:
Transcription
1 4-Bit Parallel Adder/ Subtractor Digital Lab Experiment Board Ver. 1.0 QUALITY POLICY To be a Global Leader of Innovative, Competitive and Eco friendly Electronic Equipment, Software Products and Turn-key Solutions for Industry and Technology Training. We will achieve this by enhancing Customer Satisfaction based on Research, Modern manufacturing techniques and continuous improvement in Quality of the products and the Services. The key drivers to growth will be focus on Employees and Customers, Use of latest Technology, Intense Marketing, Service Support and High Ethical Practices. An ISO 9001: 2000 company , Electronic Complex, Pardeshipura INDORE , India. Tel.: Fax: [email protected] Web: Scientech Technologies Pvt. Ltd. 2
2 4-Bit Parallel Adder/ Subtractor Table of Contents 1. Introduction 4 2. Theory 5 3. Experiment 1 13 To study parallel adding of 4 bit with carry. 4. Experiment 2 16 To study parallel subtraction of 4 bit with carry. 5. Datasheet Warranty List of Service Centers List of Accessories 24 Introduction is a compact, easy to use digital logic experiment board. This is useful for the students to get acquainted with the basic arithmetic process (addition and subtraction) used in the microprocessors. This board is especially designed to be used with SCIENTECH Digital Lab ST2611 which has built in fixed and variable DC power supplies, clock source, logic high and low input facility with output indicators, logic probe, seven segment LEDs for direct readings List of Boards : Model DB01 DB02 DB03 DB04 DB05 DB06 DB07 DB08 DB09 DB10 DB11 DB12 DB13 DB15 DB16 DB17 DB21 DB27 DB28 DB29 DB30 DB31 DB32 DB34 DB35 Name Logic Gates Universal Gate- NAND/NOR EX-OR Gate Implementation Demorgan's Theorem EX-OR Gate Application Code Conversion (Binary to Gray & Gray to Binary) Code Conversion (BCD to Excess-3 code) Binary Adder -Subtractor Encoder - Decoder Multiplexer Demultiplexer Encoder- Decoder Shift register (4 bit SIPO) 4 Bit Synchronous Binary Counter BCD to 7- Segment Decoder Digital to Analog Converter (R-2R ladder) 3 Digit Event Counter Fiber Optic Digital Link Transfer Characteristics (TTL and CMOS Inverters) Monostable Multivibrator CMOS and Crystal Oscillator Adder/ Subtracter (4-Bit/8-Bit) Decoder/Demultiplexer Modulo-N programmable counter 4 Bit Magnitude Comparator 4 Bit Shift Register and many more Scientech Technologies Pvt. Ltd. 3 Scientech Technologies Pvt. Ltd. 4
3 Theory Before going into the architecture of a binary adder/subtractor, it is necessary at this point to understand how positive and negative numbers are represented in binary notation. Basic Concepts Behind the Binary System : To understand binary numbers, begin by recalling elementary school math. When we first learned about numbers, we were taught that, in the decimal system, things are organized into columns: H T O Such that "H" is the hundreds column, "T" is the tens column, and "O" is the ones column. So the number "193" is 1-hundreds plus 9-tens plus 3- ones. Years later, we learned that the ones column meant 10^0, the tens column meant 10^1, the hundreds column 10^2 and so on, such that 10^2 10^1 10^ The number 193 is really {(1*10^2) + (9*10^1) + (3*10^0)}. As you know, the decimal system uses the digits 0-9 to represent numbers. If we wanted to put a larger number in column 10^n (e.g., 10), we would have to multiply 10*10^n, which would give 10^ (n+1), and be carried a column to the left. For example, putting ten in the 10^0 column is impossible, so we put a 1 in the 10^1 column, and a 0 in the 10^0 column, thus using two columns. Twelve would be 12*10^0, or 10^0(10+2), or 10^1+2*10^0, which also uses an additional column to the left (12). The binary system works under the exact same principles as the decimal system, only it operates in base 2 rather than base 10. In other words, instead of columns being They are 10^2 10^1 10^0 2^2 2^1 2^0 Instead of using the digits 0-9, we only use 0-1 (again, if we used anything larger it would be like multiplying 2*2^n and getting 2^n+1, which would not fit in the 2^n column. Therefore, it would shift you one column to the left. For example, "3" in binary cannot be put into one column. The first column we fill is the right-most column, which is 2^0, or 1. Since 3>1, we need to use an extra column to the left, and indicate it as "11" in binary (1*2^1) + (1*2^0). Examples : What would the binary number 1011 be in decimal notation? Try converting these numbers from binary to decimal: Remember : 2^4 2^3 2^2 2^1 2^ Binary Addition : Consider the addition of decimal numbers : We begin by adding 3+8=11. Since 11 is greater than 10, a one is put into the 10's column (carried), and a 1 is recorded in the one's column of the sum. Next, add {(2+4) +1} (the one is from the carry) =7, which is put in the 10's column of the sum. Thus, the answer is 71. Binary addition works on the same principle, but the numerals are different. Begin with one-bit binary addition : Scientech Technologies Pvt. Ltd. 5 Scientech Technologies Pvt. Ltd. 6
4 carries us into the next column. In decimal form, 1+1=2. In binary, any digit higher than 1 puts us a column to the left (as would 10 in decimal notation). The decimal number "2" is written in binary notation as "10" (1*2^1) + (0*2^0). Record the 0 in the ones column, and carry the 1 to the twos column to get an answer of "10." In our vertical notation, The process is the same for multiple-bit binary numbers: Step one : Column 2^0: 0+1=1.Record the 1. Temporary Result: 1; Carry: 0 Step two : Column 2^1: 1+1=10. Record the 0, carry the 1.Temporary Result: 01; Carry: 1 Step three : Column 2^2: 1+0=1 Add 1 from carry: 1+1=10. Record the 0, carry the 1.Temporary Result: 001; Carry: 1 Step four : Column 2^3: 1+1=10. Add 1 from carry: 10+1=11.Record the 11. Final result: Alternately : 11 (carry) Always remember : 0+0=0 1+0=1 1+1=10 Try a few examples of binary addition: Two s Complement Representation : Two's complement is the most popular method of signifying negative integers in computer science. It is also an operation of negation (converting positive to negative numbers or vice versa) in computers which represent negative numbers using two's complement. Its use is ubiquitous today because it doesn't require the addition and subtraction circuitry to examine the signs of the operands to determine whether to add or subtract, making it both simpler to implement and capable of easily handling higher precision arithmetic. As well, 0 has only a single representation, obviating the subtleties associated with negative zero. In an n-bit binary number, the most significant bit is usually the 2 n-1 s place. But in the two's complement representation, its place value is negated; it becomes the 2 n-1 s place and is called the sign bit. If the sign bit is zero, the value is non-negative, the same as an ordinary binary number. But if the sign bit is 1, the value is negative. To negate a two's complement number, invert all the bits then add 1 to the result. If all bits are 1, the value is 1. If the sign bit is 1 but the rest of the bits are 0, the value is the most negative number, 2 n-1 for an n-bit number. The absolute value of the most negative number cannot be represented with the same number of bits. A two's complement 8-bit binary numeral can represent every integer in the range 128 to If the sign bit is 0, then the largest value that can be stored in the remaining seven bits is 2 7 1, or 127. Using two's complement to represent negative numbers allows only one representation of zero, and to have effective addition and subtraction while still having the most significant bit as the sign bit. Scientech Technologies Pvt. Ltd. 7 Scientech Technologies Pvt. Ltd. 8
5 Calculating two's complement : In finding the two's complement of a binary number, the bits are inverted, or "flipped", by using the bitwise NOT operation; the value of 1 is then added to the resulting value. Bit overflow is ignored, which is the normal case with zero. For example, beginning with the signed 4-bit binary representation of the decimal value 5: (5) 10 = 0101 The first bit is 0, so the value represented is indeed a positive 5. To convert to -5 in two's complement notation, the bits are inverted; 0 becomes 1, and 1 becomes 0: 1010 At this point, the numeral is the ones' complement of the decimal value 5. To obtain the two's complement, 1 is added to the result, giving: 1011 ( 5) The result is a signed binary numeral representing the decimal value 5 in two's complement form. The most significant bit is 1, so the value is negative. The two's complement of a negative number is the corresponding positive value. For example, inverting the bits of 5 (above) gives: 0100 And adding one gives the final value: 0101 (5) The decimal value of a two's complement binary number is calculated by taking the value of the most significant bit, where the value is negative when the bit is one, and adding to it the values for each power of two where there is a one. Example: 1011 ( 5) = = ( 2^7 + 2^6 +...) = 5 Note that the two's complement of zero is zero: inverting gives all ones, and adding one changes the ones back to zeros (the overflow is ignored). Also the two's complement of the most negative number representable (e.g. a one as the sign bit and all other bits zero) is itself. This happens because the most negative number's "positive counterpart" is occupied by "0", which gets classed as a positive number in this argument. Hence, there appears to be an 'extra' negative number. A more formal definition of two's complement negative number (denoted by N* in this example) is derived from the equation N * = 2 n N, where N is the corresponding positive number and n is the number of bits in the representation. For example, to find the 4 bit representation of -5: Hence : N (base 10) = 5, therefore N (base 2) = 0101 n = 4 N * = 2 n N = [2 4 ]base = = 1011 N.B. You can also think of the equation as being entirely in base 10, converting to base 2 at the end, e.g.: N * = 2 n N = = [11]base10 = [1011]base2 Obviously, "N*... = 11" isn't strictly true but as long as you interpret the equals sign as "is represented by", it is perfectly acceptable to think of two's complements in this fashion. Subtration : Subtration in binary is done by adding two's complement numbers requires no special processing if the operands have opposite signs: the sign of the result is determined automatically. For example, subtracting 5 from 15: Which become s complement of 5 is 1 s complemet of 5 = Scientech Technologies Pvt. Ltd. 9 Scientech Technologies Pvt. Ltd. 10
6 Now adding them will give disierd results. 111 (carry) 1111 (15) (-5) 1010 (10) This process depends upon restricting to 4 bits of precision; a carry to the (nonexistent) 4th most significant bit is ignored, resulting in the arithmetically correct result of 10. The last two bits of the carry row (reading right-to-left) contain vital information: whether the calculation resulted in an arithmetic overflow, a number too large for the binary system to represent (in this case greater than 4 bits). An overflow condition exists when a carry (an extra 1) is generated into but not out of the far left sign bit, or out of but not into the sign bit. As mentioned above, the sign bit is the leftmost bit of the result. In other terms, if the last two carry bits (the ones on the far left of the top row in these examples) are both 1's or 0's, the result is valid; if the last two carry bits are "1 0" or "0 1", a sign overflow has occurred. Conveniently, an XOR operation on these two bits can quickly determine if an overflow condition exists. Computers usually use the method of complements to implement subtraction. But although using complements for subtraction is related to using complements for representing signed numbers, they are independent; direct subtraction works with two's complement numbers as well. Like addition, the advantage of using two's complement is the elimination of examining the signs of the operators to determine if addition or subtraction is needed. The Adder / subtractor : We can connect full adders as shown in the figure 1 given below to add or subtract binary numbers. The circuit is laid out from right to left, similar to the way we add binary numbers. Therefore the least significant column is on the right, and the most significant column is on the left. The boxes labeled FA are full adders. The Carry out from each full adder is the carry in to the next higher full adder. The numbers being processed are A 3 A 2 A 1 A 0 and B 3 B 2 B 1 B 0, while the answer is S 3 S 2 S 1 S 0. With 4-bit arithmetic, the final carry is ignored for reasons given earlier. With 8-bit arithmetic, the final carry is the carry into the addition of the upper bytes. Addition : During an addition, the Add/Sub signal is deliberately kept in the low state, i.e. at 0 level. Therefore the binary number B 3 B 2 B 1 B 0 passes through the controlled inverter with no change. The full adder then produces the correct sum. Subtraction : During a subtraction, the Add/Sub signal is deliberately kept in the high state, i.e. at 1 level. Therefore the controlled inverter produces the one s complement of B 3 B 2 B 1 B 0. Furthermore, because Sub is the carry in to the first full adder, which is equivalent to adding 1 to the one s complement of B 3 B 2 B 1 B 0, and thus producing the correct result. This provide the 2 s complement of B 3 B 2 B 1 B 0 which being added to A 3 A 2 A 1 A 0. Fig.1.1 Fig. 1 Scientech Technologies Pvt. Ltd. 11 Scientech Technologies Pvt. Ltd. 12
7 Objective : To study 4 Bit Parallel adder. Apparatus required : 1. Digital board,. 2. DC Power Supply of +5V. Logic diagram : (Logic 1 = +5V & Logic 0= GND) Experiment 1 Fig. 2 Procedure : To Study the Addition procedure of 4 Bit Parallel Adder precede as follow : 1. Connect +5V and ground to their indicated position on experiment board from DC power supply. 2. For the Addition of 8 and 3 i.e Set A 4 A 3 A 2 A 1 at the binary value of 8; i.e respectively 4. Set B 4 B 3 B 2 B 1 at the binary value of 3; i.e respectively 5. Set the Add/Sub Switch at Add i.e. 0 level or low level 6. Switch ON the power supply. 7. Observe output on LED and match it with the truth table Table1 given in the theory. 8. Note the LED output for S 4 S 3 S 2 S 1 and carry bit. 9. Note the output at observation table. 10. The output will be 11 that is i.e. output at S 4 S 3 S 2 S 1 will be equal to 1011 and carry will be Repeat above steps 2-10 for different values Calculation : 1. Add 12 and Carry (1) (0) (1) (1) +2 0 (0) = = 22 Scientech Technologies Pvt. Ltd. 13 Scientech Technologies Pvt. Ltd. 14
8 2. Add 15 and carry (1) (0) (0) (0) +2 0 (1) = = 17 Observation table : Objective : To study 4 Bit Parallel Subtractor. Apparatus required : 1. Digital board,. 2. DC Power Supply of +5V. Logic diagram : (Logic 1 = +5V & Logic 0= GND) Experiment 2 S. No. A 4 A 3 A 2 A 1 B 4 B 3 B 2 B 1 Carry S 4 S 3 S 2 S Fig. 3 Scientech Technologies Pvt. Ltd. 15 Scientech Technologies Pvt. Ltd. 16
9 Procedure : To Study the Addition procedure of 4 Bit Parallel Subtractor precede as follow : 1. Connect +5V and ground to their indicated position on experiment board from DC power supply. 2. For the Subtraction of 8 and 3 i.e Set A 4 A 3 A 2 A 1 at the binary value of 8; i.e respectively 4. Set B 4 B 3 B 2 B 1 at the binary value of 3; i.e respectively 5. Set the Add/Sub Switch at Sub i.e. 1 level or High level 6. Switch ON the power supply. 7. Observe output on LED and match it with the truth table Table1 given in the theory. 8. Note the LED output for S 4 S 3 S 2 S 1 and carry bit which also use as Borrow bit. 9. Note the output at observation table. 10. The output will be 5 that is i.e. output at S 4 S 3 S 2 S 1 will be equal to 0101 and carry will be Repeat above steps 2-10 for different values Note : Always take the value of A higher then B in case of subtraction. The Borrow/Carry bit won t count in Subtraction Calculation : 1. Sub 12 and Borrow/carry Sub 15 and Borrow/carry (1) (0) (1) +2 0 (0) = = 10 Observation table : S. No A 4 A 3 A 2 A 1 B 4 B 3 B 2 B 1 Carry S 4 S 3 S 2 S (0) (0) (1) +2 0 (0) = = 2 Scientech Technologies Pvt. Ltd. 17 Scientech Technologies Pvt. Ltd. 18
10 Datasheet Scientech Technologies Pvt. Ltd. 19 Scientech Technologies Pvt. Ltd. 20
11 Warranty 1) We guarantee the instrument against all manufacturing defects during 24 months from the date of sale by us or through our dealers. 2) The guarantee covers manufacturing defects in respect of indigenous component and material limited to the warranty extended to us by the original manufacturer, and defect will be rectified as far as lies within our control. 3) The guarantee will become INVALID. a) If the instrument is not operated as per instruction given in the instruction manual. b) If the agreed payment terms and other conditions of sale are not followed. c) If the customer resells the instrument to another party. d) Provided no attempt have been made to service and modify the instrument. 4) The non-working of the instrument is to be communicated to us immediately giving full details of the complaints and defects noticed specifically mentioning the type and sr. no. of the instrument, date of purchase etc. 5) The repair work will be carried out, provided the instrument is dispatched securely packed and insured with the railways. To and fro charges will be to the account of the customer. DESPATCH PROCEDURE FOR SERVICE Should it become necessary to send back the instrument to factory please observe the following procedure: 1) Before dispatching the instrument please write to us giving full details of the fault noticed. 2) After receipt of your letter our repairs dept. will advise you whether it is necessary to send the instrument back to us for repairs or the adjustment is possible in your premises. Dispatch the instrument (only on the receipt of our advice) securely packed in original packing duly insured and freight paid along with accessories and a copy of the details noticed to us at our factory address. Scientech Technologies Pvt. Ltd. 21 Scientech Technologies Pvt. Ltd. 22
12 List of Service Centers 1. Scientech Technologies Pvt. Ltd. 90, Electronic Complex Ph : (0731) Pardeshipura, [email protected] INDORE Fax : (0731) Scientech Technologies Pvt. Ltd. First Floor, C-19, Ph : (011) , F.I.E., Patparganj Industrial Area, Fax : (011) DELHI [email protected] 3. Scientech Technologies Pvt. Ltd. 1 st floor No 1, Karpagam Gardens Ph : (044) , Main Road Adyar, Fax : (044) CHENNAI [email protected] 4. Scientech Technologies Pvt. Ltd. 202/19, 4 th main street Ph : (080) Ganganagar, Fax : (080) BANGALORE [email protected] 5. Scientech Technologies Pvt. Ltd. 8,1st floor, 123-Hariram Mansion, Ph : (022) Dada Saheb Phalke road, Fax : (022) Dadar (East), [email protected] MUMBAI Scientech Technologies Pvt. Ltd. 988, Sadashiv Peth, Ph : (020) Gyan Prabodhini Lane, Fax : (020) PUNE [email protected] 7. Scientech Technologies Pvt. Ltd SPS Apartment, 1 st Floor Ph : +(033) , Ahmed Mamoji Street, [email protected] Behind Jaiswal Hospital, Mob No : Liluah, HOWRAH W.B. 8. Scientech Technologies Pvt. Ltd Flat No. 205, 2 nd Floor, Ph : (040) Lakshminarayana Apartments [email protected] C wing, Street No. 17, Mob No : Himaytnagar, HYDERABAD List of Accessories 1. 2mm patch cord (red) No. 2. 2mm patch cord (black) 16.1 No. 3. e-manual...1 No. Scientech Technologies Pvt. Ltd. 23 Scientech Technologies Pvt. Ltd. 24
Operating Manual Ver.1.1
4 Bit Binary Ripple Counter (Up-Down Counter) Operating Manual Ver.1.1 An ISO 9001 : 2000 company 94-101, Electronic Complex Pardesipura, Indore- 452010, India Tel : 91-731- 2570301/02, 4211100 Fax: 91-731-
AB07 Common Collector PNP Transistor Characteristics. Analog lab Experiment board. Ver 1.0
Common Collector PNP Transistor Characteristics Analog lab Experiment board Ver 1.0 QUALITY POLICY To be a Global Provider of Innovative and Affordable Electronic Equipments for Technology Training by
Binary Adders: Half Adders and Full Adders
Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order
COMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/combinational_circuits.htm Copyright tutorialspoint.com Combinational circuit is a circuit in which we combine the different
Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic
Today Binary addition Representing negative numbers 2 Binary Addition Consider the following binary numbers: 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 How do we add these numbers? 3 Binary Addition 0 0 1 0 0 1 1
DEPARTMENT OF INFORMATION TECHNLOGY
DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Mahamaya Technical University, Noida Approved by AICTE DEPARTMENT OF INFORMATION TECHNLOGY Lab Manual for Computer Organization Lab ECS-453
BINARY CODED DECIMAL: B.C.D.
BINARY CODED DECIMAL: B.C.D. ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS.
Sistemas Digitais I LESI - 2º ano
Sistemas Digitais I LESI - 2º ano Lesson 6 - Combinational Design Practices Prof. João Miguel Fernandes ([email protected]) Dept. Informática UNIVERSIDADE DO MINHO ESCOLA DE ENGENHARIA - PLDs (1) - The
EE 261 Introduction to Logic Circuits. Module #2 Number Systems
EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook
Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.
Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must be able to handle more than just values for real world problems
Operating Manual Ver.1.1
Class B Amplifier (Push-Pull Emitter Follower) Operating Manual Ver.1.1 An ISO 9001 : 2000 company 94-101, Electronic Complex Pardesipura, Indore- 452010, India Tel : 91-731- 2570301/02, 4211100 Fax: 91-731-
The string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
Basic Logic Gates Richard E. Haskell
BASIC LOGIC GATES 1 E Basic Logic Gates Richard E. Haskell All digital systems are made from a few basic digital circuits that we call logic gates. These circuits perform the basic logic functions that
Computer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
Let s put together a Manual Processor
Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce
1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.
File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one
Understanding Logic Design
Understanding Logic Design ppendix of your Textbook does not have the needed background information. This document supplements it. When you write add DD R0, R1, R2, you imagine something like this: R1
FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder
FORDHAM UNIVERSITY CISC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. Science Spring, 2011 Lab 2 The Full-Adder 1 Introduction In this lab, the student will construct
Two's Complement Adder/Subtractor Lab L03
Two's Complement Adder/Subtractor Lab L03 Introduction Computers are usually designed to perform indirect subtraction instead of direct subtraction. Adding -B to A is equivalent to subtracting B from A,
Chapter 1: Digital Systems and Binary Numbers
Chapter 1: Digital Systems and Binary Numbers Digital age and information age Digital computers general purposes many scientific, industrial and commercial applications Digital systems telephone switching
Useful Number Systems
Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2
The components. E3: Digital electronics. Goals:
E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC
Flip-Flops, Registers, Counters, and a Simple Processor
June 8, 22 5:56 vra235_ch7 Sheet number Page number 349 black chapter 7 Flip-Flops, Registers, Counters, and a Simple Processor 7. Ng f3, h7 h6 349 June 8, 22 5:56 vra235_ch7 Sheet number 2 Page number
Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın
Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 E-mail: [email protected] Grading 1st Midterm -
Counters and Decoders
Physics 3330 Experiment #10 Fall 1999 Purpose Counters and Decoders In this experiment, you will design and construct a 4-bit ripple-through decade counter with a decimal read-out display. Such a counter
Systems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 9 - Register Transfer and Microoperations Microoperations Digital systems are modular in nature, with modules containing registers, decoders, arithmetic
Section 1.4 Place Value Systems of Numeration in Other Bases
Section.4 Place Value Systems of Numeration in Other Bases Other Bases The Hindu-Arabic system that is used in most of the world today is a positional value system with a base of ten. The simplest reason
2011, The McGraw-Hill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through
Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:
Numeral Systems Which number is larger? 25 8 We need to distinguish between numbers and the symbols that represent them, called numerals. The number 25 is larger than 8, but the numeral 8 above is larger
Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction
5 Combinatorial Components. 5.0 Full adder. Full subtractor
5 Combatorial Components Use for data transformation, manipulation, terconnection, and for control: arithmetic operations - addition, subtraction, multiplication and division. logic operations - AND, OR,
Lecture 2. Binary and Hexadecimal Numbers
Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations
Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language
Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,
Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots
Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Registers As you probably know (if you don t then you should consider changing your course), data processing is usually
Levent EREN [email protected] A-306 Office Phone:488-9882 INTRODUCTION TO DIGITAL LOGIC
Levent EREN [email protected] A-306 Office Phone:488-9882 1 Number Systems Representation Positive radix, positional number systems A number with radix r is represented by a string of digits: A n
Solution for Homework 2
Solution for Homework 2 Problem 1 a. What is the minimum number of bits that are required to uniquely represent the characters of English alphabet? (Consider upper case characters alone) The number of
Binary Numbering Systems
Binary Numbering Systems April 1997, ver. 1 Application Note 83 Introduction Binary numbering systems are used in virtually all digital systems, including digital signal processing (DSP), networking, and
Binary Numbers. Binary Octal Hexadecimal
Binary Numbers Binary Octal Hexadecimal Binary Numbers COUNTING SYSTEMS UNLIMITED... Since you have been using the 10 different digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 all your life, you may wonder how
Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8
ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also
To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:
Binary Numbers In computer science we deal almost exclusively with binary numbers. it will be very helpful to memorize some binary constants and their decimal and English equivalents. By English equivalents
Systems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems - Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
3.Basic Gate Combinations
3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and
EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors
EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors I. Introduction I.a. Objectives In this experiment, parallel adders, subtractors and complementors will be designed and investigated. In the
Base Conversion written by Cathy Saxton
Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,
Addition Methods. Methods Jottings Expanded Compact Examples 8 + 7 = 15
Addition Methods Methods Jottings Expanded Compact Examples 8 + 7 = 15 48 + 36 = 84 or: Write the numbers in columns. Adding the tens first: 47 + 76 110 13 123 Adding the units first: 47 + 76 13 110 123
United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1
United States Naval Academy Electrical and Computer Engineering Department EC262 Exam 29 September 2. Do a page check now. You should have pages (cover & questions). 2. Read all problems in their entirety.
ANALOG & DIGITAL ELECTRONICS
ANALOG & DIGITAL ELECTRONICS Course Instructor: Course No: PH-218 3-1-0-8 Dr. A.P. Vajpeyi E-mail: [email protected] Room No: #305 Department of Physics, Indian Institute of Technology Guwahati,
what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?
Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the
CHAPTER 3 Boolean Algebra and Digital Logic
CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4
Lecture N -1- PHYS 3330. Microcontrollers
Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers
ELEC 2210 - EXPERIMENT 1 Basic Digital Logic Circuits
Objectives ELEC - EXPERIMENT Basic Digital Logic Circuits The experiments in this laboratory exercise will provide an introduction to digital electronic circuits. You will learn how to use the IDL-00 Bit
plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums
plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;
Gates, Circuits, and Boolean Algebra
Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks
COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design
PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits
Combinational Logic Design
Chapter 4 Combinational Logic Design The foundations for the design of digital logic circuits were established in the preceding chapters. The elements of Boolean algebra (two-element switching algebra
Numbering Systems. InThisAppendix...
G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal
Module 3: Floyd, Digital Fundamental
Module 3: Lecturer : Yongsheng Gao Room : Tech - 3.25 Email : [email protected] Structure : 6 lectures 1 Tutorial Assessment: 1 Laboratory (5%) 1 Test (20%) Textbook : Floyd, Digital Fundamental
Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa
Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation
CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on
CS 61C: Great Ideas in Computer Architecture Finite State Machines Instructors: Krste Asanovic & Vladimir Stojanovic hbp://inst.eecs.berkeley.edu/~cs61c/sp15 1 Levels of RepresentaKon/ InterpretaKon High
Chapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas
Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count
INTEGRATED CIRCUITS. For a complete data sheet, please also download:
INTEGRATED CIRCUITS DATA SHEET For a complete data sheet, please also download: The IC06 74HC/HCT/HCU/HCMOS Logic Family Specifications The IC06 74HC/HCT/HCU/HCMOS Logic Package Information The IC06 74HC/HCT/HCU/HCMOS
Standart TTL, Serie 74... Art.Gruppe 13.15. 1...
Standart TTL, Serie 74... Art.Gruppe 13.15. 1... Standart TTL, Serie 74... 7400 Quad 2-Input Nand Gate (TP) DIL14 7402 Quad 2 Input Nor Gate (TP) DIL14 7403 Quad 2 Input Nand Gate (OC) DIL14 7404 Hex Inverter
A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc
Other architectures Example. Accumulator-based machines A single register, called the accumulator, stores the operand before the operation, and stores the result after the operation. Load x # into acc
Digital Electronics Detailed Outline
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
Figure 8-1 Four Possible Results of Adding Two Bits
CHPTER EIGHT Combinational Logic pplications Thus far, our discussion has focused on the theoretical design issues of computer systems. We have not yet addressed any of the actual hardware you might find
COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012
Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about
CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011
CS101 Lecture 11: Number Systems and Binary Numbers Aaron Stevens 14 February 2011 1 2 1 3!!! MATH WARNING!!! TODAY S LECTURE CONTAINS TRACE AMOUNTS OF ARITHMETIC AND ALGEBRA PLEASE BE ADVISED THAT CALCULTORS
MEP Y9 Practice Book A
1 Base Arithmetic 1.1 Binary Numbers We normally work with numbers in base 10. In this section we consider numbers in base 2, often called binary numbers. In base 10 we use the digits 0, 1, 2, 3, 4, 5,
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION Introduction The outputs from sensors and communications receivers are analogue signals that have continuously varying amplitudes. In many systems
Counters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0
ounter ounters ounters are a specific type of sequential circuit. Like registers, the state, or the flip-flop values themselves, serves as the output. The output value increases by one on each clock cycle.
Counters are sequential circuits which "count" through a specific state sequence.
Counters Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences. Two distinct types are in common usage:
2.0 Chapter Overview. 2.1 Boolean Algebra
Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital
List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).
G. H. RAISONI COLLEGE OF ENGINEERING, NAGPUR Department of Electronics & Communication Engineering Branch:-4 th Semester[Electronics] Subject: - Digital Circuits List of Experiment Sr. Name Of Experiment
CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions
CS101 Lecture 26: Low Level Programming John Magee 30 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What did we do last time? How can we control the computer s circuits? How
(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
HOMEWORK # 2 SOLUTIO
HOMEWORK # 2 SOLUTIO Problem 1 (2 points) a. There are 313 characters in the Tamil language. If every character is to be encoded into a unique bit pattern, what is the minimum number of bits required to
PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1
UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1 This work covers part of outcome 2 of the Edexcel standard module. The material is
EE360: Digital Design I Course Syllabus
: Course Syllabus Dr. Mohammad H. Awedh Fall 2008 Course Description This course introduces students to the basic concepts of digital systems, including analysis and design. Both combinational and sequential
Programming Logic controllers
Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,
Digital to Analog and Analog to Digital Conversion
Real world (lab) is Computer (binary) is digital Digital to Analog and Analog to Digital Conversion V t V t D/A or DAC and A/D or ADC D/A Conversion Computer DAC A/D Conversion Computer DAC Digital to
Designing Digital Circuits a modern approach. Jonathan Turner
Designing Digital Circuits a modern approach Jonathan Turner 2 Contents I First Half 5 1 Introduction to Designing Digital Circuits 7 1.1 Getting Started.......................... 7 1.2 Gates and Flip
AN IMPROVED DESIGN OF REVERSIBLE BINARY TO BINARY CODED DECIMAL CONVERTER FOR BINARY CODED DECIMAL MULTIPLICATION
American Journal of Applied Sciences 11 (1): 69-73, 2014 ISSN: 1546-9239 2014 Science Publication doi:10.3844/ajassp.2014.69.73 Published Online 11 (1) 2014 (http://www.thescipub.com/ajas.toc) AN IMPROVED
DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs
DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs General Description The DM9368 is a 7-segment decoder driver incorporating input latches and constant current output circuits
Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit
Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend -480 41-36 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until
Upon completion of unit 1.1, students will be able to
Upon completion of unit 1.1, students will be able to 1. Demonstrate safety of the individual, class, and overall environment of the classroom/laboratory, and understand that electricity, even at the nominal
Operating Manual Ver.1.1
Silicon, Zener, LED Diode Characteristics Operating Manual Ver.1.1 An ISO 9001 : 2000 company 94-101, Electronic Complex Pardesipura, Indore- 452010, India Tel : 91-731- 2570301/02, 4211100 Fax: 91-731-
SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks
UNIVERSITY OF KERALA First Degree Programme in Computer Applications Model Question Paper Semester I Course Code- CP 1121 Introduction to Computer Science TIME : 3 hrs Maximum Mark: 80 SECTION A [Very
1. Convert the following base 10 numbers into 8-bit 2 s complement notation 0, -1, -12
C5 Solutions 1. Convert the following base 10 numbers into 8-bit 2 s complement notation 0, -1, -12 To Compute 0 0 = 00000000 To Compute 1 Step 1. Convert 1 to binary 00000001 Step 2. Flip the bits 11111110
Divide: Paper & Pencil. Computer Architecture ALU Design : Division and Floating Point. Divide algorithm. DIVIDE HARDWARE Version 1
Divide: Paper & Pencil Computer Architecture ALU Design : Division and Floating Point 1001 Quotient Divisor 1000 1001010 Dividend 1000 10 101 1010 1000 10 (or Modulo result) See how big a number can be
Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur
Cryptography and Network Security Prof. D. Mukhopadhyay Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Module No. # 01 Lecture No. # 12 Block Cipher Standards
A Digital Timer Implementation using 7 Segment Displays
A Digital Timer Implementation using 7 Segment Displays Group Members: Tiffany Sham u2548168 Michael Couchman u4111670 Simon Oseineks u2566139 Caitlyn Young u4233209 Subject: ENGN3227 - Analogue Electronics
Guru Ghasidas Vishwavidyalaya, Bilaspur (C.G.) Institute of Technology. Electronics & Communication Engineering. B.
Guru Ghasidas Vishwavidyalaya, Bilaspur (C.G.) Institute of Technology Electronics & Communication Engineering B.Tech III Semester 1. Electronic Devices Laboratory 2. Digital Logic Circuit Laboratory 3.
DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.
DIGITAL COUNTERS http://www.tutorialspoint.com/computer_logical_organization/digital_counters.htm Copyright tutorialspoint.com Counter is a sequential circuit. A digital circuit which is used for a counting
MICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
Number and codes in digital systems
Number and codes in digital systems Decimal Numbers You are familiar with the decimal number system because you use them everyday. But their weighted structure is not understood. In the decimal number
Paramedic Program Pre-Admission Mathematics Test Study Guide
Paramedic Program Pre-Admission Mathematics Test Study Guide 05/13 1 Table of Contents Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page
