banner



How To Make The Register Known To The Computer

Registers in Computer Compages

Annals is a very fast computer retentivity, used to store data/instruction in-execution.

A Register is a group of flip-flops with each flip-flop capable of storing 1 bit of information. An n-bit register has a group of n flip-flops and is capable of storing binary information of n-bits.

If y'all are not familiar with logic gates concepts, you can learn it from here.

A register consists of a grouping of flip-flops and gates. The flip-flops hold the binary information and gates control when and how new information is transferred into a annals. Diverse types of registers are available commercially. The simplest register is one that consists of only flip-flops with no external gates.

These days registers are also implemented equally a register file.


Loading the Registers

The transfer of new information into a register is referred to every bit loading the register. If all the bits of register are loaded simultaneously with a common clock pulse than the loading is said to be done in parallel.


Register Transfer Language

The symbolic notation used to describe the micro-operation transfers amongst registers is called Register transfer linguistic communication.

The term register transfer means the availability of hardware logic circuits that can perform a stated micro-operation and transfer the event of the operation to the aforementioned or some other annals.

The discussion language is borrowed from programmers who apply this term to programming languages. This programming language is a process for writing symbols to specify a given computational procedure.

Following are some commonly used registers:

  1. Accumulator: This is the well-nigh common annals, used to store information taken out from the retentivity.
  2. General Purpose Registers: This is used to store data intermediate results during plan execution. It can exist accessed via assembly programming.
  3. Special Purpose Registers: Users do non access these registers. These registers are for Computer system,
    • MAR: Memory Address Register are those registers that holds the address for memory unit.
    • MBR: Memory Buffer Annals stores pedagogy and data received from the retentivity and sent from the retentivity.
    • PC: Program Counter points to the next instruction to be executed.
    • IR: Pedagogy Register holds the educational activity to be executed.

Register Transfer

Information transferred from one register to another is designated in symbolic form by ways of replacement operator.

R2 ← R1

It denotes the transfer of the data from register R1 into R2.

Normally nosotros want the transfer to occur simply in predetermined control condition. This tin can be shown past following if-then statement: if (P=one) and so (R2 ← R1)

Here P is a control indicate generated in the control section.


Control Role

A control function is a Boolean variable that is equal to ane or 0. The command function is shown as:

P: R2 ← R1

The control condition is terminated with a colon. It shows that transfer performance can be executed just if P=1.


Micro-Operations

The operations executed on information stored in registers are called micro-operations. A micro-operation is an elementary performance performed on the information stored in i or more registers.

Example: Shift, count, clear and load.

Types of Micro-Operations

The micro-operations in digital computers are of iv types:

  1. Register transfer micro-operations transfer binary information from one register to another.
  2. Arithmetic micro-operations perform arithmetic operations on numeric data stored in registers.
  3. Logic micro-operations perform flake manipulation performance on non-numeric data stored in registers.
  4. Shift micro-operations perform shift micro-operations performed on information.

Arithmetic Micro-Operations

Some of the basic micro-operations are addition, subtraction, increase and decrement.


Add together Micro-Operation

It is divers by the post-obit statement:

          R3 → R1 + R2        

The higher up statement instructs the data or contents of register R1 to be added to data or content of annals R2 and the sum should be transferred to annals R3.


Subtract Micro-Operation

Let us once more accept an example:

          R3 → R1 + R2' + 1        

In subtract micro-operation, instead of using minus operator we take 1's compliment and add 1 to the register which gets subtracted, i.e R1 - R2 is equivalent to R3 → R1 + R2' + 1


Increment/Decrement Micro-Performance

Increment and decrement micro-operations are generally performed by calculation and subtracting 1 to and from the register respectively.

          R1 → R1 + 1        
          R1 → R1 – i        
Symbolic Designation Clarification
R3 ← R1 + R2 Contents of R1+R2 transferred to R3.
R3 ← R1 - R2 Contents of R1-R2 transferred to R3.
R2 ← (R2)' Compliment the contents of R2.
R2 ← (R2)' + ane 2'due south compliment the contents of R2.
R3 ← R1 + (R2)' + 1 R1 + the ii'south compliment of R2 (subtraction).
R1 ← R1 + 1 Increment the contents of R1 by i.
R1 ← R1 - one Decrement the contents of R1 past 1.

Logic Micro-Operations

These are binary micro-operations performed on the bits stored in the registers. These operations consider each bit separately and treat them every bit binary variables.

Allow us consider the X-OR micro-operation with the contents of two registers R1 and R2.

          P: R1 ← R1 X-OR R2        

In the above statement nosotros take besides included a Control Part.

Assume that each register has 3 bits. Let the content of R1 exist 010 and R2 be 100. The X-OR micro-performance volition be:

Registers


Shift Micro-Operations

These are used for series transfer of data. That means we tin shift the contents of the annals to the left or right. In the shift left operation the series input transfers a bit to the right nearly position and in shift right functioning the serial input transfers a bit to the left most position.

At that place are three types of shifts as follows:

a) Logical Shift

It transfers 0 through the series input. The symbol "shl" is used for logical shift left and "shr" is used for logical shift correct.

          R1 ← she R1        
          R1 ← she R1        

The register symbol must be same on both sides of arrows.

b) Circular Shift

This circulates or rotates the bits of annals around the 2 ends without whatsoever loss of data or contents. In this, the serial output of the shift register is connected to its serial input. "cil" and "cir" is used for circular shift left and right respectively.

c) Arithmetic Shift

This shifts a signed binary number to left or right. An arithmetics shift left multiplies a signed binary number by 2 and shift left divides the number by ii. Arithmetic shift micro-operation leaves the sign bit unchanged because the signed number remains same when information technology is multiplied or divided by ii.


Arithmetic Logical Unit

Instead of having private registers performing the micro-operations, reckoner system provides a number of registers connected to a common unit chosen equally Arithmetic Logical Unit (ALU). ALU is the principal and one of the almost important unit inisde CPU of computer. All the logical and mathematical operations of computer are performed here. The contents of specific register is placed in the in the input of ALU. ALU performs the given operation and so transfer it to the destination annals.

Registers



How To Make The Register Known To The Computer,

Source: https://www.studytonight.com/computer-architecture/registers

Posted by: cartwrightlitend47.blogspot.com

0 Response to "How To Make The Register Known To The Computer"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel