BINARY STORAGE AND REGISTERS

Slides:



Advertisements
Similar presentations
8085 processor. Bus system in microprocessor.
Advertisements

التصميم المنطقي Second Course
1 Chapter 2 The Digital World. 2 Digital Data Representation.
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Chapter 1 Binary Systems 1-1. Digital Systems
Chapter 4 Gates and Circuits.
Section 10.3 Logic Gates.
Gates CS105. Electrical Signals Transmission of data Any electrical signal has a level of voltage – Interpretation of 1s and 0s Generally speaking: –
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Mantıksal Tasarım – BBM231 M. Önder Efe
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Digital Computer Design Fundamental
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
Chap 4. Sequential Circuits
Logic and Digital System Design - CS 303
Rabie A. Ramadan Lecture 3
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
CHAPTER 1 BINARY SYSTEMS
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
1 Lect # 1 Binary Systems Digital vs. Analog Analog – a continuous range of values Digital – a discrete set of values –Like money –Can’t get smaller than.
1.8 Binary Storage and Registers
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Logic Design / Processor and Control Units Tony Diep.
Chapter 1: Binary Systems
ECE DIGITAL LOGIC LECTURE 5: BINARY LOGIC AND DIGITAL LOGIC GATES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/28/2016.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Number Systems By, B. R. Chandavarkar CSE Dept., NITK, Surathkal.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Logic Gates Unit 16.
Chapter 1 Digital Systems and Binary Numbers
Boolean Algebra & Logic Gates
Invitation to Computer Science, C++ Version, Fourth Edition
Basic Computer Organization and Design
REGISTER TRANSFER LANGUAGE (RTL)
Chap 7. Register Transfers and Datapaths
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
KU College of Engineering Elec 204: Digital Systems Design
Synchronous Sequential Circuits
Chapter 1 Digital Systems and Binary Numbers
Fundamentals & Ethics of Information Systems IS 201
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Invitation to Computer Science, Java Version, Third Edition
ECE 434 Advanced Digital System L03
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
INTRODUCTION TO LOGIC DESIGN Chapter 1 Digital Systems and Binary Numbers gürtaçyemişçioğlu.
Interfacing Memory Interfacing.
LECTURE 15 – DIGITAL ELECTRONICS
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Digital Electronics & Logic Design
Diminished Radii Complement and codes
Digital Logic Structures Logic gates & Boolean logic
Instructor: Alexander Stoytchev
Digital Electronics Lab 2 Instructor:
Week 7: Gates and Circuits: PART II
Registers.
Introductory Concepts
Copyright © Cengage Learning. All rights reserved.
Registers and Counters
EGR 2131 Unit 12 Synchronous Sequential Circuits
COMPUTER ORGANIZATION
Digital Electronics and Logic Design
Presentation transcript:

BINARY STORAGE AND REGISTERS ICS 30/CS 30

BINARY STORAGE AND REGISTERS The discrete elements of info. in a digital comp. must have a physical existence in some information storage medium. When discrete elements of info. are represented in binary form, the info. storage medium must contain binary storage elements for storing individual bits. A binary cell is a device that possesses 2 stable states and is capable of storing 1 bit of info. mariaramilaisidrojimenez XUCC

BINARY STORAGE AND REGISTERS The input to the cell receives excitation signals that set it to 1 of the 2 states. The output of the cell is a physical quantity that distinguishes between the 2 states. The info. stored in a cell is a 1 when it is one stable state and a 0 when in the other stable state. Ex. Electronic flip-flop circuits, ferrite cores used in memories, positions punched w/ a hole or not punched in a card. mariaramilaisidrojimenez XUCC

REGISTERS A register is a group of binary cells. The state of a register is an n-tuple number of 1’s and 0’s, w/ each bit designating the state of one cell in the register. The content of a register is a function of the interpretation given to the info. stored in it. Ex. Suppose that the bit configuration stored in the register is as shown. The state of the register is the 16-tuple number 1100001111001001. Clearly, a register w/ n cells can be in one of 2n possible possible states. 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 mariaramilaisidrojimenez XUCC

REGISTERS It is clear that a register can store one or more discrete elements of info. and that the same bit configuration may be interpreted differently for diff. types of elements of info. It is important that the user store meaningful info. in registers and that the computer be programmed to process this info. accdg. to the type of info. stored. mariaramilaisidrojimenez XUCC

REGISTER TRANSFER A digital computer is characterized by its registers. The memory unit is merely a collection of thousands of registers for storing digital info. The processor unit is composed of various registers that store operands upon which operations are performed. The control unit uses registers to keep track of various computer sequences, and every input or output device must have at least one register to store the info. transferred to or from the device. mariaramilaisidrojimenez XUCC

Transfer of info. w/ Registers Memory Unit 01001010 01001111 11001000 11001110 Memory Register PROCESSOR UNIT Processor Register INPUT TELETYPE UNIT Input Register 8 Cells Keyboard CONTROL J O H N 8 Cells mariaramilaisidrojimenez XUCC

REGISTER TRANSFER The previous slide illustrates the transfer of info. among registers and demonstrates pictorially the transfer of binary info from a teletype keyboard into a register in the memory unit. Inter-register transfer operation is a basic operation in digital systems w/c consists of a transfer of the info. stored in one register into another. The input teletype unit is assumed to have a keyboard, a control circuit, and an input register. mariaramilaisidrojimenez XUCC

REGISTER TRANSFER Each time a key is struck, the control enters into the input register an equivalent 8-bit alphanumeric character code. We will assume that the code used is the ASCII code w/ an odd-parity 8th bit. The info from the input register is transferred into the 8 least significant cells of a processor register. After every transfer, the input register is cleared to enable the control to insert a new 8-bit code when the keyboard is struck again. mariaramilaisidrojimenez XUCC

REGISTER TRANSFER Each 8-bit character transferred to the processor register is preceded by a shift of the previous character to the next 8 cells on its left. When a transfer of 4 characters is completed, the processor register is full, and its contents are transferred into a memory register. The content stored in the memory register came from the transfer of the characters JOHN after the 4 appropriate keys were struck. mariaramilaisidrojimenez XUCC

REGISTER TRANSFER To process discrete quantities of info. in binary form, a computer must be provided w/ (1) devices that hold the data to be processed (2) circuit elements that manipulate individual bits of info. The device most commonly used for holding data is a register. Manipulation of binary variables is done by means of digital logic circuits. mariaramilaisidrojimenez XUCC

BINARY INFORMATION PROCESSING MEMORY UNIT 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 Digital logic circuits for binary addition 0 1 0 0 1 0 0 0 1 1 R1 R2 R3 sum operand1 operand2 mariaramilaisidrojimenez XUCC PROCESSOR UNIT

BINARY INFORMATION PROCESSING The previous slide illustrates the process of adding two 10-bit binary numbers. The memory unit, w/c normally consists of thousands of registers, is shown in the diagram w/ only three of its registers. The part of the processor unit shown consists of 3 registers, R1, R2, and R3, together w/ digital logic circuits that manipulate the bits of R1 and R2 and transfer into R3 a binary number equal to their arithmetic sum. mariaramilaisidrojimenez XUCC

BINARY INFORMATION PROCESSING Memory registers store info and are incapable of processing the two operands. However, info. stores in memory can be transferred to processor registers. Results obtained in processor registers can be transferred back into a memory register for storage until needed again. The previous two examples demonstrate the info flow capabilities of a digital system in a very simple manner. The registers of the system are the basic elements for storing and holding the binary info. The digital logic circuits process the info. mariaramilaisidrojimenez XUCC

BINARY LOGIC Binary logic deals w/ variables that take on two discrete values and w/ operations that assume logical meaning. Binary logic is used to describe, in a mathematical way, the manipulation and processing of binary info. It is particularly suited for the analysis and design of digital systems. Ex. The digital logic circuits that perform the binary arithmetic are circuits whose behavior is most conveniently expressed by means of binary variables and logical operations. mariaramilaisidrojimenez XUCC

BINARY LOGIC The binary logic to be introduced is equivalent to an algebra called Boolean Algebra. The purpose of this section is to introduce Boolean algebra in heuristic manner and relate it to digital logic circuits and binary signals. Definition of Binary Logic Binary logic consists of binary variables and logical operations. The variables are designated by letters of the alphabet such as A, B, C, x, y, z, etc. w/ each variable having 2 and only 2 distinct possible values: 1 and 0. mariaramilaisidrojimenez XUCC

BINARY LOGIC There are three basic logical operations: AND, OR, and NOT. 1. AND: This operation is represented by a dot or by the absence of an operator. Ex., A.B = C or AB = C is read “A AND B is equal to C.” 2. OR: This operation is represented by a plus sign. Ex., A+B = C is read “A or B is equal to C,” meaning that C=1 if A=1 or if B=1 or if both A=1 and B=1. 3. NOT: This operation is represented by a prime or a bar. Ex., A = C is read “A not is equal to C.” mariaramilaisidrojimenez XUCC

TRUTH TABLES OF LOGICAL OPERATIONS BINARY LOGIC AND A B A . B 0 0 0 1 1 0 1 1 1 OR A B A + B 0 0 0 1 1 1 0 1 1 TRUTH TABLES OF LOGICAL OPERATIONS NOT A   1 mariaramilaisidrojimenez XUCC

BINARY LOGIC Binary logic resembles binary arithmetic, and the operations AND and OR have some similarities to multiplication and addition, respectively. However, binary logic should not be confused w/ binary arithmetic. An arithmetic variable designates a number that may consist of many digits. A logic variable is always either a 1 or a 0. Ex., in binary arithmetic 1+1 = 10 while in binary logic 1+1 = 1 One plus one is equal to 2 or 10.(binary arithmetic) One or one is equal to one (binary logic) mariaramilaisidrojimenez XUCC

BINARY LOGIC For each combination of the values of A and B, there is a value of C specified by the definition of the logical operation. These definitions may be listed in a compact form using truth tables. A truth table is a table of all possible combinations of the variables showing the relation between the values that the variables may take and the result of the operation. mariaramilaisidrojimenez XUCC

SWITCHING CIRCUITS AND BINARY SIGNALS The use of binary variables and the application of binary logic are demonstrated by the following simple switching circuits: Voltage Source ~ (a) Switches in series – logic AND Voltage Source ~ (b) Switches in parallel – logic OR mariaramilaisidrojimenez XUCC

SWITCHING CIRCUITS AND BINARY SIGNALS Let the manual switches A and B represent two binary variables with values equal to 0 when the switch is open and 1 when the switch is closed. Let the lamp L represent a third binary variable equal to 1 when the light is on and 0 when off. For the switches in series, the light turns on if A and B are closed. For the switches in parallel, the light turns on if A or B is closed. mariaramilaisidrojimenez XUCC

SWITCHING CIRCUITS AND BINARY SIGNALS It is obvious that the two circuits can be expressed by means of binary logic with the AND and OR operations, respectively: L = A . B for the circuit of fig. (a) L = A + B for the circuit of fig. (b) Electronic digital circuits are sometimes called switching circuits because they behave like a switch, w/ the active element such as a transistor either conducting (switch closed) or not conducting (switch open). mariaramilaisidrojimenez XUCC

SWITCHING CIRCUITS AND BINARY SIGNALS Instead of changing the switch manually, an electronic switching circuit uses binary signals to control the conduction or nonconduction state of the active element. Electrical signals such as voltages or currents exist throughout a digital system in either one of two recognizable values (except during transition). mariaramilaisidrojimenez XUCC