Presentation is loading. Please wait.

Presentation is loading. Please wait.

BINARY STORAGE AND REGISTERS

Similar presentations


Presentation on theme: "BINARY STORAGE AND REGISTERS"— Presentation transcript:

1 BINARY STORAGE AND REGISTERS
ICS 30/CS 30

2 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

3 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

4 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 Clearly, a register w/ n cells can be in one of 2n possible possible states. 1 mariaramilaisidrojimenez XUCC

5 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

6 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

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

8 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

9 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

10 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

11 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

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

13 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

14 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

15 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

16 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

17 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

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

19 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

20 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

21 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

22 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

23 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

24 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


Download ppt "BINARY STORAGE AND REGISTERS"

Similar presentations


Ads by Google