Fetch Decode Execute Cycle in more detail

  Рет қаралды 539,785

Computer Science

Computer Science

Күн бұрын

This computer science video illustrates the fetch decode execute cycle. The view of the CPU focusses on the role of various registers including the accumulator, memory address register, memory data register, current instruction register and the program counter. The arithmetic and logic unit and the control unit are also shown. For simplicity, the machine code commands being executed are represented by assembly language code.
NOTES:
To fetch an instruction from main memory into the CPU, the memory address of the instruction is copied from the program counter register into to the memory address register.
The instruction is then copied from the main memory into the memory data register.
The instruction in the memory data register is then copied into the current instruction register.
The fetch part of the cycle is now complete so 1 is added to the contents of the program counter (the program counter is incremented).
The program counter now contains the memory address of the next instruction to fetch, before the current instruction has been decoded.
The instruction in the current instruction register is then decoded by the control unit, and then it is executed.
If the current instruction is complete, the next instruction is fetched, decoded and executed in the same way.
Some instructions require data to be fetched from the memory in order to be completed, such as the instruction ADD 11. To fetch a data item from the memory, the main memory address of the data item is copied into to the memory address register (the memory address is part of the instruction, in this example it is 11).
The data item is then copied from the main memory into the memory data register.
The data item in the memory data register is then copied into the arithmetic and logic unit.
Some instructions require data in the accumulator register to be saved in the main memory, such as the instruction STORE 12. To store a data item into the main memory, the memory address is copied into to the memory address register (the memory address is part of the instruction, in this example it is 12).
The data item is then copied from the accumulator register into the memory data register.
The data item in the memory data register is then copied into the main memory.
Notice that when anything is copied FROM the main memory (instruction or data item), its memory address is first put into the memory address register, and it is then copied into the memory data register.
Notice that when anything is copied TO the main memory (data item), its memory address is first put into the memory address register, and it is then copied into the memory data register first.

Пікірлер: 456
@tcroyce8128
@tcroyce8128 7 жыл бұрын
Whole 2 stupid semesters and things get clear as water from this 8 min. video. I dont know why i even go to college.
@Muaddibkhan
@Muaddibkhan 5 жыл бұрын
I feel you braw,What a worthless place to go for years.
@0MrJohn0
@0MrJohn0 5 жыл бұрын
you tube wont give you a paper called diploma, which sometimes is requiered ;)
@arnoldmachalaga4966
@arnoldmachalaga4966 5 жыл бұрын
Tell me about it....i have just grasped this whole thing now after 5 semesters.
@scyxrazor473
@scyxrazor473 5 жыл бұрын
TC royce I KNOW RIGHT. this video really help me a lot
@takusamuel635
@takusamuel635 4 жыл бұрын
TC royce you can say that again
@ayzee4
@ayzee4 2 жыл бұрын
Why can't our teachers teach like this, I have always had problems with this concept since my O'levels and this guy just clarifies it like some 3rd Grade concept in an 8 minuite video. Hats off ❤️
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're very welcome, and thank you :)KD
@andrews5938
@andrews5938 Жыл бұрын
@@ComputerScienceLessons You have no idea how grateful I am for this. I have been struggling for ages and ages now around the concept of this cycle and how it works. This video was so clear, I understood it so much better than almost anything on the internet. Thank you so much. Keep up the good work!
@ssaad7886
@ssaad7886 4 ай бұрын
what grade did you get then?
@SkyHawksGamers
@SkyHawksGamers 8 жыл бұрын
Excellent explanation; far easier to understand than the OCR textbook. Thank you!
@ComradePatrickStar
@ComradePatrickStar 5 жыл бұрын
OMG THIS VIDEO LITTERALLY SAVED ME I LEARNED MORE IN 8 MINUTES THAN HALF A SEMESTER
@Bhagbe
@Bhagbe 4 жыл бұрын
Me too
@user-xc8ij2qi5f
@user-xc8ij2qi5f 2 ай бұрын
watching it 14 hours before my computer science exam helps a lot 👍
@davidliverman4742
@davidliverman4742 2 жыл бұрын
I have been involved in C programming for so long, I thought I would refresh my memory on this! Thank you and God bless!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're most welcome :)KD
@loipham31
@loipham31 4 жыл бұрын
An excellent explanation. It is worth a good lecture in education. Thanks everyone very much who made this short video available to public
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You are welcome. :)KD
@mhassaankhalid1369
@mhassaankhalid1369 9 ай бұрын
The only best explanation of fetch decode and execute cycle, I wish I could thank you in person.
@eugenselenica4955
@eugenselenica4955 4 жыл бұрын
The clearest video about this on youtube!You deserve great credit ! Thank you !
@Hoppitot
@Hoppitot 3 жыл бұрын
I'm just gonna put this on repeat for 3 hours now then I'm good, thx doc
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
I suggest you draw a sequence of diagrams from it. Good luck :)KD
@tomaszk2242
@tomaszk2242 4 жыл бұрын
This video is top class of all internet content, because it can be understood by non-native English speaker. There are other videos full of knowledge too, but often I can't really catch on the go what the guys are even pronouncing, let alone understanding computing. Thanks for your work!
@franklinmirandadossantos8315
@franklinmirandadossantos8315 7 жыл бұрын
this is definitely by far, the best explanation on this subject that I've seem to date, i've whatched several other videos, but could never understood completely, thank god I found this video, you just gained on more subscriber. from brazil.
@Absamo97
@Absamo97 6 жыл бұрын
Thank you Kevin, i used your explanation in my presentation and the teacher gave me full mark. Thank you.
@pangpengmaster
@pangpengmaster 9 жыл бұрын
Comprehensive and detailed. Good job Kevin!
@martinakraft5681
@martinakraft5681 7 жыл бұрын
Thank you sir, this truly helped! I was unclear of the difference between PC and MDR, but you explained brilliantly.
@ducklifee_6260
@ducklifee_6260 4 жыл бұрын
1 Hour looking for something helpful and taken into understanding, and this video saves it all.
@haroonq2456
@haroonq2456 4 жыл бұрын
sammmmmmmmmmmmeeeee
@obnovoid
@obnovoid 6 жыл бұрын
I didn't understand my textbook but I utterly understand what you explained in the video. Sincere thanks.
@callmeplayer8185
@callmeplayer8185 15 күн бұрын
9 years and still helpful. Thanks!
@diagotorres4094
@diagotorres4094 8 жыл бұрын
Awesome stuff man, comprehensive and quick.
@ComputerScienceLessons
@ComputerScienceLessons 8 жыл бұрын
appreciate it
@Kgotso_Koete
@Kgotso_Koete 5 жыл бұрын
You are a life saver. I was confused and now I will have time to watch Star Wars A Solo Story tonight or tomorrow.
@gianinasotelo
@gianinasotelo 2 жыл бұрын
This explanation is PURE GOLD. It's excellent! Thank you!!!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you for the lovely comment :)KD
@a.l33n
@a.l33n 4 жыл бұрын
Ok this makes sense i finally get this. What a useful 8 min video unlike the whole 1 hour lesson at school
@nak6608
@nak6608 7 жыл бұрын
Thank you so much for this video. I am building a CPU for my architecture course but I was a little lost on the exact order of procedures. This helped me immensely.
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
Glad to be of help. If you are building a CPU (something I would like to do one day), you might find Ben Eater's site useful. eater.net/8bit/
@NinjaDoge
@NinjaDoge 7 жыл бұрын
THANK YOU SO MUCH THIS IS A LIFE SAVER IVE BEEN SEARCHING FOR DAYS!
@TheAtomicplumber
@TheAtomicplumber 8 жыл бұрын
Thanks Kevin, that was a big help. I searched through an endless pile of garbage on the internet to get here. Will subscribe. Looking for more.
@xfiremastervfootball5984
@xfiremastervfootball5984 5 жыл бұрын
This is awesome!! Thank you for the quality content!!
@mac_Ta
@mac_Ta 5 жыл бұрын
Thank you. Exactly what i needed to grasp the concept.
@microwavedemonn
@microwavedemonn Ай бұрын
Never really understood this until I found this video, thanks a lot man Exam is in a hour, good luck guys
@emilhozan71
@emilhozan71 5 жыл бұрын
Simply put, great video. Recommend watching it.
@ognjenstevic8637
@ognjenstevic8637 Жыл бұрын
Dude, what a tutorial! Thank you so much for helping me, right now I understand it 100%. It's explained so simply.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
you are most welcome :)KD
@mirzashafi
@mirzashafi 8 жыл бұрын
good one...now I'm clear
@ComputerScienceLessons
@ComputerScienceLessons 8 жыл бұрын
It's working then
@CryptoVision420
@CryptoVision420 5 жыл бұрын
straight to the point. love it!
@kevinknight997
@kevinknight997 4 жыл бұрын
Your channel is so underrated I've learned way more things thank u
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
Glad to help. Thanks for commenting :)KD
@zinturis
@zinturis 8 жыл бұрын
Just amazing! Thanks a lot!
@thaeredu2385
@thaeredu2385 4 жыл бұрын
Amazing! Truly amazing. Super clear, logically explained and well explained.
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
Thank you :)KD
@vembukarthickt8809
@vembukarthickt8809 3 жыл бұрын
No words to appreciate .....You have done fantastic work , it will help a lot..
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Delighted to be of service. Thanks for the lovely comment :)KD
@mendozajrc
@mendozajrc 4 жыл бұрын
Thank you so much for a very clear explanation of Fetch and Execute Cycle.
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You are most welcome. Thanks for the comment. :) KD
@girancanbaysec273
@girancanbaysec273 5 жыл бұрын
Thank you for the video. Great explanation
@Vcksn
@Vcksn 2 жыл бұрын
This is by far the best explanation ive seen yet
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Kind of you to say so. Thanks. :)KD
@user-tm9ct2ej4h
@user-tm9ct2ej4h 8 жыл бұрын
Great video. Really helping me through me this summer class.
@atomickillsquad
@atomickillsquad 7 жыл бұрын
just perfect, saved hours of searching.. thanks!
@kennarajora6532
@kennarajora6532 Жыл бұрын
Wow, this set things crystal clear in my head.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Glad to help. :)KD
@shivammalviya3737
@shivammalviya3737 3 жыл бұрын
Brother, your explanation is amazing. Thank you so much.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You are most welcome :)KD
@stuartsaint4581
@stuartsaint4581 2 жыл бұрын
These explanations are so good, thank you so much
@khizar1995
@khizar1995 8 жыл бұрын
Sir believe me it helped me a lot. You are so great that I think Thank You! word won't reach your greatness level. Superb!!!!!!!!!!
@mrboyban
@mrboyban 3 жыл бұрын
Thank you so much for making this content available!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You are most welcome :)KD
@imbored7479
@imbored7479 3 жыл бұрын
Ooh wow a 7 mins vid helped me understand faster than the many many classes that my technology teacher have given us 🐸✋
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Delighted to help :)KD
@papidoug5355
@papidoug5355 3 жыл бұрын
@@ComputerScienceLessons You deserve way more recognitions sir. Is there anyway we can thank you? Because you really helped me in Computer Science revisions with those videos.
@electronflows
@electronflows 4 жыл бұрын
Thank you. Nice explanation.👏
@dhanajon5528
@dhanajon5528 2 жыл бұрын
thank you so much, i understood this better than the textbook given to me and my lecture, i think he even made a couple of mistakes like calling the Accumulator a fancy word for ALU, now ive learned the accumulator is just a register inside the ALU
@jenniewhittaker8951
@jenniewhittaker8951 6 жыл бұрын
This is a really helpful video! Thank you very much!
@Bhagbe
@Bhagbe 4 жыл бұрын
Best explanation ever. Very clear
@fnyaung
@fnyaung 5 жыл бұрын
Thank you for this! It was very clear.
@shashank9042
@shashank9042 2 жыл бұрын
Thank you, for this great explanation. which made me understood the whole semester doubt in few minutes .
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are very welcome :)KD
@VinodKashyap-jb4ny
@VinodKashyap-jb4ny 7 жыл бұрын
One of the best Tutor ever seen. Excellent explanation
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
Thanks for the feedback :)
@rapbimsfrienda22
@rapbimsfrienda22 2 жыл бұрын
Visual explanation and your's description notes are also excellent sir👏
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're most welcome :)KD
@ak.kavinda
@ak.kavinda 6 жыл бұрын
thank you very much. this helped me a lot for my studies on Architecture. yes it is an excellent explanation!
@Subtractive-et2nm
@Subtractive-et2nm Жыл бұрын
No one can explain it better than ben eater in his 8 bit computer series :)
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
I love Ben Eater. I built his 8 bit computer for a wall display. :)KD
@Zen-lz1hc
@Zen-lz1hc 2 жыл бұрын
You are a Great Teacher. Thank You I finally start to understand what is going on under the hood .. Thank You
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are very welcome indeed. Thanks for the lovely comment. :)KD
@user-vo6fq6zx1g
@user-vo6fq6zx1g Жыл бұрын
Very good explaining we need more ppl like u
@Chowow
@Chowow 5 жыл бұрын
NORMAL ENGLISH THANK YOUUU!!!
@zulqarnayeenschaftler9323
@zulqarnayeenschaftler9323 4 жыл бұрын
True!
@zulqarnayeenschaftler9323
@zulqarnayeenschaftler9323 4 жыл бұрын
Thank you very much for this video!
@frankanonymous3766
@frankanonymous3766 3 жыл бұрын
He's British.
@dmm2708
@dmm2708 3 жыл бұрын
@@frankanonymous3766 no he is bri'ish
@OmniversalInsect
@OmniversalInsect 3 жыл бұрын
@@dmm2708 ahahahahahahahahahahahhahhahahhhh
@ankita_pnick
@ankita_pnick 3 жыл бұрын
Seriously this is a really good explanation thank u so much
@krood_
@krood_ 3 жыл бұрын
Extremely good explanation. Thanks.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You're very welcome :)KD
@saandeepsaandeep8935
@saandeepsaandeep8935 Жыл бұрын
Excellence teaching .....very important to computer science students ..... But u tried ur level best .....nice Job good job . ....this types of videos required to students ...my sir also stopped teaching and sending this video to prepare
@ashrithpradhana9025
@ashrithpradhana9025 Жыл бұрын
😜
@muzammilnasir1535
@muzammilnasir1535 Жыл бұрын
bro i have no words.....you are real life hero, thx a lot😍😍
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you :)KD
@guifelix84
@guifelix84 6 жыл бұрын
Very good explanation! Thanks.
@AureliaFriska
@AureliaFriska 7 жыл бұрын
love the explanation!! thank you
@ethantaylor45568
@ethantaylor45568 Жыл бұрын
Thank you so much im about to come up to my mocks and i couldnt get my head around this until now thank you.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You're most welcome :)KD
@grzegorzryznar5101
@grzegorzryznar5101 Жыл бұрын
I am really grateful for this video! Thank you!
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You're welcome :)KD
@zinqfl4re461
@zinqfl4re461 2 жыл бұрын
My Teacher taught us this but I had doubts and now I don't. Thank you so much!!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are most welcome :)KD
@fox_posting1030
@fox_posting1030 2 жыл бұрын
absolutely brilliant and detailed explanation. extremely helpful
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you, and you are most welcome :)KD
@sangamshrestha143
@sangamshrestha143 7 жыл бұрын
Thanks I was searching for rtl and found this, it really helped me to understand rtl.
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
Thanks for the feedback. I'm glad it's helped.
@DehDanMan
@DehDanMan 6 жыл бұрын
Fantastic video, you're a legend
@haroldfinz4863
@haroldfinz4863 3 жыл бұрын
Great top-down summary (first time view on this channel, thx to G for the suggestion.). I'm curious to learn the steps EE folks took to take Von Neumann's idea that code and data are equivalent, and then implement a fetch decode execute cycle.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Glad you liked it. You might find it interesting to investigate John Von Neuman who I think was seriously underrated He played a big part in the development of quantum mechanics. :)KD
@prasantkumarsahu6676
@prasantkumarsahu6676 6 жыл бұрын
Best video for priliminary students to understand the flow
@somnathdasgupta1
@somnathdasgupta1 8 жыл бұрын
its awesome video sir.......respect you sir
@jean-paulboga8189
@jean-paulboga8189 2 жыл бұрын
this tutorial save me From reading 1000 of textbooks pages .... Thanks again professor .
@shivomtakkar9059
@shivomtakkar9059 4 жыл бұрын
thank you so much this was a life saver the best explanation ever
@aimana7891
@aimana7891 10 ай бұрын
Amazing video very well explained! 👏👍
@leoncito1905
@leoncito1905 3 жыл бұрын
Great explanation. Very clear. Thank you very much. Greetings from Argentina!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you. And thanks for saying hello :)KD
@battlemode
@battlemode 6 жыл бұрын
Very clear and helpful, thank you
@manreet1100
@manreet1100 2 жыл бұрын
Thank you so much for this video!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are most welcome :)KD
@fendyanto5789
@fendyanto5789 3 жыл бұрын
Thank you Sir. It's explained really well.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you :)KD
@jcx5750
@jcx5750 8 жыл бұрын
Thank you for the video sir.
@ginoruperez
@ginoruperez 2 жыл бұрын
Thank you. Excellent explanation.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you :)KD
@balramchatria
@balramchatria 8 жыл бұрын
excellent explanation sir,thank you.
@mehdi0083
@mehdi0083 3 жыл бұрын
still valid in 2021 :) , thanks a lot man
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Indeed! :)KD
@where3639
@where3639 4 жыл бұрын
Excellent job of explaining
@space_time_everything_else
@space_time_everything_else 11 ай бұрын
Great explanation!
@winnerozekhome2881
@winnerozekhome2881 6 жыл бұрын
thanks for the good explanation. its clear now.
@zorodex2570
@zorodex2570 7 жыл бұрын
thank you sooo much ..... ur the best ........ easiest explanation , very simple i loved it
@phoneixacademy4856
@phoneixacademy4856 4 жыл бұрын
nice explanation thank you very much
@rohitdoestech
@rohitdoestech 8 жыл бұрын
thanks so much this was very useful as i am doing my as level. My exam is a new one so i don't have text book yet as they haven't released it yet.
@wisdomchikwanda6802
@wisdomchikwanda6802 8 жыл бұрын
Brilliant stuff Kevin!!
@scyxrazor473
@scyxrazor473 5 жыл бұрын
thank you so much sir. this really help me a lot
@rahulmahajan9118
@rahulmahajan9118 6 жыл бұрын
Excellent Explanation !!
@RealitaetsverweigererDerAmpel
@RealitaetsverweigererDerAmpel 4 жыл бұрын
This video helped me a lot thank you!
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You're welcome. :) KD
@dderudito
@dderudito 5 жыл бұрын
THANK YOU!!!!!!! Exactly what I was looking for!
@ComputerScienceLessons
@ComputerScienceLessons 5 жыл бұрын
:)
@mohammadahmedragab837
@mohammadahmedragab837 2 жыл бұрын
thank you so much, clear simple explanation :)
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're most welcome :)KD
@04aadi6
@04aadi6 4 жыл бұрын
Thanks a lot for this video.
@pratiksha344
@pratiksha344 Жыл бұрын
Excellent work 👍
Processor Addressing Modes
10:27
Computer Science
Рет қаралды 123 М.
RISC versus CISC
12:40
Computer Science
Рет қаралды 44 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 139 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 72 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 64 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
How a CPU Works
20:42
In One Lesson
Рет қаралды 8 МЛН
The Fetch Decode Execute cycle
9:38
Huw Mawson
Рет қаралды 33 М.
Inside the CPU - Computerphile
11:16
Computerphile
Рет қаралды 359 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
WHY IS THE HEAP SO SLOW?
17:53
Core Dumped
Рет қаралды 209 М.
The Fetch-Execute Cycle: What's Your Computer Actually Doing?
9:04
Tom Scott
Рет қаралды 1,8 МЛН
Fetch-Decode-Execute Cycle
4:54
John Philip Jones
Рет қаралды 198 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,6 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 139 МЛН