Fetch Decode Execute Cycle in more detail

Поделиться
HTML-код
  • Опубликовано: 17 июл 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.

Комментарии • 456

  • @tcroyce8128
    @tcroyce8128 7 лет назад +602

    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 лет назад +26

      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 5 лет назад +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 года назад +64

    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 4 месяца назад

      what grade did you get then?

  • @SkyHawksGamers
    @SkyHawksGamers 8 лет назад +178

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

  • @ComradePatrickStar
    @ComradePatrickStar 5 лет назад +116

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

    • @Bhagbe
      @Bhagbe 4 года назад +1

      Me too

  • @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 года назад +6

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

  • @franklinmirandadossantos8315
    @franklinmirandadossantos8315 7 лет назад +52

    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.

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

  • @user-xc8ij2qi5f
    @user-xc8ij2qi5f 2 месяца назад +1

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

  • @eugenselenica4955
    @eugenselenica4955 4 года назад +4

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

  • @mhassaankhalid1369
    @mhassaankhalid1369 9 месяцев назад +1

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

  • @Absamo97
    @Absamo97 6 лет назад

    Thank you Kevin, i used your explanation in my presentation and the teacher gave me full mark.
    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.

  • @pangpengmaster
    @pangpengmaster 9 лет назад +1

    Comprehensive and detailed. Good job Kevin!

  • @diagotorres4094
    @diagotorres4094 8 лет назад +9

    Awesome stuff man, comprehensive and quick.

  • @Chowow
    @Chowow 5 лет назад +135

    NORMAL ENGLISH THANK YOUUU!!!

  • @ducklifee_6260
    @ducklifee_6260 4 года назад +1

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

  • @Hoppitot
    @Hoppitot 3 года назад +4

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

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

  • @obnovoid
    @obnovoid 6 лет назад +2

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

  • @NinjaDoge
    @NinjaDoge 7 лет назад +1

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

  • @xfiremastervfootball5984
    @xfiremastervfootball5984 5 лет назад +2

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

  • @gianinasotelo
    @gianinasotelo 2 года назад +2

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

  • @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 лет назад +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/

  • @mac_Ta
    @mac_Ta 5 лет назад

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

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

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

  • @thaeredu2385
    @thaeredu2385 4 года назад +2

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

  • @kevinknight997
    @kevinknight997 4 года назад +3

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

  • @vembukarthickt8809
    @vembukarthickt8809 3 года назад +2

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

  • @CryptoVision420
    @CryptoVision420 5 лет назад +1

    straight to the point. love it!

  • @callmeplayer8185
    @callmeplayer8185 15 дней назад

    9 years and still helpful. Thanks!

  • @user-tm9ct2ej4h
    @user-tm9ct2ej4h 8 лет назад

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

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

  • @emilhozan71
    @emilhozan71 5 лет назад +1

    Simply put, great video. Recommend watching it.

  • @girancanbaysec273
    @girancanbaysec273 5 лет назад +2

    Thank you for the video. Great explanation

  • @stuartsaint4581
    @stuartsaint4581 2 года назад

    These explanations are so good, thank you so much

  • @jenniewhittaker8951
    @jenniewhittaker8951 6 лет назад +1

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

  • @mendozajrc
    @mendozajrc 4 года назад +1

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

  • @mirzashafi
    @mirzashafi 8 лет назад +46

    good one...now I'm clear

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

  • @microwavedemonn
    @microwavedemonn Месяц назад

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

  • @atomickillsquad
    @atomickillsquad 7 лет назад

    just perfect, saved hours of searching.. thanks!

  • @fnyaung
    @fnyaung 5 лет назад +1

    Thank you for this! It was very clear.

  • @zinturis
    @zinturis 8 лет назад +12

    Just amazing! Thanks a lot!

  • @Vcksn
    @Vcksn 2 года назад +1

    This is by far the best explanation ive seen yet

  • @shashank9042
    @shashank9042 2 года назад +1

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

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

  • @kennarajora6532
    @kennarajora6532 Год назад +1

    Wow, this set things crystal clear in my head.

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

  • @VinodKashyap-jb4ny
    @VinodKashyap-jb4ny 7 лет назад

    One of the best Tutor ever seen. Excellent explanation

  • @mrboyban
    @mrboyban 3 года назад

    Thank you so much for making this content available!

  • @ankita_pnick
    @ankita_pnick 3 года назад +1

    Seriously this is a really good explanation thank u so much

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

  • @sangamshrestha143
    @sangamshrestha143 7 лет назад

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

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

  • @shivammalviya3737
    @shivammalviya3737 3 года назад +1

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

  • @rapbimsfrienda22
    @rapbimsfrienda22 2 года назад +2

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

  • @Bhagbe
    @Bhagbe 4 года назад +1

    Best explanation ever. Very clear

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

  • @fox_posting1030
    @fox_posting1030 2 года назад +1

    absolutely brilliant and detailed explanation. extremely helpful

  • @user-vo6fq6zx1g
    @user-vo6fq6zx1g Год назад

    Very good explaining we need more ppl like u

  • @AureliaFriska
    @AureliaFriska 7 лет назад

    love the explanation!! thank you

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

  • @shivomtakkar9059
    @shivomtakkar9059 4 года назад

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

  • @muzammilnasir1535
    @muzammilnasir1535 Год назад +2

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

  • @zinqfl4re461
    @zinqfl4re461 2 года назад +1

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

  • @zorodex2570
    @zorodex2570 7 лет назад

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

  • @DehDanMan
    @DehDanMan 6 лет назад

    Fantastic video, you're a legend

  • @electronflows
    @electronflows 4 года назад +1

    Thank you. Nice explanation.👏

  • @leoncito1905
    @leoncito1905 3 года назад +1

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

  • @somnathdasgupta1
    @somnathdasgupta1 8 лет назад +2

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

  • @grzegorzryznar5101
    @grzegorzryznar5101 Год назад +1

    I am really grateful for this video! Thank you!

  • @guifelix84
    @guifelix84 6 лет назад

    Very good explanation! Thanks.

  • @winnerozekhome2881
    @winnerozekhome2881 6 лет назад

    thanks for the good explanation. its clear now.

  • @krood_
    @krood_ 3 года назад +1

    Extremely good explanation. Thanks.

  • @scyxrazor473
    @scyxrazor473 5 лет назад +1

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

  • @balramchatria
    @balramchatria 8 лет назад

    excellent explanation sir,thank you.

  • @jcx5750
    @jcx5750 8 лет назад +1

    Thank you for the video sir.

  • @manreet1100
    @manreet1100 2 года назад +1

    Thank you so much for this video!

  • @battlemode
    @battlemode 6 лет назад

    Very clear and helpful, thank you

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

  • @dderudito
    @dderudito 5 лет назад

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

  • @KENILDINESHPATELBCE
    @KENILDINESHPATELBCE 8 лет назад

    sir it was a great explaination!!!!!!!!
    Thank you!

  • @RealitaetsverweigererDerAmpel
    @RealitaetsverweigererDerAmpel 4 года назад +2

    This video helped me a lot thank you!

  • @aimana7891
    @aimana7891 10 месяцев назад

    Amazing video very well explained! 👏👍

  • @mehdi0083
    @mehdi0083 3 года назад +1

    still valid in 2021 :) , thanks a lot man

  • @prasantkumarsahu6676
    @prasantkumarsahu6676 6 лет назад

    Best video for priliminary students to understand the flow

  • @mohammadahmedragab837
    @mohammadahmedragab837 2 года назад +1

    thank you so much, clear simple explanation :)

  • @ginoruperez
    @ginoruperez 2 года назад +1

    Thank you. Excellent explanation.

  • @phoneixacademy4856
    @phoneixacademy4856 4 года назад +1

    nice explanation thank you very much

  • @LuaneCarolineAquinoCavalcanti
    @LuaneCarolineAquinoCavalcanti 9 лет назад +1

    Thanks a lot, it was really helpful

  • @srikanthemani9528
    @srikanthemani9528 3 года назад +1

    this is the best explaination i have ever seen.Nice :)

  • @ahmedrafeek8542
    @ahmedrafeek8542 6 лет назад

    How beautiful is that !! thanks alot

  • @where3639
    @where3639 4 года назад +1

    Excellent job of explaining

  • @jean-paulboga8189
    @jean-paulboga8189 2 года назад

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

  • @nazimspiranifhs
    @nazimspiranifhs 8 лет назад

    Very Nicely Explained.. Thanks!

  • @04aadi6
    @04aadi6 4 года назад +1

    Thanks a lot for this video.

  • @fendyanto5789
    @fendyanto5789 3 года назад +1

    Thank you Sir. It's explained really well.

  • @najwakhairina7346
    @najwakhairina7346 4 года назад +1

    thank you so much!! your video helped saved me