Fetch Decode Execute Cycle in more detail

Поділитися
Вставка
  • Опубліковано 5 чер 2024
  • 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.

КОМЕНТАРІ • 453

  • @tcroyce8128
    @tcroyce8128 7 років тому +590

    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 років тому +25

      I feel you braw,What a worthless place to go for years.

    • @0MrJohn0
      @0MrJohn0 5 років тому +38

      you tube wont give you a paper called diploma, which sometimes is requiered ;)

    • @arnoldmachalaga4966
      @arnoldmachalaga4966 5 років тому +8

      Tell me about it....i have just grasped this whole thing now after 5 semesters.

    • @scyxrazor473
      @scyxrazor473 4 роки тому +4

      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 роки тому +61

    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 роки тому +4

      You're very welcome, and thank you :)KD

    • @andrews5938
      @andrews5938 Рік тому +2

      @@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 3 місяці тому

      what grade did you get then?

  • @user-xc8ij2qi5f
    @user-xc8ij2qi5f 22 дні тому +1

    watching it 14 hours before my computer science exam helps a lot 👍

  • @SkyHawksGamers
    @SkyHawksGamers 8 років тому +178

    Excellent explanation; far easier to understand than the OCR textbook. Thank you!

  • @ComradePatrickStar
    @ComradePatrickStar 5 років тому +118

    OMG THIS VIDEO LITTERALLY SAVED ME I LEARNED MORE IN 8 MINUTES THAN HALF A SEMESTER

    • @Bhagbe
      @Bhagbe 4 роки тому +1

      Me too

  • @mhassaankhalid1369
    @mhassaankhalid1369 8 місяців тому +1

    The only best explanation of fetch decode and execute cycle, I wish I could thank you in person.

  • @loipham31
    @loipham31 4 роки тому +23

    An excellent explanation. It is worth a good lecture in education. Thanks everyone very much who made this short video available to public

  • @davidliverman4742
    @davidliverman4742 2 роки тому +5

    I have been involved in C programming for so long, I thought I would refresh my memory on this! Thank you and God bless!

  • @microwavedemonn
    @microwavedemonn 15 днів тому

    Never really understood this until I found this video, thanks a lot man
    Exam is in a hour, good luck guys

  • @Hoppitot
    @Hoppitot 3 роки тому +4

    I'm just gonna put this on repeat for 3 hours now then I'm good, thx doc

  • @tomaszk2242
    @tomaszk2242 4 роки тому +8

    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 років тому +53

    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.

  • @eugenselenica4955
    @eugenselenica4955 4 роки тому +4

    The clearest video about this on youtube!You deserve great credit ! Thank you !

  • @martinakraft5681
    @martinakraft5681 7 років тому +12

    Thank you sir, this truly helped! I was unclear of the difference between PC and MDR, but you explained brilliantly.

  • @diagotorres4094
    @diagotorres4094 8 років тому +9

    Awesome stuff man, comprehensive and quick.

  • @pangpengmaster
    @pangpengmaster 9 років тому +1

    Comprehensive and detailed. Good job Kevin!

  • @fwong117
    @fwong117 6 років тому +2

    I didn't understand my textbook but I utterly understand what you explained in the video.
    Sincere thanks.

  • @a.l33n
    @a.l33n 4 роки тому +1

    Ok this makes sense i finally get this. What a useful 8 min video unlike the whole 1 hour lesson at school

  • @Absamo97
    @Absamo97 6 років тому

    Thank you Kevin, i used your explanation in my presentation and the teacher gave me full mark.
    Thank you.

  • @ducklifee_6260
    @ducklifee_6260 4 роки тому +1

    1 Hour looking for something helpful and taken into understanding, and this video saves it all.

  • @Kgotso_Koete
    @Kgotso_Koete 5 років тому +1

    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 роки тому +2

    This explanation is PURE GOLD. It's excellent! Thank you!!!

  • @imbored7479
    @imbored7479 3 роки тому +1

    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 роки тому +1

      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.

  • @Zen-lz1hc
    @Zen-lz1hc 2 роки тому +1

    You are a Great Teacher.
    Thank You
    I finally start to understand what is going on under the hood ..
    Thank You

  • @ponikis8399
    @ponikis8399 Рік тому +1

    A. M. A. Z. I. N. G. video. Someone finally makes sense with a clear example

  • @NinjaDoge
    @NinjaDoge 7 років тому +1

    THANK YOU SO MUCH THIS IS A LIFE SAVER IVE BEEN SEARCHING FOR DAYS!

  • @mac_Ta
    @mac_Ta 5 років тому

    Thank you. Exactly what i needed to grasp the concept.

  • @mirzashafi
    @mirzashafi 8 років тому +46

    good one...now I'm clear

  • @Chowow
    @Chowow 5 років тому +134

    NORMAL ENGLISH THANK YOUUU!!!

  • @kevinknight997
    @kevinknight997 3 роки тому +3

    Your channel is so underrated I've learned way more things thank u

  • @nak6608
    @nak6608 6 років тому

    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  6 років тому +1

      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/

  • @thaeredu2385
    @thaeredu2385 4 роки тому +2

    Amazing! Truly amazing. Super clear, logically explained and well explained.

  • @emilhozan71
    @emilhozan71 5 років тому +1

    Simply put, great video. Recommend watching it.

  • @ognjenstevic8637
    @ognjenstevic8637 Рік тому +2

    Dude, what a tutorial! Thank you so much for helping me, right now I understand it 100%. It's explained so simply.

  • @xfiremastervfootball5984
    @xfiremastervfootball5984 5 років тому +2

    This is awesome!! Thank you for the quality content!!

  • @Seifounage
    @Seifounage 4 роки тому +4

    I don't understand why things get (or at least look) more complicated and un-understandable in university.. why do they always try to introduce stuff in a complicated manner?
    Thank you so much for the explanation!

  • @mendozajrc
    @mendozajrc 4 роки тому +1

    Thank you so much for a very clear explanation of Fetch and Execute Cycle.

  • @zinturis
    @zinturis 8 років тому +12

    Just amazing! Thanks a lot!

  • @vembukarthickt8809
    @vembukarthickt8809 3 роки тому +2

    No words to appreciate .....You have done fantastic work , it will help a lot..

  • @atomickillsquad
    @atomickillsquad 7 років тому

    just perfect, saved hours of searching.. thanks!

  • @Vcksn
    @Vcksn 2 роки тому +1

    This is by far the best explanation ive seen yet

  • @Subtractive-et2nm
    @Subtractive-et2nm 11 місяців тому +1

    No one can explain it better than ben eater in his 8 bit computer series :)

    • @ComputerScienceLessons
      @ComputerScienceLessons  11 місяців тому

      I love Ben Eater. I built his 8 bit computer for a wall display. :)KD

  • @CryptoVision420
    @CryptoVision420 5 років тому +1

    straight to the point. love it!

  • @kennarajora6532
    @kennarajora6532 Рік тому +1

    Wow, this set things crystal clear in my head.

  • @user-tm9ct2ej4h
    @user-tm9ct2ej4h 8 років тому

    Great video. Really helping me through me this summer class.

  • @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.

  • @girancanbaysec273
    @girancanbaysec273 5 років тому +2

    Thank you for the video. Great explanation

  • @mrboyban
    @mrboyban 3 роки тому

    Thank you so much for making this content available!

  • @stuartsaint4581
    @stuartsaint4581 2 роки тому

    These explanations are so good, thank you so much

  • @shashank9042
    @shashank9042 2 роки тому +1

    Thank you, for this great explanation. which made me understood the whole semester doubt in few minutes .

  • @khizar1995
    @khizar1995 8 років тому +1

    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!!!!!!!!!!

  • @electronflows
    @electronflows 4 роки тому +1

    Thank you. Nice explanation.👏

  • @shivammalviya3737
    @shivammalviya3737 3 роки тому +1

    Brother, your explanation is amazing. Thank you so much.

  • @fnyaung
    @fnyaung 5 років тому +1

    Thank you for this! It was very clear.

  • @VinodKashyap-jb4ny
    @VinodKashyap-jb4ny 7 років тому

    One of the best Tutor ever seen. Excellent explanation

  • @jenniewhittaker8951
    @jenniewhittaker8951 5 років тому +1

    This is a really helpful video! Thank you very much!

  • @grzegorzryznar5101
    @grzegorzryznar5101 11 місяців тому +1

    I am really grateful for this video! Thank you!

  • @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!

  • @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

  • @jean-paulboga8189
    @jean-paulboga8189 Рік тому

    this tutorial save me From reading 1000 of textbooks pages .... Thanks again professor .

  • @muzammilnasir1535
    @muzammilnasir1535 Рік тому +2

    bro i have no words.....you are real life hero, thx a lot😍😍

  • @sangamshrestha143
    @sangamshrestha143 6 років тому

    Thanks I was searching for rtl and found this, it really helped me to understand rtl.

  • @ankita_pnick
    @ankita_pnick 3 роки тому +1

    Seriously this is a really good explanation thank u so much

  • @user-vo6fq6zx1g
    @user-vo6fq6zx1g 10 місяців тому

    Very good explaining we need more ppl like u

  • @Bhagbe
    @Bhagbe 4 роки тому +1

    Best explanation ever. Very clear

  • @ethantaylor45568
    @ethantaylor45568 Рік тому +1

    Thank you so much im about to come up to my mocks and i couldnt get my head around this until now thank you.

  • @zinqfl4re461
    @zinqfl4re461 2 роки тому +1

    My Teacher taught us this but I had doubts and now I don't. Thank you so much!!

  • @saandeepsaandeep8935
    @saandeepsaandeep8935 Рік тому +1

    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

  • @krood_
    @krood_ 3 роки тому +1

    Extremely good explanation. Thanks.

  • @fox_posting1030
    @fox_posting1030 2 роки тому +1

    absolutely brilliant and detailed explanation. extremely helpful

  • @leoncito1905
    @leoncito1905 3 роки тому +1

    Great explanation. Very clear. Thank you very much. Greetings from Argentina!

  • @guifelix84
    @guifelix84 6 років тому

    Very good explanation! Thanks.

  • @shivomtakkar9059
    @shivomtakkar9059 4 роки тому

    thank you so much this was a life saver
    the best explanation ever

  • @prasantkumarsahu6676
    @prasantkumarsahu6676 6 років тому

    Best video for priliminary students to understand the flow

  • @fendyanto5789
    @fendyanto5789 3 роки тому +1

    Thank you Sir. It's explained really well.

  • @rapbimsfrienda22
    @rapbimsfrienda22 2 роки тому +2

    Visual explanation and your's description notes are also excellent sir👏

  • @battlemode
    @battlemode 6 років тому

    Very clear and helpful, thank you

  • @dderudito
    @dderudito 5 років тому

    THANK YOU!!!!!!! Exactly what I was looking for!

  • @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

  • @aimana7891
    @aimana7891 8 місяців тому

    Amazing video very well explained! 👏👍

  • @manreet1100
    @manreet1100 2 роки тому +1

    Thank you so much for this video!

  • @zorodex2570
    @zorodex2570 7 років тому

    thank you sooo much ..... ur the best ........ easiest explanation , very simple i loved it

  • @winnerozekhome2881
    @winnerozekhome2881 6 років тому

    thanks for the good explanation. its clear now.

  • @AureliaFriska
    @AureliaFriska 7 років тому

    love the explanation!! thank you

  • @ginoruperez
    @ginoruperez 2 роки тому +1

    Thank you. Excellent explanation.

  • @balramchatria
    @balramchatria 7 років тому

    excellent explanation sir,thank you.

  • @RealitaetsverweigererDerAmpel
    @RealitaetsverweigererDerAmpel 4 роки тому +2

    This video helped me a lot thank you!

  • @jcx5750
    @jcx5750 8 років тому +1

    Thank you for the video sir.

  • @mehdi0083
    @mehdi0083 3 роки тому +1

    still valid in 2021 :) , thanks a lot man

  • @somnathdasgupta1
    @somnathdasgupta1 8 років тому +2

    its awesome video sir.......respect you sir

  • @nazimspiranifhs
    @nazimspiranifhs 8 років тому

    Very Nicely Explained.. Thanks!

  • @mohammadahmedragab837
    @mohammadahmedragab837 2 роки тому +1

    thank you so much, clear simple explanation :)

  • @nafisanur2741
    @nafisanur2741 6 років тому +2

    Great explanation! Very clear and easy to follow. Thank you so much!

  • @DehDanMan
    @DehDanMan 6 років тому

    Fantastic video, you're a legend

  • @where3639
    @where3639 4 роки тому +1

    Excellent job of explaining

  • @ThePri1707
    @ThePri1707 6 років тому

    He explained it soo simply!! 👌

  • @scyxrazor473
    @scyxrazor473 4 роки тому +1

    thank you so much sir. this really help me a lot

  • @space_time_everything_else
    @space_time_everything_else 9 місяців тому

    Great explanation!

  • @phoneixacademy4856
    @phoneixacademy4856 4 роки тому +1

    nice explanation thank you very much

  • @rohitdoestech
    @rohitdoestech 8 років тому +4

    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.