RISC vs CISC | RISC | Reduced Instruction Set Computer | CISC | Complex Instruction Set Computer

Engineering Funda
1 Jul 202409:43

Summary

TLDRThis video offers a comprehensive comparison between RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer) architectures. It explains the fundamental differences in instruction set size, instruction fetch time, and design philosophy. The video clarifies that RISC has a fixed, smaller set of instructions leading to simpler and faster execution, whereas CISC features a larger, more complex set allowing for more compact code. It also touches on aspects like addressing modes, the number of registers, compiler design, and the suitability of each architecture for specific types of operations, concluding with the advantages and disadvantages of both.

Takeaways

  • πŸ˜€ RISC stands for Reduced Instruction Set Computer and CISC for Complex Instruction Set Computer, highlighting the fundamental difference in the number and complexity of instructions.
  • πŸ” RISC has a fixed instruction size, whereas CISC's instruction size varies based on the complexity of the instruction.
  • ⏱ In RISC, the instruction fetch time is consistent for all instructions, while in CISC, it varies depending on the instruction's complexity.
  • πŸ“š RISC has a smaller and simpler instruction set compared to CISC, which has a larger and more complex set with a variety of instructions.
  • πŸ”„ RISC is based primarily on register-to-register operations, while CISC includes a wider range of memory-based instructions.
  • πŸ“ RISC has fewer addressing modes due to its focus on register operations, whereas CISC offers more modes due to its memory-based instructions.
  • πŸ’ͺ RISC has more registers within the CPU, as it relies heavily on register-to-register operations, while CISC has fewer due to its reliance on complex instructions.
  • πŸ› οΈ Compiler design is simpler for RISC due to its smaller and simpler instruction set, whereas it's more complex for CISC due to its larger and more complex set.
  • πŸ“ˆ RISC results in longer program sizes because simple instructions require more steps to perform tasks, while CISC has shorter programs due to the availability of complex instructions.
  • πŸ”’ The number of operands in RISC is fixed, mainly involving registers, while in CISC, the number of operands varies with the instruction, involving both registers and memory.
  • πŸ”§ RISC uses a hardware control unit due to its fixed and simple instruction set, making it faster, while CISC often uses micro-programmed control units due to the complexity of its instructions.
  • πŸš€ Execution speed is generally faster in RISC due to efficient pipelining facilitated by fixed instruction size, whereas CISC faces inefficiencies due to variable instruction size and the need for frequent pipeline flushes.

Q & A

  • What does RISC stand for in computer architecture?

    -RISC stands for Reduced Instruction Set Computer. It is a design approach that uses a smaller set of simple instructions with a fixed instruction size.

  • What is the full form of CISC in the context of computer design?

    -CISC stands for Complex Instruction Set Computer. It features a larger set of complex instructions with varying instruction sizes.

  • Why is the instruction size fixed in RISC architecture?

    -The instruction size is fixed in RISC architecture to simplify the design and improve the efficiency of instruction fetching and pipelining.

  • How does the instruction fetch time differ between RISC and CISC architectures?

    -In RISC, the instruction fetch time is constant for all instructions due to the fixed instruction size. In CISC, the fetch time varies depending on the complexity of the instruction.

  • What is the typical size and complexity of the instruction set in RISC and CISC architectures?

    -The instruction set in RISC is small and simple, while in CISC it is large and complex, with a variety of instructions available.

  • How does the number of addressing modes compare between RISC and CISC architectures?

    -RISC architecture has fewer addressing modes, mostly because most instructions are based on registers. CISC, on the other hand, has more addressing modes due to its complexity and variety of instructions involving both registers and memory.

  • Why does RISC architecture have more registers in the CPU?

    -RISC architecture has more registers because it relies heavily on register-to-register operations, which simplifies the design and execution of instructions.

  • What is the typical complexity of compiler design for RISC and CISC architectures?

    -Compiler design is simpler for RISC due to its small and simple instruction set. For CISC, compiler design is more complex due to the large and complex instruction set and the variety of addressing modes.

  • Why is the program size typically longer in RISC architecture compared to CISC?

    -The program size is longer in RISC because its simple instructions require more steps to perform complex tasks, whereas CISC can perform the same tasks with fewer, more complex instructions.

  • How does the number of operands in instructions differ between RISC and CISC architectures?

    -In RISC, the number of operands is typically fixed, often involving registers and memory. In CISC, the number of operands can vary depending on the instruction, which can involve a mix of registers and memory.

  • What is the typical control unit design for RISC and CISC architectures?

    -RISC typically uses a hardware control unit due to its fixed and simple instruction set, which allows for direct execution. CISC often uses a micro-program-controlled unit due to the complexity of its instruction set, which requires more elaborate control mechanisms.

  • Why is execution speed generally faster in RISC compared to CISC?

    -Execution speed is faster in RISC because of the uniform instruction size, which allows for efficient pipelining. In CISC, the variable instruction size can lead to inefficient pipelining and the need to flush the pipeline more frequently, slowing down execution.

  • Which type of operations are RISC and CISC architectures more suitable for?

    -RISC is more suitable for dedicated operations due to its fixed and simple instructions, while CISC is more suitable for a variety of operations due to its complex instructions that can handle different tasks more efficiently.

Outlines

00:00

πŸ€– Introduction to RISC and CISC Architectures

This paragraph introduces the concepts of Reduced Instruction Set Computer (RISC) and Complex Instruction Set Computer (CISC) architectures. The speaker explains that RISC has fewer and simpler instructions, while CISC features a larger set of complex instructions. The video promises to delve into the design philosophies and differences between the two, providing insights into instruction size, fetch time, set size, addressing modes, and the number of registers involved. It sets the stage for a comprehensive comparison based on various parameters.

05:02

πŸ” Deep Dive into RISC and CISC Characteristics

The second paragraph delves deeper into the characteristics of RISC and CISC architectures. It discusses the simplicity and fixed instruction size of RISC, which leads to a smaller and simpler instruction set, fewer addressing modes, and a higher number of registers within the CPU. In contrast, CISC is characterized by its variable instruction size, larger and more complex instruction set, a greater variety of addressing modes, and fewer registers due to its reliance on complex instructions. The paragraph also touches on compiler design, program size, code density, the number of operands, control unit complexity, execution speed, and the suitability of each architecture for specific types of operations. It concludes with the advantages of RISC in pipelining and its suitability for dedicated operations, whereas CISC is better for varied operations due to its complex instruction set.

Mindmap

Keywords

πŸ’‘RISC

RISC stands for Reduced Instruction Set Computer. It is a type of microprocessor architecture that utilizes a small, highly optimized set of instructions. In the video, it is emphasized that RISC has fewer instructions compared to CISC, leading to simpler and faster execution, ideal for dedicated operations.

πŸ’‘CISC

CISC stands for Complex Instruction Set Computer. This architecture includes a large set of instructions, allowing more complex operations to be performed with fewer lines of assembly code. The video contrasts CISC with RISC, noting that CISC's complex instructions and multiple addressing modes make it suitable for a variety of operations.

πŸ’‘Instruction Set

An instruction set is the collection of instructions that a CPU can execute. In the video, the RISC instruction set is described as small and simple, while the CISC instruction set is larger and more complex, impacting the design and functionality of the processors.

πŸ’‘Instruction Size

Instruction size refers to the length of the instructions in bits. The video explains that RISC instructions have a fixed size, leading to uniformity in execution time, while CISC instructions vary in size depending on their complexity, affecting fetch time and pipeline efficiency.

πŸ’‘Instruction Fetch Time

Instruction fetch time is the time it takes to retrieve an instruction from memory. The video highlights that RISC fetch time is constant due to fixed instruction size, whereas CISC fetch time varies with instruction complexity, impacting overall performance.

πŸ’‘Addressing Modes

Addressing modes are the ways in which the operand of an instruction is specified. RISC has fewer addressing modes because it mainly operates with registers, while CISC supports many addressing modes due to its complex instructions, as discussed in the video.

πŸ’‘Registers

Registers are small, fast storage locations within the CPU. The video notes that RISC architectures have many registers to support their simplified instruction sets, while CISC architectures have fewer registers, relying more on memory operations.

πŸ’‘Compiler Design

Compiler design refers to the complexity of translating high-level code into machine code. According to the video, RISC compilers are simpler due to the smaller, more uniform instruction set, while CISC compilers are more complex due to the diverse and intricate instruction set.

πŸ’‘Program Size

Program size is the amount of memory required to store a program. The video explains that RISC programs tend to be longer because of the simpler instructions, while CISC programs are shorter due to their complex instructions that accomplish more in fewer lines.

πŸ’‘Pipelining

Pipelining is a technique where multiple instruction phases are overlapped. The video states that RISC benefits more from pipelining due to its fixed instruction size, leading to fewer pipeline stalls, while CISC suffers from inefficient pipelining due to variable instruction sizes.

Highlights

Basic comparison between RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer) architecture is discussed.

RISC has fewer instructions in the set compared to CISC which has more complex instructions.

Instruction size in RISC is fixed, while it varies in CISC depending on the complexity of the instruction.

RISC has the same instruction fetch time for all instructions, whereas in CISC it varies based on instruction complexity.

RISC's instruction set is small and simple, while CISC's is large and complex with a variety of instructions.

RISC is based on load and store operations, whereas CISC has a variety of complex instructions concerning memory.

RISC has fewer addressing modes due to its reliance on registers, while CISC offers more due to its complexity.

RISC has more registers inside the CPU, as it is based on register execution, while CISC has fewer due to its complexity.

Compiler design is simpler for RISC due to its small set of instructions, while it's complex for CISC.

Program size tends to be longer in RISC due to its simple instructions, while it's shorter in CISC with complex instructions.

RISC has a fixed number of operands, mainly in registers, while CISC has variable operands including memory.

RISC uses a hardware control unit for its fixed and simple instructions, while CISC uses micro-program controlled due to complexity.

RISC offers faster execution speed due to efficient pipelining, while CISC's variable instruction size leads to inefficiencies.

Pipelining is more effective in RISC due to its fixed instruction size, while it's less effective in CISC.

RISC is more suitable for dedicated operations, while CISC is suitable for a variety of operations due to its complex instructions.

The major advantage of CISC is its better code density compared to RISC.

Transcripts

play00:01

welcome to engineering Funda family in

play00:03

this video I'll be discussing basic

play00:05

comparison in between risk and cisk

play00:08

architecture my dear students risk means

play00:10

reduced instruction set computer and

play00:13

cisk means complex instruction set

play00:16

computer so risk is having less number

play00:19

of instruction in set of computer and in

play00:23

cisk you'll be having complex

play00:25

instruction so there will be many

play00:26

instruction in set of computer but when

play00:30

we talk about both of these computers

play00:32

design then there are many things that

play00:35

you need to know with respect to

play00:36

different parameters I'll explain you

play00:39

each and everything with respect to

play00:40

different parameter in this video so I

play00:42

can give you guarantee after watching

play00:44

this video you'll be having exit idea

play00:46

about what is risk what is cisk and how

play00:49

design philosophy is there behind risk

play00:52

and cisk so my dear students here when

play00:55

we talk about risk and cisk then first

play00:58

of all you should know what what is the

play01:00

basic full form which is there with risk

play01:02

it is reduced instructions at computer

play01:05

and cisk is complex instruction set

play01:09

computer so with risk you'll be having

play01:12

less number of instruction in computer

play01:15

and with cisk you'll be having many

play01:17

instruction along with complex

play01:19

instruction in computer Here My Dear

play01:22

students you should know instruction

play01:25

size with risk it is fixed right while

play01:28

with cisk it varies with respect to

play01:31

instruction for complex instruction size

play01:34

of instruction will be more and for

play01:37

simple instruction size of instruction

play01:39

will be less right so Here My Dear

play01:41

students size of instruction varies with

play01:45

respect to operation in CIS but it is

play01:47

almost fixed with all the instructions

play01:50

with risk Right Here My Dear students

play01:54

instruction fetch time that is also same

play01:57

for all the instruction with risk but

play02:01

instruction fetch time that varies with

play02:04

respect to instruction in cisk as if you

play02:07

have complex instruction in that case

play02:09

you need to have more instruction fetch

play02:12

time and for simple instruction it will

play02:15

take less time to fetch the instruction

play02:17

right so based on complexity instruction

play02:21

fetch time that is even changing with

play02:24

respect to cisk architecture while with

play02:27

risk you'll be observing it is Con

play02:29

instant for almost all the instructions

play02:32

Right Here My Dear students when we talk

play02:35

about instruction set then it will be

play02:37

small and simple for risk right but with

play02:40

cisk it will be large and complex there

play02:43

are varieties of instructions will be

play02:45

available right there will be more

play02:46

memory kind of instructions that will be

play02:49

available with cisk with risk

play02:51

instruction set that will be purely

play02:53

based on resistors only right as risk is

play02:57

there based on load and store and and

play03:00

CIS is not there based on load and store

play03:02

right so as cisk is not there based on

play03:05

load and store varieties of complex

play03:07

instructions are available with respect

play03:09

to memory but risk architecture that is

play03:12

there based on resistors only right so

play03:16

small and simple instructions will be

play03:17

there with risk architecture my dear

play03:21

students addressing modes will be less

play03:24

with risk architecture why the reason is

play03:26

most of the instructions are based on

play03:28

resistors only right so less addressing

play03:31

modes will be there and here with cisk

play03:34

many addressing modes will be there why

play03:36

the reason is cisk architecture is

play03:39

having instructions based on resistors

play03:42

as well as memory so when you operate

play03:45

with varieties of modes with respect to

play03:48

memory you'll be having many other modes

play03:51

while with risk we don't have many modes

play03:53

with respect to memory right we just

play03:55

have load and store mode with respect to

play03:58

memory so less number of modes will be

play04:00

there in terms of addressing mode and

play04:03

CIS is having more addressing mode right

play04:07

my dear students when we talk about

play04:09

number of resistors then risk will be

play04:11

having many resistors inside CPU while

play04:15

with CIS it will be having few resistors

play04:18

why the reason is risk architecture that

play04:21

is based on resistors execution only and

play04:24

CIS architecture that is based on

play04:27

complexity of instructions right so here

play04:31

you don't need to have many resistors

play04:32

you will be operating with memory right

play04:35

so inside memory you can store the data

play04:38

and you can operate along with

play04:39

instructions while with risk you'll be

play04:42

performing almost all the operations

play04:43

with respect to resistors so you should

play04:46

have many resistors in Risk architecture

play04:49

Right Here My Dear students when we talk

play04:52

about design of compiler then it will be

play04:55

simple with risk why the reason is we

play04:58

have small set of instructions right and

play05:02

when we talk about cisk architecture its

play05:04

compiler design will be complex why the

play05:06

reason is instruction set is complex

play05:09

many addressing modes are there so your

play05:12

compiler design will be complex with

play05:14

cisk

play05:15

architecture Here My Dear students when

play05:17

we talk about program size then it will

play05:20

be long with risk architecture why the

play05:23

reason is we have simple instructions it

play05:26

is based on resistors only right so to

play05:29

perform any particular task you'll have

play05:31

to write many instructions so your

play05:33

program size will be long in cisk we'll

play05:36

be having small program why the reason

play05:39

is we are having complex instructions

play05:42

right and because of complex

play05:43

instructions are available by writing

play05:46

few instructions only we can perform

play05:48

program right so you'll be observing

play05:51

risk architecture is having weak code

play05:54

density with respect to program and CIS

play05:57

architecture that is having better code

play05:59

density better code density means less

play06:02

number of instructions are there in

play06:05

given program right while with risk

play06:08

you'll be having more instructions for

play06:09

same program that's why we code density

play06:11

will be there my dear students when we

play06:14

talk about number of operants then that

play06:16

is fixed with risk architecture mainly

play06:19

it will be there in resistors only why

play06:21

the reason is most of the instructions

play06:23

are there with respect to resistors only

play06:25

and load and store is happening with

play06:27

risk architecture right so one operand

play06:30

that will be resistor only second

play06:32

operand could be Memory but it will be

play06:35

having fixed number of operands when we

play06:38

talk about cisk architecture operants

play06:42

varies with respect to instructions it

play06:44

can be resist it can be Memory right so

play06:47

you'll be observing variable operant are

play06:51

there for simple instructions you may

play06:53

have resistors as a operant but for

play06:56

complex instruction you may be having

play06:58

resistors as well as memory as a operand

play07:02

right my dear students when we talk

play07:04

about control unit then Hardware control

play07:08

unit is there with risk why the reason

play07:10

is instruction set is fixed it is having

play07:13

simple instruction so we can have

play07:15

hardwire control right but with cisk if

play07:19

you provide Hardware control then it

play07:21

will be very costly right so here we

play07:23

will be having control unit with micro

play07:26

program controlled right so here

play07:30

Hardware control that will be faster

play07:32

compared to micro program controlled

play07:34

with cisk that you should know right as

play07:38

Hardware will provide direct execution

play07:40

in micro program micro program will get

play07:43

executed and it will control that right

play07:46

here when we talk about execution speed

play07:49

then risk is very fast compared to cisk

play07:52

why the reason is here instruction size

play07:55

is same because of that you can have

play07:57

efficient pipelining here instruction

play08:00

size is different so you can have

play08:02

inefficient pipelining in pipelining in

play08:05

parallel we can execute many instruction

play08:07

here because of inefficient pipelining

play08:10

you need to flush the pipelining

play08:12

frequently in that case your execution

play08:14

will be slower right only major

play08:18

advantage which is there with CIS that

play08:20

is better code density compared to risk

play08:23

that one can say Right Here My Dear

play08:26

students as I have told you pipelining

play08:29

is more effective with risk and it will

play08:31

be less effective with cisk right why

play08:34

the reason is variable size instruction

play08:37

will insert bubble in the pipelining and

play08:40

in Branch execution you'll be observing

play08:43

that you'll have to flush the pipeline

play08:45

right so cisk is having more bubbles in

play08:49

the pipeline risk is having less bubble

play08:51

in the pipeline that's why risk is

play08:54

effective in pipelining and my dear

play08:58

students when we talk about processor

play09:00

then you should know this risk is more

play09:03

suitable for dedicated operation and

play09:06

cisk that is more suitable for varieties

play09:09

of operation why it is more suitable for

play09:12

varieties of operation the reason is

play09:14

complex instructions are there with risk

play09:17

you have fixed and simple instructions

play09:21

so you will have to perform dedicated

play09:23

operation using risk but as if you have

play09:27

varieties of operation then you should

play09:29

go for for cisk so that is how risk and

play09:32

cisk are there and this is how design

play09:34

philosophy is there I hope it is clear

play09:36

to you still if any quer is there what I

play09:38

want is you just post that in comment

play09:39

box to have discussion with me thank you

play09:42

so much for watching this video

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
RISC ArchitectureCISC ArchitectureComputer DesignInstruction SetReduced InstructionComplex InstructionCPU DesignEngineering EducationComputing ConceptsTech TutorialEducational Video