Fetch execute walk-through using a simplified processor model

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

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

  • @WORKnoBRAG
    @WORKnoBRAG 8 лет назад +13

    Your Students are damn lucky to have a Teacher like you .

  • @ashwinsingh6886
    @ashwinsingh6886 9 лет назад +2

    Thank you! I'm doing my As-level right now and this was the only topic that I could not understand. You have explained it well! thanks again!

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

      I'm doing this in my first year of GCSE in Northern Ireland, since all of the courses are now AS level. Thanks government!

  • @sanchezchris95
    @sanchezchris95 10 лет назад +4

    I keep coming back to this video it is a perfect explanation.

    • @HurrayBanana
      @HurrayBanana  10 лет назад

      thanks, tried to keep it simple but explain the process rather than get bogged down with latches and enables and the like

  • @MakeupWarriorx
    @MakeupWarriorx 10 лет назад +1

    I'm doing this right now in A level I.C.T in Computer Architecture, and I can't say this enough: Thank you!! Your video is the most simple and well explained one I've been able to find and actually understand! :D

  • @MrParkour223
    @MrParkour223 8 лет назад +8

    Great teacher your students are lucky to have you!

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

      He is merely telling what happens and how it happens. He does not explain why this is the way things are done. How are you supposed to remember anything without being able to develop clear context?

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

      Well if the teacher had to explain why everything you learn about was designed the particular way it was, it would become pretty time consuming and I dont think anyone would have enough time to finish learning all the course content.

  • @gabenewell7220
    @gabenewell7220 9 лет назад +12

    Good tutorial m8, Gabe shines his light down upon you

  • @tranquyet1089
    @tranquyet1089 6 дней назад

    Thank you. Great teacher!

  • @NargaKuruga
    @NargaKuruga 7 лет назад +4

    This video helped me more than my actual teacher even though I study in French

  • @LiamDoyle9
    @LiamDoyle9 10 лет назад

    Thank you so much for this upload! I'm currently doing my HNC in Scotland and this is going to help me out so much come exam times!

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

    great video, this has helped me out loads for an assignment

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

    Thank you so much, I didn't understand this during my lesson, but this helped a lot.

  • @stormblazer9991
    @stormblazer9991 9 лет назад

    This is top-notch, I just wished that you tilted the camera slightly to the left so I could see the side-notes, but I can cope with it. Thank you.

    • @HurrayBanana
      @HurrayBanana  9 лет назад +4

      Yeah sorry about that
      it was just the fetch execute steps
      pc to mar
      ms [ mar ] to mdr
      mdr to cir
      increment pc
      decode
      execute
      check for interrupts

    • @stormblazer9991
      @stormblazer9991 9 лет назад

      HurrayBanana Thank you so much! A life-saver! Don't worry, I knew what was going on, I just wanted to make sure that I am following the same steps.

  • @peterchartier3387
    @peterchartier3387 8 лет назад +3

    This was crazy informative.

  • @JakeBSHere
    @JakeBSHere 9 лет назад

    Yes Adham great lives think alike

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

    Is there another video i can find on youtube or the internet that has a similar setup yet covers things in much greater and deeper detail?

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

    Solid work, very impressive.

  • @sizzxrk
    @sizzxrk 9 лет назад

    Nice one mate! This is really going to help tomorrow!

  • @IG7799-c4u
    @IG7799-c4u 7 лет назад

    Thanks so much! Never understood this shit until now.

  • @mayflora7081
    @mayflora7081 8 лет назад +7

    Can't see the writings on the left side :(

  • @glorioussoapbox
    @glorioussoapbox 10 лет назад

    Great stuff! Very instructive.

  • @sophiahollis5584
    @sophiahollis5584 7 лет назад +2

    Thanks this was really helpful

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

    Thank you for the tutorial, now I know what time the coffee shop opens on a sundayy lmao

  • @Matt-ot1jn
    @Matt-ot1jn 8 лет назад

    Great Video! Thanks for the help :)

  • @memelord9965
    @memelord9965 9 лет назад

    What about the immediate access store? What role does that play in the fetch execute cycle?

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

    Yhe that is good i can understand really thanks indeed

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

    Really good. Thanks...

  • @pathumniroshan6145
    @pathumniroshan6145 10 лет назад

    Thank you sir,
    I have been going through a lots of videos, diagrams, notes, etc etc,
    But this is the most simplest one i came across,
    this is gonna solve a lot of my problems,
    Thanks a lot.
    My only question, Is that the RAM you are referring as Main store?

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

    From keyboard to MAR , is there an encoder and decoder? Thanks

  • @bartoszczapski1399
    @bartoszczapski1399 9 лет назад

    Thanks, that helped a lot!

  • @JakeBSHere
    @JakeBSHere 9 лет назад

    Also thank you this was so helpful

  • @sc.smitshah
    @sc.smitshah 8 лет назад

    Nice explanation. I have a doubt:
    How does the decode works on the LDA 110, Like how does CIR knows if the its is a instruction register or a another memory register (110) that needs to put the value in it.
    Example 1: LDA #1 -> 1 was the value in accumulator
    Example 2: LDA 110 ---> 110 is the address, takes the value at the address 110 i.e 150
    Could you please elobrate, quite confuse at that point?

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

      The CIR contains the opcode which states the instruction following this is the effective address mode which tells the CU how to interpret the operand part. Assembly language uses notations to indicate the addressing modes.
      e.g.
      let's say the opcode for LDA is 01101 the next three bits could be used for the addressing mode and the next 8 bits for the operand (this is just made up no particular cpu here)
      opcode ea operand
      01101 001 1100 0010
      LDA #10 - immediate 10 is the value to load - instruction in machine code 01101 000 0000 1010
      LDA 10 - load value from address 10 - instruction in machine code 01101 001 0000 1010
      LDA (10) - load address 10 and load value at this address - instruction in machine code 01101 010 0000 1010
      hope the formatting is ok

    • @sc.smitshah
      @sc.smitshah 8 лет назад

      Thanks for the prompt reply. So in conclusion, CU decides where it is an direct value, or an address from which value to be loaded. Am i right?

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

      yeah pretty much some bits in the instruction tell it how to calculate the address from the operand

    • @sc.smitshah
      @sc.smitshah 8 лет назад

      Cool Thanks. Great Explanation.

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

    Does any one out there know how i can or where to go to join this class.?, Please send me an email thank you........

  • @ashraffmohamedashraff3734
    @ashraffmohamedashraff3734 9 лет назад

    thank u so much

  • @RJduckyard
    @RJduckyard 9 лет назад

    Great stuff. But isn't the PC increment right after a fetch?

    • @its.jaslyn3118
      @its.jaslyn3118 9 лет назад

      +RJduckyard Yes, the PC increment is after the Fetch :)

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

    left part of the white board (i.e., Instruction part) not visible clearly.
    But a good video tutorial.

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

    +HurrayBannana Something is really annoys me when you explain the halt. When talking about all other operation you said that it increases the program counter then checks for interruptions. Should it not do this for the halt command and if not why.

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

      when it decodes the halt it needs to increment so the pc is pointing to the next instruction to execute, if it didn't do this when it returns from the interrupt that breaks the CPU out the halt operation it would re-execute the halt rather than proceed with the program e.g. (taken from some pacman hardware coding I have done). So below when processing has finished for the frame I issue a halt, which sits there until the vsync interrupt occurs which does various frame based procesing, when this interrupt finishes we need to execute the jump instruction and start the loop again.
      mainloop:
      ld a,(mode) ;get mode
      cp title_mode ;is it title mode
      jp z,title_logic ;yes
      cp game_mode ;is it game mode
      jp z,game_logic ;yes
      cp game_over ;is it game over
      jp z,game_over_logic ;yes
      wait:
      halt ;finished processing let's wait for vsync
      jp mainloop ;perform logic again

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

      HurrayBanana oh OK. bit you missed out on saying the increment on the run through with the halt command. This is what confused me.

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

    Now what exactly would this look like with logic gates and flip flops?

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

      There are quite a few YT'rs who have built CPU's from logic circuits

  • @ExtremeRaiderz
    @ExtremeRaiderz 10 лет назад

    thanks it helped.

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

    Thanks you !!!!!!!!!

  • @gayoung_o0
    @gayoung_o0 9 лет назад

    Thanks :) !!!!!

  • @richrich981
    @richrich981 10 лет назад

    Last min revision :D

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

    who is the teacher ? where is this ?

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

      thats what i will like to know.........

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

    WHAT IS THE FULL FORM OF CIR

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

      as the data held is assumed to be an instruction. it will hold a bit pattern containing three items (not all instructions require ooerands or addressing modes) an opcode (1), an effective addressing mode (2) to determine how the operand (3) should be used to determine the effective address of the data for the instruction

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

      thnks..sir

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

    Are you an Australian?

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

    ggs in the chat

  • @JakeBSHere
    @JakeBSHere 9 лет назад

    Minds*

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

    lol every video on youtube on FEC is made by a british lad

  • @wasop788
    @wasop788 9 лет назад

    dislike