6. OCR A Level (H046-H446) SLR2 - 1.1 CISC vs RISC

Craig'n'Dave
19 Aug 202010:28

Summary

TLDRThis video explores the differences between CISC and RISC processors. CISC processors use complex instructions to complete tasks in fewer lines of assembly, while RISC processors use simpler instructions executed in a single clock cycle. Despite requiring more lines of code, RISC's efficiency, lower power consumption, and use of pipelining make it dominant in modern devices. The video also discusses the performance equation and historical challenges RISC faced before becoming the industry standard.

Takeaways

  • 💻 **Instruction Set Importance**: The script explains that at the core of all computers is the instruction set, which is the set of all machine code instructions recognized by the CPU.
  • 🔍 **CISC vs RISC**: There are two main categories of instruction sets: Complex Instruction Set Computers (CISC) and Reduced Instruction Set Computers (RISC).
  • 📚 **CISC Efficiency**: CISC processors aim to complete tasks with fewer lines of assembly code, which means the processor hardware and circuitry is more complex.
  • 🔧 **CISC Example**: The script uses 'malt' as an example of a complex instruction in CISC that can multiply two numbers and store the result in one operation.
  • 📉 **CISC Decline**: CISC architecture, once common in desktops and laptops, is now less common, with Intel's x86 processors being a notable exception.
  • 🏃 **RISC Simplicity**: RISC processors use simple instructions that are executed within a single machine or clock cycle, which requires more lines of assembly code.
  • 🚀 **RISC Performance**: RISC architecture can take advantage of pipelining to speed up the processor, as all instructions have uniform execution times.
  • 🔋 **RISC Power Efficiency**: RISC processors are popular in low-power devices due to their lower energy requirements and simpler hardware.
  • 📈 **RISC Dominance**: ARM and other RISC-based processors now make up over 90% of all processors in use, indicating their widespread adoption.
  • 📊 **Performance Equation**: The script introduces a performance equation that contrasts CISC's focus on minimizing instructions per program with RISC's focus on reducing cycles per instruction.
  • 📱 **RISC Adoption**: Despite early challenges, RISC has become dominant due to factors like the reduction in RAM prices and advancements in compiler technology.

Q & A

  • What is the core element of all computers?

    -The core element of all computers is the instruction set, which is the set of all instructions written in machine code that can be recognized and executed by a given processing unit or CPU.

  • What are the two main categories of instruction sets?

    -The two main categories of instruction sets are Complex Instruction Set Computer (CISC) and Reduced Instruction Set Computer (RISC).

  • What is the primary goal of CISC processors?

    -The primary goal of CISC processors is to complete tasks in as few lines of assembly as possible, which means the processor hardware and circuitry is more complicated to understand and execute a series of operations.

  • What is an example of a complex instruction in CISC?

    -An example of a complex instruction in CISC is 'malt', which would load two values into a register, multiply them together, and store the result back out.

  • Where is CISC architecture mainly found today?

    -CISC architecture is mainly found in desktop computers and laptops, with Intel's x86 processors being an example, although they now operate much like RISC with the use of microcode.

  • What is the aim of RISC processors?

    -The aim of RISC processors is to use simple instructions that will be executed within a single machine or clock cycle.

  • How does RISC handle complex commands that don't exist in its architecture?

    -RISC handles complex commands by separating them into a number of simpler commands, requiring more lines of assembly but each executable in a single clock cycle.

  • What are the benefits of RISC architecture?

    -RISC architecture benefits include lower energy requirements, simpler hardware, more room for general-purpose registers, and the ability to use pipelining to speed up the processor.

  • Why have RISC architectures become popular in low power and portable devices?

    -RISC architectures have become popular in low power and portable devices due to their efficiency, lower energy requirements, and the fact that they can execute instructions in a single clock cycle.

  • What is the performance equation and how does it relate to CISC and RISC?

    -The performance equation is used for expressing a computer's performance potential. CISC aims to minimize instructions per program but sacrifices cycles per instruction, while RISC aims to reduce cycles per instruction at the cost of increasing the number of instructions in the assembly program.

  • Why did it take RISC a long time to gain acceptance on a commercial scale?

    -It took RISC a long time to gain acceptance on a commercial scale due to a lack of software support compared to CISC, and the influence of companies like Intel which were producing powerful CISC processors.

  • How has the reduction in price of RAM and increased sophistication of compiler technology affected RISC?

    -The reduction in price of RAM and increased sophistication of compiler technology has made the RISC emphasis on software over hardware ideal, leading to the widespread adoption of RISC-based processors.

Outlines

00:00

💻 Introduction to CISC and RISC Architectures

This paragraph introduces the concept of instruction sets in computer processors, specifically focusing on Complex Instruction Set Computers (CISC) and Reduced Instruction Set Computers (RISC). It explains that the instruction set is the foundation of all computer operations, detailing how it is written in machine code and understood by the CPU. The paragraph uses a high-level abstraction of a computer's storage design to illustrate the process of executing a calculation using an execution unit and registers. It contrasts CISC processors, which have a wide range of instructions and can execute complex operations in a single instruction, with RISC processors, which use simpler instructions executed in a single machine cycle. The example of multiplying two numbers is used to demonstrate the difference in assembly code complexity between CISC and RISC, with CISC requiring less assembly code but more machine cycles, while RISC requires more assembly code but each instruction is simpler and faster to execute.

05:01

📈 Advantages and Popularity of RISC Architecture

The second paragraph delves into the advantages of RISC architecture, such as the use of simple instructions that can be executed in a single clock cycle, leading to faster processing. It mentions that RISC requires fewer transistors and less complex hardware, which allows for more general-purpose registers and benefits from techniques like pipelining to increase speed. The paragraph also discusses the historical context of RISC gaining popularity over CISC, especially in low-power and portable devices, due to its lower energy requirements and efficiency. It contrasts this with CISC's historical dominance in desktops and laptops, noting that even Intel's x86 processors, which are CISC-based, have adapted to operate more like RISC processors. The paragraph concludes with a summary of the key differences between CISC and RISC architectures, highlighting RISC's prevalence in modern devices.

10:02

📉 The Shift from CISC to RISC in the Market

The final paragraph of the script addresses the shift in the market from CISC to RISC processors. It discusses the performance equation used to express a computer's performance potential, where CISC aims to minimize instructions per program at the cost of more cycles per instruction, while RISC does the opposite. The paragraph notes the historical lack of software support for RISC compared to CISC, especially in the early days when operating systems like Windows 3.1 and 95 were designed with CISC in mind. It also touches on how Intel's dominance in CISC processors initially hindered the adoption of RISC. However, it concludes by stating that the reduction in RAM prices and advancements in compiler technology have made RISC's emphasis on software over hardware ideal, leading to a significant market share for RISC-based processors over CISC, as evidenced by sales data showing a peak for CISC processors in 2011.

Mindmap

Keywords

💡Instruction Set

An instruction set is the foundation of a computer's operation, defining the set of commands that a CPU can understand and execute. In the video, it's described as the 'set of all instructions written in machine code' that a processing unit can handle. This concept is central to understanding the differences between CISC and RISC architectures, as they offer different approaches to handling these instructions.

💡CISC (Complex Instruction Set Computer)

CISC refers to a type of computer architecture where the CPU can execute a wide variety of complex instructions. The video explains that CISC processors are designed to complete tasks with fewer lines of assembly code, which means the hardware is more complex. An example from the script is the 'malt' instruction, which is a hypothetical complex instruction that multiplies two numbers and stores the result. CISC architectures are traditionally found in desktops and laptops, with Intel's x86 processors being a notable example.

💡RISC (Reduced Instruction Set Computer)

RISC architecture focuses on using a smaller set of simple instructions that can be executed within a single machine or clock cycle. The video contrasts RISC with CISC by stating that RISC processors aim to reduce the complexity of hardware, which in turn allows for more general-purpose registers and the use of techniques like pipelining to increase performance. RISC is now prevalent in low-power devices such as smartphones and tablets, with ARM processors being a common example.

💡Assembly Language

Assembly language is a low-level programming language that is specific to a computer architecture. The video uses assembly language to illustrate the difference between CISC and RISC, showing that CISC can achieve a task with fewer assembly instructions but may require more clock cycles, whereas RISC requires more assembly instructions but each can be executed in a single clock cycle.

💡Main Memory

Main memory, also known as RAM, is where a computer stores its data that is readily accessible for processing. In the video script, main memory is depicted as having ten locations, each with a specific address. It's where the numbers to be multiplied are stored and where the result of the multiplication is to be stored, illustrating the flow of data in a computer system.

💡Execution Unit

The execution unit is the part of the CPU that performs arithmetic and logical operations. The video describes it as the component that carries out all calculations, emphasizing that it can only operate on data loaded into registers. This highlights the importance of registers in the processing workflow and the role they play in executing instructions.

💡Registers

Registers are small, fast storage locations within the CPU used for temporarily holding data. The video mentions six registers labeled from r000 to r101, which are used to store data that the execution unit will work on. Registers are a critical component in both CISC and RISC architectures, as they facilitate quick data access and manipulation.

💡Pipelining

Pipelining is a method of improving processor performance by allowing multiple instructions to be processed simultaneously at different stages of the pipeline. The video explains that because RISC instructions are uniform in execution time, they can be effectively pipelined, which contributes to the efficiency and speed of RISC processors.

💡Microcode

Microcode is a low-level programming language used to control the functions of a CPU. The video mentions that Intel's x86 processors, which are CISC-based, utilize microcode to operate more like RISC processors. This allows them to leverage some of the benefits of RISC architecture, such as efficiency and simplicity.

💡Performance Equation

The performance equation is a formula used to express a computer's performance potential. The video uses this equation to compare CISC and RISC architectures, showing that CISC aims to minimize instructions per program at the cost of more cycles per instruction, while RISC does the opposite, reducing cycles per instruction but potentially increasing the total number of instructions.

💡Compiler

A compiler is a program that translates code written in a high-level programming language into machine code that the CPU can execute. The video discusses how the compiler's role differs between CISC and RISC architectures, with CISC requiring less work from the compiler due to its complex instructions, while RISC requires more conversion work, leading to more assembly instructions.

Highlights

Instruction sets are the foundation of all computers, defining the operations CPUs can execute.

Two main categories of instruction sets: CISC (Complex Instruction Set Computer) and RISC (Reduced Instruction Set Computer).

CISC aims to complete tasks with fewer lines of assembly, resulting in more complex processor hardware.

RISC uses simple instructions executed within a single machine cycle, requiring less complex hardware.

CISC processors, like Intel's x86, are mainly found in desktops and laptops but operate more like RISC with microcode.

RISC architecture is prevalent in low-power devices such as smartphones, smart TVs, and tablets.

RISC processors, like ARM, now dominate the market, making up over 90% of all processors in use.

CISC processors may have more instructions but can be problematic for pipelining due to variable instruction length.

RISC's fixed-sized instructions facilitate pipelining, improving performance.

RISC's efficiency comes from completing each instruction in a single clock cycle.

The performance equation shows CISC aims to minimize instructions per program, sacrificing cycles per instruction.

RISC philosophy reduces cycles per instruction, increasing the number of instructions in the assembly program.

RISC's acceptance was slow due to a lack of software support and competition from established CISC processors.

The reduction in RAM prices and advancements in compiler technology have favored RISC's software-over-hardware approach.

Intel's influence and resources were a significant obstacle for RISC's early adoption.

Despite being CISC, Intel x86 processors implement features that allow RISC-like operation.

Sales of RISC-based processors have far surpassed those of CISC, with CISC peaking in 2011.

Transcripts

play00:00

in this video we take a look at the

play00:02

differences between

play00:04

and the uses of sisk and risk processors

play00:10

[Music]

play00:14

so at the core of all computers is what

play00:16

is known as the

play00:17

instruction set this is effectively

play00:20

the set of all instructions written in

play00:23

machine code

play00:24

that can be recognized and executed by

play00:27

given processing unit or cpu

play00:31

there are two main different categories

play00:33

of instruction sets that you need to be

play00:35

aware of

play00:36

there's the complex instruction set

play00:38

computer sisk

play00:39

and the reduced instruction set computer

play00:42

risk

play00:44

so here on the screen is a high

play00:47

level abstraction of a storage design

play00:50

for a generic computer and it's going to

play00:52

serve the purpose

play00:53

of our illustration so important things

play00:57

to note

play00:58

we've got main memory at the top and

play01:00

it's got ten locations

play01:02

and they're addressed from zero zero

play01:04

zero zero in binary

play01:05

through to one zero zero one

play01:09

we also have what we're labeling the

play01:11

execution unit which is going to carry

play01:13

out all calculations

play01:16

now the execution unit can only operate

play01:19

on data that's been loaded into one of

play01:21

six registers

play01:22

and we've labeled them r zero zero 0

play01:25

to r 1 0 1.

play01:30

so our task is to find the product of

play01:33

two numbers

play01:35

the first number is going to be stored

play01:36

in memory location zero

play01:38

zero zero zero the second number in zero

play01:41

zero zero one and then the result of the

play01:44

calculation the product of those two

play01:46

numbers

play01:47

should be stored back in memory location

play01:49

zero zero

play01:50

one zero so in a high level language

play01:53

this would be a line of code something

play01:55

like product

play01:57

equals num1 times num2

play02:00

where each of those words are variables

play02:03

or locations

play02:07

so let's start with the complex

play02:09

instruction set computer

play02:12

so cis gains to complete the task in as

play02:14

few lines

play02:15

of assembly as possible now this means

play02:19

the processor hardware

play02:20

and the circuitry tends to be more

play02:23

complicated

play02:24

so it's able to understand and execute a

play02:27

series of operations

play02:31

the cisc processor could include a

play02:33

specific instruction

play02:35

for multiplying two numbers and we're

play02:37

going to call that malt here we've

play02:39

shown it on the screen when executed

play02:42

this instruction would load the two

play02:45

values into the register

play02:47

multiply them together and store the

play02:49

result back

play02:50

out

play02:53

so malt is an example in our abstraction

play02:57

here

play02:57

of a complex instruction it resembles

play03:01

the original command from the high-level

play03:03

language

play03:04

the compiler therefore is having to do

play03:06

very little work

play03:07

to translate the original high-level

play03:10

language statement

play03:11

into low-level assembly code

play03:18

however this complex instruction

play03:21

might take more than one machine or

play03:23

clock cycle in order to execute

play03:26

now we're going to come back to that

play03:27

point a bit later when we compare the

play03:30

two

play03:32

so although much less common today than

play03:34

it used to be

play03:35

the sisk architecture is mainly found in

play03:38

desktop computers and laptops

play03:41

intel's x86 processors still use the sys

play03:44

architecture

play03:45

although more recent changes beyond the

play03:48

scope of this course

play03:49

mean they operate very much like a risk

play03:51

fashion

play03:53

and they utilize micro code which allows

play03:55

them to leverage many of the benefits

play03:57

of the risk architecture which we're now

play04:00

going to look at

play04:02

so with risk processes the aim is to use

play04:05

simple instructions which will be

play04:08

executed within a single

play04:10

machine or clock cycle now in our

play04:13

generic computer example here that we're

play04:16

using

play04:16

at least we're going to say that the

play04:18

complex command such as

play04:20

malt doesn't exist we would need to

play04:23

separate it into a number of simpler

play04:26

commands

play04:28

in this situation we're going to need

play04:30

four lines of assembly

play04:33

two for loading the different contents

play04:36

of memory

play04:37

one for providing the product and

play04:39

another to store the result back out

play04:42

whereas remember before with the sisk

play04:44

architecture we had a single low-level

play04:47

command that performed all of that

play04:52

now there are more lines of code

play04:53

required in the assembly version

play04:55

than the high level version which only

play04:57

had one line

play04:58

this means the compiler is now being

play05:00

required to do much of the conversion

play05:03

work

play05:04

more ram is needed to store the assembly

play05:06

instructions

play05:07

so on the face of it it would seem that

play05:09

the risk architecture

play05:11

is much less efficient

play05:15

but we come back to the point that with

play05:18

this

play05:18

system each instruction can be completed

play05:21

in a single clock cycle

play05:24

these risk instructions require fewer

play05:26

transistors

play05:27

and less complex hardware this leaves

play05:30

more room for general purpose registers

play05:32

in cash

play05:33

and we already know the benefits of that

play05:35

at speeding up a processor from a

play05:36

previous video

play05:39

as all the instructions are uniform in

play05:41

terms of their execution time

play05:43

we can make use of pipelining another

play05:46

way of speeding up the processor we

play05:47

discussed earlier

play05:50

the use of risk processing results also

play05:53

in lower energy requirements

play05:58

risk architectures have become

play06:00

incredibly popular

play06:01

in low power and portable devices such

play06:04

as smart tvs

play06:06

thermostats smart watches phones tablets

play06:09

printers home assistants tb sticks and

play06:12

many

play06:13

many more as such arm processors

play06:17

and other architectures that work off of

play06:19

risk now make up

play06:21

well over 90 percent of all processors

play06:24

in use today

play06:29

so here is a summary of sisk

play06:32

architecture on the left

play06:34

compared to risk architecture on the

play06:36

right

play06:37

i'm not going to read it all to you but

play06:38

you might like to pause the video

play06:40

and take some notes

play06:45

so having watched this video you should

play06:47

be able to answer the following key

play06:48

question

play06:49

what are the differences between the

play06:51

risk and sisk architectures

play06:57

so that's everything covered in the

play06:58

specification so you can stop taking

play07:00

notes

play07:01

but if you're interested in learning a

play07:02

little bit more and going a little bit

play07:04

deeper

play07:05

then watch the remainder of this video

play07:11

so something not in the spec which is

play07:12

quite interesting to learn about

play07:14

is known as the performance equation now

play07:17

this is an equation

play07:18

commonly used for expressing a

play07:21

computer's performance

play07:23

potential

play07:26

now the sisk approach attempts to

play07:29

minimize

play07:30

the number of instructions per program

play07:33

but while sacrificing the number of

play07:36

cycles per instruction

play07:41

the risk philosophy does completely the

play07:43

opposite

play07:44

it attempts to reduce the cycles per

play07:47

instruction

play07:48

but at the cost of the number of

play07:51

instructions that end up in the end

play07:53

assembly program

play07:58

you can clearly see here some of the

play08:00

concepts that we've been talking about

play08:02

in raw numbers

play08:05

so look at the number of instructions

play08:07

available in sisk versus

play08:09

risk there are a lot more instructions

play08:12

in the complex instruction sets

play08:14

than the reduced instruction set

play08:16

varieties

play08:21

but you can see that there's a variable

play08:23

length of sisk instructions

play08:25

and of course this becomes problematic

play08:28

when we

play08:28

try to utilize pipelining to increase

play08:31

performance

play08:33

now risk gets around this by fixed sized

play08:38

instructions

play08:41

now even though risk-based processing

play08:43

has many advantages

play08:44

it did take well over a decade to gain

play08:47

acceptance on a large commercial scale

play08:50

risk lacks software support versus sisk

play08:53

especially in the early days

play08:55

windows 3.1 and 90 to 5 were designed

play08:58

with cisc processors in mind

play09:00

and most companies were unwilling to

play09:02

take a chance on risk

play09:04

which was seen as an emerging technology

play09:07

in the beginning intel cisc processors

play09:10

were a major setback for the emergence

play09:12

of risk

play09:13

intel had enormous influence and

play09:15

resources

play09:16

to throw at producing ever more powerful

play09:18

cis processes

play09:20

despite them becoming increasingly

play09:22

unwieldy and difficult to develop

play09:27

today though intel x86 is arguably the

play09:31

only chip

play09:32

that retains sisk architecture and even

play09:35

then if you dig a bit deeper below the

play09:37

surface

play09:38

you'll realize it implements many

play09:39

features such as micro codes

play09:41

that allows it to operate in a risk

play09:44

type fashion the reduction in price of

play09:48

ram

play09:49

and increased sophistication of compiler

play09:50

technology

play09:52

means the risk emphasis on software over

play09:54

hardware has become ideal

play09:56

you can easily see from this graph that

play09:59

sales of risk-based processors

play10:01

far outstrip intel sysversons which

play10:05

peaked at

play10:05

0.3 billion processors back in 2011.

play10:27

you

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
CISCRISCProcessorsComputer ArchitectureInstruction SetHardwareSoftwarePerformanceEfficiencyTechnology
Besoin d'un résumé en anglais ?