RISC vs CISC | Computer Organization & Architecture

Gate Smashers
12 Jan 202108:21

Summary

TLDRThis educational video delves into the distinctions between CISC and RISC architectures, pivotal for competitive and university exams. It highlights the fundamental differences based on instruction set complexity, with CISC featuring more instructions and variable-length formats, while RISC boasts fewer instructions and fixed-length formats. The video also touches on addressing modes, cost implications, hardware requirements, and control units. Examples like Fugaku, a supercomputer using RISC, are provided. The script contrasts CISC's single-instruction complexity with RISC's multi-instruction simplicity, concluding with the observation that RISC's popularity has surged due to the decreasing cost of RAM.

Takeaways

  • 🎓 **Importance of Risk vs. CISC**: The video emphasizes the significance of understanding the differences between Risk and CISC architectures for competitive and university-level exams.
  • 📚 **Syllabus Coverage**: The channel has covered most of the computer organization and architecture syllabus, with only 2-3 topics remaining.
  • 🔍 **Instruction Set Basis**: The categorization of CISC and RISC is based on the complexity of the instruction set, which refers to the number of instructions available.
  • 📈 **Complex vs. Reduced Instruction Set**: CISC has a large number of instructions, making it complex, whereas RISC has a reduced set of instructions.
  • 🛠️ **Instruction Format**: CISC uses variable-length instruction formats, while RISC uses a fixed-length format, typically 32 bits.
  • 📊 **Program Counter Clarity**: Fixed-length instructions in RISC provide clarity for the program counter, simplifying the process of locating the start and end of each instruction.
  • 🔄 **Addressing Modes**: CISC supports a large number of addressing modes, whereas RISC has a limited, more straightforward set of addressing modes.
  • 💰 **Cost and Power**: CISC architectures are more powerful but costly due to the complexity and extensive instruction set, whereas RISC is less costly and more efficient.
  • 🔄 **Cycles and CPI**: CISC instructions may require multiple cycles to complete, leading to a higher CPI (Cycles Per Instruction), while RISC aims for a CPI of 1 through pipelining.
  • 💾 **Memory Utilization**: CISC tends to perform more memory-to-memory operations, whereas RISC relies more on register-to-register operations with load and store instructions.
  • 🛠️ **Control Unit**: CISC architectures often use microprogrammed control units, which are flexible, whereas RISC uses hardwired control units, which are fixed and less flexible.

Q & A

  • What is the main difference between CISC and RISC architectures?

    -The main difference between CISC (Complex Instruction Set Computer) and RISC (Reduced Instruction Set Computer) architectures is the number of instructions. CISC has a large number of instructions, while RISC has a reduced number of instructions.

  • What is the significance of variable length instruction format in CISC?

    -In CISC, the variable length instruction format means that instructions can be of different sizes, such as 16-bit, 32-bit, or 64-bit, which is not of one fixed size.

  • How does fixed length instruction format benefit the program counter in RISC?

    -Fixed length instruction format in RISC benefits the program counter by providing a consistent size for each instruction, making it easier to determine the start and end of each instruction and the address of the next available instruction.

  • What is the impact of the number of addressing modes on the complexity of instructions in CISC and RISC?

    -CISC supports a large number of addressing modes, which can make the instructions more complex. In contrast, RISC supports fewer addressing modes, which simplifies the instructions.

  • Why is the cost of hardware higher in CISC compared to RISC?

    -The cost of hardware is higher in CISC because it requires more complex instructions, additional functionality, and more resources to support the large number of instructions.

  • How does the execution of instructions differ between CISC and RISC in terms of cycles?

    -CISC may require multiple cycles to execute complex instructions, while RISC aims to complete instructions in a single cycle, often using pipelining to maintain a CPI (Cycles Per Instruction) value of 1.

  • What is the typical memory manipulation strategy in CISC?

    -In CISC, instructions are mostly memory-to-memory, meaning that many operations are performed directly in RAM without the need for intermediate register operations.

  • How does RISC utilize memory compared to CISC?

    -RISC tends to use registers more often for operations and relies on load and store instructions to move data between memory and registers, rather than performing operations directly in memory.

  • What is the difference between micro programmed control unit and hardwired control unit in the context of CISC and RISC?

    -CISC typically uses a micro programmed control unit, which allows for more flexibility and the ability to make changes. RISC, on the other hand, uses a hardwired control unit, which is more fixed and less flexible but can be more efficient.

  • Can you provide an example of a RISC architecture mentioned in the script?

    -Yes, Fugaku, which was a supercomputer in 2020, is mentioned as an example of a RISC system.

  • How does the script illustrate the difference between CISC and RISC with an example involving multiplication?

    -The script provides an example where in CISC, a single MULT instruction can be used to multiply values X and Y directly in memory, whereas in RISC, this operation would require multiple instructions, such as loading the values into registers, performing the multiplication, and then storing the result back in memory.

Outlines

00:00

💻 Introduction to CISC and RISC

The speaker begins by introducing the video's focus on the differences between CISC (Complex Instruction Set Computer) and RISC (Reduced Instruction Set Computer) architectures. Emphasizing their importance for competitive and university-level exams, the speaker encourages viewers to engage with the content through likes and subscriptions. The video aims to cover the remaining topics in the computer organization and architecture syllabus, providing a comprehensive playlist for viewers. The core distinction between CISC and RISC lies in the number of instructions: CISC has a large set, while RISC has a reduced set. This fundamental difference leads to various other characteristics, such as variable-length instruction formats in CISC versus fixed-length in RISC. The speaker also discusses the implications for program counter readability and the complexity of handling variable instruction lengths.

05:03

🔍 Deep Dive into CISC and RISC Characteristics

In the second paragraph, the speaker delves deeper into the characteristics of CISC and RISC architectures. CISC supports a large number of addressing modes, which can be complex to manage due to the variety, whereas RISC supports fewer modes, simplifying the process. The speaker also touches on the cost implications, with CISC being more expensive and powerful due to its extensive instruction set, which requires more hardware support. The discussion continues with the concept of single-cycle versus multiple-cycle instructions and the impact on the CPU's performance, measured by CPI (Clock Cycles per Instruction). The speaker contrasts memory-to-memory operations in CISC with the register-to-register operations in RISC, highlighting the efficiency of memory utilization in CISC. The paragraph concludes with examples of architectures that use RISC, such as the Fugaku supercomputer, and a practical example to illustrate the differences in executing a multiplication operation in both architectures, emphasizing the trade-offs between the two in terms of micro-operations and memory usage.

Mindmap

Keywords

💡Gate Smashers

Gate Smashers appears to be the name of the educational channel hosting the video. It is likely focused on providing content related to competitive exams and computer science topics. The channel's name suggests a focus on overcoming challenges or 'smashing through' barriers in learning.

💡Risk

In the context of the video, 'Risk' seems to be a typographical error for 'RISC'. RISC stands for Reduced Instruction Set Computer. It is a computer architecture that uses a smaller set of simple, general-purpose machine-language instructions. The video explains that RISC architecture is characterized by a reduced number of instructions, fixed-length instruction formats, and a simple set of addressing modes.

💡CISC

CISC stands for Complex Instruction Set Computer. It is a computer architecture that uses a large number of instructions, including complex and specialized instructions. The video contrasts CISC with RISC, highlighting that CISC has a variable-length instruction format and supports a larger number of addressing modes, which can make the architecture more powerful but also more costly and complex.

💡Instruction Set

The instruction set refers to the basic set of commands that a computer's central processing unit (CPU) can understand and execute. The video discusses how the size of the instruction set differentiates CISC and RISC architectures, with CISC having a larger set and RISC having a smaller, more streamlined set.

💡Variable Length Instruction Format

This term refers to the way instructions can vary in length in CISC architectures. The video script mentions that in CISC, instructions can be 16-bit, 32-bit, 64-bit, etc., and are not of one fixed size, which contrasts with the fixed-length instruction format in RISC.

💡Fixed Length Instruction Format

Fixed length instruction format is a characteristic of RISC architectures where all instructions are of the same length, typically 32 bits. The video explains that this makes it easier for the program counter to manage and predict the flow of instructions.

💡Program Counter

The program counter is a register in the CPU that indicates where the next instruction is located in memory. The video script explains that in RISC architectures with fixed-length instructions, the program counter can easily determine the start and end of each instruction.

💡Addressing Modes

Addressing modes refer to the various ways a processor can determine the memory address of an operand. The video script contrasts CISC architectures, which support a large number of addressing modes, with RISC, which typically supports fewer modes. This affects how instructions are written and executed.

💡Cost

In the context of the video, 'cost' refers to the hardware complexity and expense associated with different computer architectures. CISC architectures are described as more costly due to their complex instruction sets, whereas RISC architectures are simpler and less expensive to implement.

💡CPI

CPI stands for Clock Cycles per Instruction and is a measure of how many processor cycles it takes to execute an instruction. The video explains that RISC architectures often aim for a CPI of 1, meaning each instruction is completed in a single cycle, which can lead to more efficient processing.

💡Micro-operations

Micro-operations are the elementary steps that a processor can execute. The video script uses the term to contrast the number of micro-operations required in CISC versus RISC architectures, suggesting that CISC may require fewer micro-operations due to its complex instructions.

💡Memory Utilization

Memory utilization refers to how efficiently a computer system uses its memory resources. The video script suggests that RISC architectures may utilize memory more efficiently because they perform more operations in registers rather than directly in memory.

Highlights

Difference between Risk and CISC is crucial for competitive exams and college/university level exams.

CISC and RISC categorization is based on the instruction set complexity.

CISC has a large number of instructions, making the system complex.

RISC has a reduced number of instructions, simplifying the system.

CISC uses variable length instruction format.

RISC uses fixed length instruction format, benefiting the program counter.

CISC supports a large number of addressing modes.

RISC supports fewer addressing modes, simplifying instruction handling.

CISC is more costly and powerful due to the large instruction set.

RISC is less costly with simpler instructions that can be combined for complexity.

CISC may require multiple cycles to complete an instruction.

RISC aims to complete instructions in a single cycle, improving CPI.

CISC performs more memory-to-memory operations.

RISC uses registers more often, with load and store instructions as the norm.

CISC is based on a micro programmed control unit, allowing changes.

RISC is based on a hardwired control unit, providing a fixed environment.

Examples of popular architectures using RISC include Fugaku, a supercomputer from 2020.

RAM cost reduction has made RISC more popular than CISC in recent times.

The video provides a clear example comparing CISC and RISC operations.

Transcripts

play00:00

Dear students, welcome to Gate Smashers

play00:02

In this video I am going to explain the difference between

play00:05

Risk and Cisc which is a very important topic

play00:08

From your competitive exams point of view

play00:10

Even it is very important for college and university level exams

play00:14

So guys like the video quickly and subscribe the channel

play00:17

If you haven't done it yet and if you have done it

play00:19

Then you can share it with other devices

play00:21

Subscribers are very important

play00:23

So as you know that the maximum syllabus of computer organization and architecture

play00:28

We have completed the maximum syllabus on our channel

play00:30

You will get all the videos in the playlist

play00:32

I am covering the remaining 2-3 topics

play00:35

So that you can prepare the entire playlist, the entire syllabus in that playlist

play00:40

So if we talk about cisc and Risk

play00:43

So the categorization we have done

play00:45

On what basis is it done based on an instruction set

play00:49

Means how many number of instructions we have to put

play00:51

So what is the meaning of complex instruction set

play00:54

Why we made the system complex

play00:57

Because number of instructions are large

play00:59

And if we talk about it, what is the meaning of reduced instruction set

play01:03

Number of instructions are less

play01:05

The most important difference is this

play01:07

Number of instructions are large

play01:09

What is the number of instructions, I have less

play01:12

Now here on the basis of that only the other differences are being made

play01:16

Then if we talk here

play01:18

Variable length instruction format

play01:20

Means the instructions we are using in this

play01:23

Is 16 bit, 32 bit, 64 bit

play01:28

Means it is not of one size

play01:30

We have kept instructions of different sizes

play01:34

But here I have fixed length instruction format

play01:38

Means I am using 32 bit instruction format

play01:41

So in that only my opcode, operand, whatever field I am keeping for instruction

play01:46

I am doing fixed format

play01:48

So this point gives benefit to whom

play01:52

It gives benefit to program counter

play01:54

Because program counter knows that instruction start from here

play01:57

And next instruction starts from here

play01:59

End is here, from that next starts from here

play02:02

Here it is a little difficult, why

play02:04

Because if one instruction is of 1 byte

play02:06

It is of 2 byte, 4 byte, 8 byte

play02:09

So according to that program counter has to contain address of next available instruction

play02:15

So this point is a little bit

play02:17

For that problem can not be called a problem

play02:20

Means this point is a little bit difficult according to program counter

play02:24

But this is its easiness, that's it

play02:26

You can write no to problem or that

play02:29

Then if we talk about large number of addressing modes

play02:32

Here it supports large number of addressing modes

play02:35

What is large number? Means all your 8-9 addressing modes have variations

play02:40

What is supporting all of them?

play02:42

Few number of addressing modes

play02:44

Maximum we have 4 addressing modes here

play02:47

And here I have so many addressing modes

play02:50

What problem can come?

play02:51

Or what you can say is important point

play02:53

If you are asked in exam

play02:55

Then you have to mention in the instruction

play02:59

Which addressing mode is there, where is your operand

play03:02

So this thing you have to mention separately here

play03:05

Because number of addressing mode is supporting more

play03:07

Number of addressing mode is supporting less

play03:09

That's why it works properly in fixed length

play03:12

Then if we talk about cost

play03:14

Cost is high, more powerful

play03:16

Simple reason you know is number of instruction set is large

play03:20

Number of instruction set large means

play03:23

That if you have to do any work, division, multiplication

play03:27

You have to check any bit, if you have to check anything

play03:31

You will get maximum instructions in this

play03:34

But here you will not get maximum instructions

play03:37

Yes, you can use available instructions

play03:40

And make complex instructions

play03:43

But by default you are getting

play03:45

Easy instructions or less number of instructions

play03:48

You can use them multiple times and make it as a complex

play03:53

But here you will get complex by default

play03:55

On hardware obviously

play03:57

If you want to get more number of instructions

play04:00

Then hardware should be more available

play04:04

Now let's say you have to do addition, subtraction

play04:07

You have to do multiplication, division

play04:10

So hardware should support you properly

play04:13

You should have more additional functionality in hardware

play04:16

That's why it will be costly but powerful

play04:18

What is here?

play04:20

Let's say you have only addition and subtraction

play04:22

If you don't want multiplication, what can you do?

play04:25

To do multiplication

play04:27

You can get addition multiple times

play04:30

So what does it mean?

play04:31

It easily provides you all the instructions

play04:35

But if hardware cost will be more

play04:36

That's why overall cost will increase

play04:38

And overall cost will be less

play04:41

Then if we talk about several cycle instructions

play04:43

Means instructions are not necessary

play04:45

That work will be completed in one cycle

play04:47

You can also take multiple cycles

play04:49

The CPI value is a bit here

play04:51

That's why it is a bit messy, it is too much

play04:53

But here we try to keep CPI 1 using the pipeline

play04:57

Because instruction is complete in single cycle

play05:00

Then manipulation directly in the memory

play05:03

Here your instructions are mostly memory to memory

play05:06

Means whatever changes we are manipulating in memory

play05:10

We are doing it directly in RAM

play05:12

Here we are using registers

play05:14

Here we are using register to register instructions more

play05:18

Although load and store will be used by default

play05:21

Because you will load data from memory

play05:23

And you will store the final result

play05:26

So here load and store is mainly used

play05:28

Related to memory

play05:29

But here the proper utilization of memory is there

play05:32

Most of the work we are performing in memory

play05:36

Then this micro programmed control unit is based

play05:38

And this is hardwired control unit based

play05:41

Control unit that generates signals

play05:43

If you want to fetch, decode, execute any instruction

play05:46

All this work is to generate signals of control unit

play05:49

So this is micro programmed based

play05:51

In which we can make changes

play05:53

But this is hardwired

play05:55

Fixed kind of environment

play05:57

These are some examples that you can note

play05:59

No need to remember

play06:01

But mainly you can note some examples

play06:04

I have written the popular architecture here

play06:08

Like this Fugaku

play06:10

Actually in 2020

play06:12

Supercomputer

play06:13

This is the example of supercomputer

play06:15

So it also uses RISC system

play06:18

I am finally summarizing this with a small example

play06:20

So that you can get clear from the example

play06:23

Let's say this is my RAM

play06:24

Register set and this is my execution unit

play06:27

Now see in RAM let's say my location is 2 by 2

play06:30

In 2 by 2 let's say my number of rows is 4

play06:33

So in 2nd row in 2nd column there is X

play06:36

In 3rd row in 3rd column there is Y

play06:38

Just for example I am taking

play06:40

Now see what I have to do in CISC

play06:43

In CISC directly use MULT instruction

play06:48

What is there in 2 column 2

play06:51

X is there, so take X

play06:53

In column 3 what is there in 3 column 3

play06:55

Y is there, so take Y

play06:57

So it has to complete in one instruction

play07:00

And it means in a way X is equal to X into Y

play07:03

Means whatever location you read in it, take it

play07:06

And directly multiply in memory

play07:09

And store in the same location of memory

play07:12

So when you use this instruction

play07:14

Or you can say let's say you are using this code

play07:17

So in assembly code, machine code

play07:20

What is the number of micro instructions to do?

play07:22

To do less, why?

play07:23

Because this format which is more

play07:25

You can say the instructions are compatible in a way

play07:28

So that's why it has to produce less number of micro operations

play07:31

See here we are doing the same work

play07:34

First of all what will have to be done

play07:36

Whatever data is in this location, it has to be brought in register

play07:38

Loaded, then loaded the one in the other location

play07:42

Then what we used Prode

play07:44

What we did in registers

play07:46

Produced A and B

play07:48

And finally we stored the same value again in 2x2 location

play07:52

So we are doing this whole work in 4 instructions

play07:55

This is done in 1 micro instructions

play07:57

So somewhere memory utilization is more here

play08:01

But if we talk about today's time

play08:03

RAM has become very cheap

play08:05

As compared to the last 10, 20, 30 years

play08:09

So that's why this system is more popular than this

play08:12

So these small examples as much as you have told

play08:14

These points are more than sufficient

play08:16

For your college, university exam as well as competitive exam

play08:19

Thank you.

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
CISCRISCArchitectureComputer ScienceInstruction SetExam PrepTech EducationHardware CostSoftware EfficiencyTech Tutorial
Benötigen Sie eine Zusammenfassung auf Englisch?