Comp Organization GeeksForGeeks 11 - 20 Flashcards

RISC and CISC, their processor, vector processor classification, essential registers for instruction execution, and single accumulator based CPU organization

1
Q

Reduced Instruction Set Architecture (RISC)

A

The main idea behind this is to make hardware simpler by using an instruction set composed of a few basic steps for loading, evaluating, and storing operations just like a load command will load data, a store command will store the data.

Reduce the cycles per instruction at the cost of the number of instructions per program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Complex Instruction Set Architecture (CISC)

A

The main idea is that a single instruction will do all loading, evaluating, and storing operations just like a multiplication command will do stuff like loading data, evaluating, and storing it, hence it’s complex.

The CISC approach attempts to minimize the number of instructions per program but at the cost of an increase in the number of cycles per instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Characteristics of RISC

A

Simpler instruction, hence simple instruction decoding.

Instruction comes undersize of one word.

Instruction takes a single clock cycle to get executed.

More general-purpose registers.

Simple Addressing Modes.

Fewer Data types.

A pipeline can be achieved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Characteristics of CISC

A

Complex instruction, hence complex instruction decoding.

Instructions are larger than one-word size.

Instruction may take more than a single clock cycle to get executed.

Less number of general-purpose registers as operations get performed in memory itself.

Complex Addressing Modes.

More Data types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Example – Suppose we have to add two 8-bit numbers:

A

CISC approach: There will be a single command or instruction for this like ADD which will perform the task.

RISC approach: Here programmer will write the first load command to load data in registers then it will use a suitable operator and then it will store the result in the desired location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advantages of RISC

A

Simpler instructions: RISC processors use a smaller set of simple instructions, which makes them easier to decode and execute quickly. This results in faster processing times.

Faster execution: Because RISC processors have a simpler instruction set, they can execute instructions faster than CISC processors.

Lower power consumption: RISC processors consume less power than CISC processors, making them ideal for portable devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disadvantages of RISC

A

More instructions required: RISC processors require more instructions to perform complex tasks than CISC processors.

Increased memory usage: RISC processors require more memory to store the additional instructions needed to perform complex tasks.

Higher cost: Developing and manufacturing RISC processors can be more expensive than CISC processors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Advantages of CISC

A

Reduced code size: CISC processors use complex instructions that can perform multiple operations, reducing the amount of code needed to perform a task.

More memory efficient: Because CISC instructions are more complex, they require fewer instructions to perform complex tasks, which can result in more memory-efficient code.

Widely used: CISC processors have been in use for a longer time than RISC processors, so they have a larger user base and more available software.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Disadvantages of CISC

A

Slower execution: CISC processors take longer to execute instructions because they have more complex instructions and need more time to decode them.

More complex design: CISC processors have more complex instruction sets, which makes them more difficult to design and manufacture.

Higher power consumption: CISC processors consume more power than RISC processors because of their more complex instruction sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

microprocessor

A

processing unit on a single chip. It is an integrated circuit that performs the core functions of a computer CPU. It is a multipurpose programmable silicon chip constructed using Metal Oxide Semiconductor (MOS) technology which is clock-driven and register-based. It accepts binary data as input and provides output after processing it as per the specification of instructions stored in the memory. These microprocessors are capable of processing 128 bits at a time at the speed of one billion instructions per second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Characteristics of microprocessor

A

Instruction Set –
The set of complete instructions that the microprocessor executes is termed the instruction set.

Word Length –
The number of bits processed in a single instruction is called word length or word size. Greater the word size, the larger the processing power of the CPU.

System Clock Speed –
Clock speed determines how fast a single instruction can be executed in a processor. The microprocessor’s pace is controlled by the System Clock. Clock speeds are generally measured in millions of cycles per second (MHz) and thousand million cycles per second (GHz). Clock speed is considered to be a very important aspect of predicting the performance of a processor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

memory to memory architecture

A

In memory to memory architecture, source operands, intermediate and final results are retrieved (read) directly from the main memory. For memory to memory vector instructions, the information of the base address, the offset, the increment, and the vector length must be specified in order to enable streams of data transfers between the main memory and pipelines. The processors like TI-ASC, CDC STAR-100, and Cyber-205 have vector instructions in memory to memory formats. The main points about memory to memory architecture are:
There is no limitation of size
Speed is comparatively slow in this architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

microprocessor classification:
EPIC

A

It stands for Explicitly Parallel Instruction Computing. The best features of RISC and CISC processors are combined in the architecture. It implements parallel processing of instructions rather than using fixed-length instructions. The working of EPIC processors is supported by using a set of complex instructions that contain both basic instructions as well as the information of execution of parallel instructions. It substantially increases the efficiency of these processors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

microprocessor classification:
CISC

A

It stands for Complex Instruction Set Computer. These processors offer the users, hundreds of instructions of variable sizes. CISC architecture includes a complete set of special-purpose circuits that carry out these instructions at a very high speed. These instructions interact with memory by using complex addressing modes. CISC processors reduce the program size and hence lesser number of memory cycles are required to execute the programs. This increases the overall speed of execution.
Examples: Intel architecture, AMD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Register to register architecture

A

In register to register architecture, operands and results are retrieved indirectly from the main memory through the use of large number of vector registers or scalar registers. The processors like Cray-1 and the Fujitsu VP-200 use vector instructions in register to register formats. The main points about register to register architecture are:
Register to register architecture has limited size.

Speed is very high as compared to the memory to memory architecture.

The hardware cost is high in this architecture.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Accumulator (ACC)

A

Holds the intermediate results of computations.
Used for arithmetic and logical operations.

17
Q

Status register

A

Holds status information about the processor and the current instruction.
Used to indicate whether an operation was successful, to set and clear flags, and to store error information.

18
Q

Index register (IX)

A

Holds an offset value to be added to a memory address.
Used to access data structures or arrays.

19
Q

Stack pointer (SP)

A

Holds the memory address of the last item placed on the stack.
Used for managing the program stack during function calls and returns.

20
Q

registers work together to perform instruction execution. The program counter fetches the next instruction, which is stored in the instruction register. The instruction is decoded and the memory address to be accessed is stored in the memory address register. The data is then accessed from memory and stored in the memory data register.

A

The accumulator holds the intermediate results of computations, and the status register holds the status information. The index registers and stack pointer are used for accessing data structures and managing the program stack during function calls and returns. Together, these essential registers enable the processor to execute instructions efficiently and accurately.

21
Q

The main points about Single Accumulator based CPU Organisation are:

In this CPU Organization, the first ALU operand is always stored into the Accumulator and the second operand is present either in Registers or in the Memory.

Accumulator is the default address thus after data manipulation the results are stored into the accumulator.

One address instruction is used in this type of organization.

A

he format of instruction is: Opcode + Address
Opcode indicates the type of operation to be performed.
Mainly two types of operation are performed in a single accumulator based CPU organization:

  1. Data transfer operation –
    In this type of operation, the data is transferred from a source to a destination.

For ex: LOAD X, STORE Y
Here LOAD is a memory read operation that is data is transferred from memory to accumulator and STORE is a memory write operation that is data is transferred from the accumulator to memory.

  1. ALU operation –
    In this type of operation, arithmetic operations are performed on the data.

For ex: MULT X
where X is the address of the operand. The MULT instruction in this example performs the operation,

AC <– AC * M[X]
AC is the Accumulator and M[X] is the memory word located at location X.

This type of CPU organization is first used in PDP-8 processors and is used for process control and laboratory applications. It has been totally replaced by the introduction of the new general register-based CPU.

22
Q

Advantage of Single accumulator

A

One of the operands is always held by the accumulator register. This results in short instructions and less memory space.

The instruction cycle takes less time because it saves time in instruction fetching from memory.

23
Q

DIsadvantages of single accumulator

A

When complex expressions are computed, program size increases due to the usage of many short instructions to execute it. Thus memory size increases.

As the number of instructions increases for a program, the execution time increases.