So these 5 compartments or stages all can preform instruction fetching, instruction decoding, executing, accessing memory and writing back? or are these all separate compartments that each can only preform only one of those functions? I hope my question was clear and correct enough and you are still active on you tube.
Hey so, I am learning architecture right now and from what I understand, the 5 stages are separate. Stage 1 is instruction fetch, stage 2 is instruction decode, stage 3 is execute and stage 5 is write back. So pipelining works by instead of 1 instruction going through all 5 stages and then the next instruction going through all 5 stages, instruction 1 will be fetched and then while instruction 1 is decoded, then instruction 2 will be fetched then while instruction 1 is being executed, instruction 2 is being decoded. Think of doing laundry. You wash them, then dry them then fold them. Well, say you have two loads of laundry to do; you wouldn't wash, dry and fold one load and then start washing the second load, it would simply take too long to finish both loads. So what you do is after you wash the first load you throw it in the dryer. While the dryer is drying the first load, you throw the second load in the washer. When load 1 is being folded, you throw load 2 in the dryer and then when you finishing folding load 1, its time to fold load 2. That is exactly how the stage pipeline works... like doing a bunch of laundry lol
how can this be free? This is on another level; brilliantly done!
can't believe this content is free for everyone
Sir, you're the best! Thank you so much for these lectures!!!! Shout-out from a CS student from Kazakhstan!
Amazing, this is just so much better than my uni lecture.
So these 5 compartments or stages all can preform instruction fetching, instruction decoding, executing, accessing memory and writing back? or are these all separate compartments that each can only preform only one of those functions?
I hope my question was clear and correct enough and you are still active on you tube.
Im doing an ARM architecture presentation, for your interest. maybe it makes a difference
Hey so, I am learning architecture right now and from what I understand, the 5 stages are separate. Stage 1 is instruction fetch, stage 2 is instruction decode, stage 3 is execute and stage 5 is write back. So pipelining works by instead of 1 instruction going through all 5 stages and then the next instruction going through all 5 stages, instruction 1 will be fetched and then while instruction 1 is decoded, then instruction 2 will be fetched then while instruction 1 is being executed, instruction 2 is being decoded. Think of doing laundry. You wash them, then dry them then fold them. Well, say you have two loads of laundry to do; you wouldn't wash, dry and fold one load and then start washing the second load, it would simply take too long to finish both loads. So what you do is after you wash the first load you throw it in the dryer. While the dryer is drying the first load, you throw the second load in the washer. When load 1 is being folded, you throw load 2 in the dryer and then when you finishing folding load 1, its time to fold load 2. That is exactly how the stage pipeline works... like doing a bunch of laundry lol
@@bsce100 this was lots of help :) thanks a lot
Anar_NL no problem. I’m glad it helped
@@bsce100 Nice and Simple Explanation Keep it up we need more people like u in the world :)