Hi everyone welcome to go classes how are you all good evening good evening so let's start now uh before we start please tell me audio video volume is everything clear let me know okay so let's start now foreign now in this session what we are going to do We are going to do the complete revision of pipeline okay uh each and every gate previous year question we will take okay each and every get previous year question every gate question we are going to cover in these lectures okay in the in in this revision lecture so
let's quickly start pipeline complete revision okay so to uh in this lecture what uh what we what I want to do basically first we will see Pipeline introduction then we will see some get questions okay most of the get questions come from this topic pipeline introduction okay pipeline performance let me tell you like in in the gate exam almost 50 percent questions are coming from pipeline performance only okay so the basic questions are coming in the gate exam from the pipeline most or almost you can say 50 questions okay then we will see data dependency
and Hazards what is data dependency what is Data Hazard what is the difference this difference is very important okay because in the gate exam there are two questions on this difference and many good questions can be created on this difference what is the difference between data dependency and data Hazard what is the difference okay so that difference we will see so this is the uh I can say content for this lecture now let's start without without consuming any more time so let's just start and Also tomorrow you have all in your mock test too right
okay so tomorrow you should attempt like uh once this session is over then uh just go to this go to sleep and wake up tomorrow morning and attempt old India mock test 2 okay now let's start so pipeline let me tell you you already know pipeline let me tell you like this is the most natural Concept in computer organization this pipeline is a very natural concept not only in pipeline Sorry not only in computer architecture forget about computer architecture in real in your real life this pipeline uh you will see everywhere okay so you already
know and understanding pipelining let me tell you of course we will start now we will see the revision we will see great questions everything we will see but let me tell you that you already at this point of time you already know okay you already understand pipeline all you have to do just apply Your Concepts just apply your common sense okay okay that common sense you have to apply uh on the get questions and all the get questions will be done so let me tell you that from the pipeline all the gate questions actually forget
about get questions all the questions most of the questions they are common sense based question let me tell you okay from this pipeline most of the questions are common based Common Sense based like you can easily solve those Questions uh with your I can say Common Sense okay that we will see don't worry I will I will take all the gate questions so you will see that now anyway so you already know and understand pipelining now let me let me prove it to you for example pipelining is everywhere okay uh like pipelining in the construction
so have you seen this type of scenario Whenever there is some construction at some construction site maybe at your house at your home uh okay So this type of scenario might you might have seen okay so this is called pipeline actually this is called pipeline so you can see this is called pipeline now let me tell you what is happening here okay let's Analyze This construction pipeline let's Analyze This okay so uh for example let me assume that uh here you have all the uh have you seen the swadesh movie there is a swadesh movie
by Shahrukh Khan okay so in that movie there is a scene there That uh here they are constructing some uh okay at this at this point they are constructing some wall uh some uh sorry some whale or something they are constructing and um okay uh so here they are constructing some I can say water water tank they are constricting sorry okay so I can say water tank so some water tank they are constructing this construction they are doing and uh so from here they have to take the bricks so let's assume here you Have all
the bricks are here okay so uh all the bricks and this is like this is a I can say this is some some mountain or something so so you can see here you have all the bricks okay now you tell me this is two scenario I am giving you what I am giving you I am giving you two scenario one scenario is a non-pipeline scenario okay the first scenario that I will give you that is known pipeline scenario plplpl means I will when I say Pi uh it means pipeline okay so non-pipeline scenario let me
give you so what happens what you can do let me assume that you want a 20 Bricks here let me assume you need 20 Bricks okay you need 20 Bricks here and let me assume that here these are the steps like one step two three four five six and like seven okay so let's assume these are the steps so now you tell me if there is one person in the in the known pipeline in this non-pipeline Scenario non-pipeline scenario so let's assume there is single person here okay he is taking one brick and then he's
uh putting that brick here then coming back sorry and don't worry about the coming back so basically first one person will take one break go here another person will come take one break go here then another person will take one break go here one after other like once this is done then the next person will go then the next person will go so now you tell Me how much time it will take like how much time we've uh it will take to basically uh take all these bricks all these 20 Bricks at this point so
tell me what is the time uh how much time we will need tell me so how much time we are going to need so you can notice that the first person one two three four five six seven so seven steps it will take okay once these several Stakes are over then the next person will go okay then The second person will go then the third person will go okay yes or no so tell me how much time it will take so it will take 7 multiplied by 20 uh yes or no because we need 20
Bricks here so 20 people will go like first the first person will go this person number one when it will go here this person number one when it will go here okay when it is done when it is done then after that the next person will go right then after that the next person will go yes or no Okay so once this is over like once this is over then this person will start then this person is going to start okay then this person will go so can I say that these many uh this much
amount of time it will take yes or no like whatever so this much amount of time it will take 7 into 20 right yes or no correct okay seven then seven then seven then seven and so on seven into twenty so this much amount of time it will take now what is the better thing to do tell me like uh Like for example uh all these people uh they don't know what is computer architecture but they know pipeline they understand pipeline they don't understand computer organization but they understand pipeline so tell me what they will
do what they will do they will create a pipeline they will create pipeline means okay what will happen so these are the seven steps so now what what will happen one person will stand here so basically you are dividing your Hardware like you can consider these people as Hardware you are dividing your Hardware okay so this divide this Hardware you are dividing okay this Hardware you are dividing like this this Hardware you are dividing like this okay so now you tell me now you tell me how much time it will take again 20 Bricks again
to bring 20 Bricks how much time now it will take now what Will happen now this is going to happen so okay so the first brick look at the first brick look at the first brick look at the first break that will go here then that will go here then that will go here then that will go here then that will go here okay then here and then here so tell me did we save any time for the first break did we save any time for the first brick for this first brick there is is
there any time saving there is no time saving Right yes or no there is no time saving okay so for the first brick there is no time saving definitely there is no time saving for the first brick what will happen you will need total seven steps for the first break this will happen for the first brick okay now you tell me about the remaining now you tell me Tell Me Something Beautiful will happen Something Beautiful is going to happen what is going to happen See what is going to happen when the first Brick is here
when the first Brick is here then the second Brick is here right yes or no correct when the first Brick is here when the first Brick is here then the second Brick is here and the third Brick is here right yes or no so now you tell me now you tell me like when the first Brick is here finally when the fresh Brick is here then the second break is here right okay so now you tell me how Much time it will take for the remaining bricks for the remaining 19 bricks they are coming one
after other yes or no so total how much time you are taking only 27 unit 26 units yes or no so a lot of time you are saving or not a lot of time you can save or Not by this pipeline execution yes or no did you understand this a very simple I can say a very simple scenario that we that we observe in our real life so this is The construction pipeline yes or no so basically your Hardware this is this is you can consider this as your hardware and this is your like your
Hardware you have divided this is like your Hardware you have divided okay your Hardware you have divided is this clear so the hardware so total seven people the hardware you have divided but here you did not divide the hardware okay here you have a single Hardware so that uh Hardware you did not Divide but here what you have done you have divided the hardware and finally I can say 26 units it will take this much amount of time it will take for 20 Bricks okay 420 bricks this much amount of time it will take and
in this scenario you can see 420 bricks this much amount of time you need so tell me tell me which is beneficial pipeline or non-pipeline tell me which is beneficial like which is uh which you will prefer definitely you will prefer pipeline yes Or no did you understand this please tell me pipeline is very natural concept it is very very natural concept you can notice that this happens this pipeline happens all around your all around you in your real life you will always see the pipeline happening okay this pipeline this concept is applied in all
the fields of I can say of our real life so did you understand this problem did you understand that when this brick when the first Brick is here then the second Break will be here then the third brick will be here then the fourth brick will be here okay so did you understand this that we will need only 26 units of time only this much amount of time we will need 420 bricks so we can take 20 Bricks from here to here we can take 20 Bricks in 26 amount of time and in the non-pipeline
scenario in the known pipeline scenario we need 140 units of time so definitely this is your pipeline okay so pipe now let's see another Scenario like another scenario is your oil pipeline in the oil pipeline what happens like this is your oil pipeline right correct so for example again the same thing will happen like let's assume that here you have some uh some tanker okay now here uh you you are discovering some uh suddenly you discovered oil here okay so here you'd suddenly discovered oil okay now what do you need so let me assume that
you want to you want to fill this tank again there is this tank you Want to fill this tank and you have a bucket so this is you and you have a bucket and let's assume this bucket has uh this bucket can put like um I can say like this bucket has the capacity of 25 percent okay so this bucket can uh take almost I can say one by fourth water so one by fourth oil of ten uh one by fourth of tank I can say let's assume this is the size of this bucket now
you tell me and let's assume that you are taking three Days like if you if you want to go one day two day three day so for example now here what will happen tell me here what will happen if you apply known pipeline scenario then what is going to happen in the non-pipeline scenario you are not dividing your Hardware is this clear is this clear that you are not dividing your Hardware okay like you have a single Hardware this single Hardware you have okay what this single Hardware will do please understand this is very very
Important you have this single Hardware okay you have this single Hardware you have this single Hardware you are not dividing your Hardware now what this because this is a single Hardware so what it will do first it will do one work then it will do the second work then it will do the third work do you agree yes or no because you have a single Hardware so it will do one work at a time it will do one work at a time it will do one work one work means one Instruction okay so it will
do one instruction at a time it can only do one instruction at a time so you can see that you you have a single Hardware now what the single Hardware will do it will take one day two day three day in three day this will be filled okay so this will take how much time this will take three days right yes or no this will take three days then again what will happen then again this will happen then again this Will happen so it will take three days so tell me how much amount of time
you will need to fill this tank how much amount of time to fill this tank how much amount of time you will need so can I say that you will need total two uh 12 days right yes or no okay so total 12 days you need correct very simple now you tell me if you have pipeline like what you do you do something smart okay you do something smart like you can make a pipeline here So this type of pipeline you can you you can make okay so this type of pipeline let's assume this type
of pipeline you can make now you can make this type of pipeline now what will happen see this first Bucket look at this first bucket this first bucket what you will do this first bucket you will put here now this first bucket is going going going going going going going okay this first bucket is going now you tell me how much time for single bucket how much time for Single bucket this single bucket how much time it is taking this single bucket how much time it is taking the first bucket how much time it is
taking this first bucket again it will take the same three days right yes or no it will take again the same three days okay because there is no I can say we do not have any we do not have any benefit the first bucket has to travel okay the first bucket has to travel so it will take three days the first bucket will be Here no problem okay so there is no benefit there is no benefit but now what will happen Something Beautiful will happen as soon as this first bucket will be here okay okay
you can very easily within small amount of time you can get second bucket then you can get third bucket then you can get fourth bucket yes or no like this is the benefit see the first bucket will take same amount of time like the First bucket will not give you any advantage the first bucket will not give you any savings but what will happen after that all the buckets that you have after that second bucket third bucket fourth bucket they will not take three days okay they will they will take maybe one hour maybe one
hour maybe this will take one hour maybe this will take one hour maybe this will take one hour so did you notice a lot of savings you have so if you do this Pipeline with this Pipeline a lot of savings you can do so finally it's like I can say three days plus three hours okay so a lot of savings you can do right yes or no is this clear to everyone please tell me something like this like this is just an analogy don't go into the exact data like don't worry it's sort of why
one hour two hour okay so don't worry about the exact data this is just analogy did you understand the concept of pipeline in the pipeline and Non-pipeline okay so this is a very natural concept let me tell you like for example what is the concept of pipeline the concept of pipeline is that never waste time okay never waste time this is the concept of pipeline pipeline means never waste time do not waste time this is the concept of Pipeline and let me tell you this pipelining concept this is a very natural concept this is very
I can say you will see this concept everywhere in every field you will see In every field of real life you will see this pipelining concept so basically what we are doing in the pipelining in the pipelining what we are doing multiple instructions there I can say they are executing parallely like you can notice here multiple instructions they are executing parallely like for example you can see when the first Brick is here then the second Brick is here then the third Brick is here fourth Brick is here so so you can notice Simultaneously okay simultaneously
many bricks multiple bricks are going towards here yes or no simultaneously simultaneously multiple bricks multiple instructions are executing simultaneously multiple bricks are executing simultaneously okay so this is the concept of pipeline this is a very simple concept okay is this clear to everyone tell me now let's see this question tell me the answer quickly tell me the answer So uh most of many of the slides I have taken from uh Georgia Tech University so there is a pipeline course by Georgia Tech University so many of the slides I have taken from Georgia Tech University like
this question this question is taken from let me tell you the source of this question this is like this is Georgia Tech University okay anyway so tell me the answer for this quickly tell me so there is a laundry pipeline what is laundry Pipeline there is a washer one load of laundry it will do in one hour okay let's assume one load one load of laundry it will do in one hour then you have dryer okay one load of laundry it will do in one hour and then there is a folder okay again one load
of laundry it can fold in one hour okay so they are taking one hour one hour one hour no no okay if you do not have any pipeline then what is going to be your how much time it you will need if you have no Pipeline if there is no pipeline then how much time you will need so for 10 loads of laundry so for 10 loads you will need total three four uh this is for one right okay this is a four one one load of laundry I can say this is for one load
of laundry okay so now you tell me with the pipeline how much time it will lead with the pipeline how much time you will need with the pipeline how much time you are Going to need see very simple concept that the first load the first load will take three hours right yes or no the first load will take three hours agree the first load the first load will take three hours but but but but but when the first load is here when the first load is here okay then the second load is here then the
second node is here and then the third load is here so you can notice that the first load Will take three uh three hours this is for first load this is for first load okay but the remaining nine loads they will take only one hour okay the remaining nine load of laundry they will take only one hour so finally how much time okay only 12 hours yes or no so what are the what is the speed up what is the speed up what is the speed up of like what is the speed of this pipeline
will provide you over known Pipeline what is the speed of a pipeline over known pipeline how much speed up it is providing you how much speed up did it provide you okay how much speed up did it provide you like how much fast how much faster it is how much faster this pipeline is okay so you can clearly see that this non-pipeline was taking 30 hours this known pipeline divided by pipeline okay so this known pipeline was taking 30 Hours and this pipeline is taking only 12 hours so finally how much speed did it provide
this month this much okay this is your answer so this much speed up did it provided you for 10 loads of four 10 loads of laundry is this clear tell me so this is a simple question this is a simple quiz what is happening here did you understand did you understand what is happening here because you can notice That the first load will take three amount of time okay the first load will go here then it will go here then it will go here but what will happen when the first load is over then the
second load will only take one hour then the third load will take only one hour fourth load will take only one hour and so on so finally I can say that the first load will take three hour the remaining 9 load will take only one hour only one hour so the finally you will Need only 12 hours okay but in the known pipelining you will need 30 hours now you tell me a simple question again I am asking actually let me tell you this when you do this known pipeline when you do this known pipeline
in this actually the hardware is not divided okay this Hardware you can consider this as a single like okay you see let me tell you this is something important actually that is the reason I am telling you so When you have this pipe known pipeline okay when you have this known pipeline what actually it means it actually means that you have it's like it's like you have a single machine it's like you have a single machine okay so this is known pipeline laundry this is known pipeline laundry non-pipeline laundry machine or okay so in the
loan pipeline rotary machine actually there is a single machine remember please and remember so there is A single Hardware you can understand that there is a single Hardware okay there is a single Hardware of course in this single Hardware you have in this single machine you have the facility of a washer you have the facility of uh dryer okay you have the facility of a folder are you getting my point okay have you seen this type of like washing machine think about the washing machine that you have in your house in your house you have
a washing machine Think about that tell me do you have three washing machine do you have three of them three machine do you have in your house do you have three machine do you have a different machine for washer different machine for a dryer different machine for folder do you have that you don't have that so because we cannot afford it right yes or no so that will be very expensive and there is that is not needed in our house in our house what we will do maximum one or two Laundry we will do in
one day okay so in your house you have a single Hardware please understand this is something uh important okay uh because many students they don't understand this clearly okay they don't understand the difference of Pipeline and non-pipeline clearly this I have seen and there is a there is one gate question in which uh if you don't understand this difference then also you can solve that question okay that question you can still solve but you Will not be satisfied okay so if you don't understand this difference so please understand this difference what is happening here like
non-pipeline laundry okay it's like your house in your house you have a single machine it's like a single it's like a single machine okay single washing machine so remember this is like a single machine in this single machine you have the facility of washer dryer folder these Facility you have so this this machine is taking uh I can say this machine is taking three hours okay this machine is taking three hours for um one load of laundry okay is this clear so this is the data actually actually okay so when this is given to you
when this is given to you this this is given to you and I ask you what happens when you have no pipeline okay then what you have to consider tell me what you have to consider like this This photo is given to you and I tell you that there is no pipeline I tell you there is no pipeline then what you will consider then you will consider that this is a single machine this is a single Hardware is this clear is this clearer to everyone tell me so this this photo I give to you and
then I tell you that there is no pipeline there is no pipeline it just simply means that we did not divide our Hardware we do not have like uh we we did not like separate Our Hardware it's like a single I can say single Hardware or you can say single Atomic unit you can say it's a single Atomic unit okay you you have to consider this as a single Atomic unit you have to consider okay so this is what I'm saying now you can notice that so this is like the analogy is very simple in
your house you have a single machine this single machine has the facility to do washing drying folding let's assume okay so Basically this is your non-pipeline laundry machine which is taking three hours for a single load now what this pipeline this laundry machine is what is pipelined laundry machine is pipelined laundry machine what is that can anyone give me what is the analogy for pipeline laundry machine it is like a shop that is like a uh I don't know in India I have never seen this in India I have never seen that this type of
shop where uh people go out and they have Laundry but uh in this there is a series friends uh okay so there is this series friends in this friends I have seen this this type of system I have seen uh in this series okay so there is a TV series friends okay anyway so what happens in a pipeline laundry machine you can consider like a shop you can consider like a shop so this is in this shop what happens like you can consider this this is a machine this is a machine which Only does the
washer this is a machine which only does the washing this is a machine which only does the uh I can set whatever like drying okay and this is the machine which does the folding okay so you can consider like this is this clear okay so you can consider like this now you have now you have divided your Hardware now it's like your Hardware one Hardware to Hardware three okay so now you are separated basically now what you have done you have Separated your Hardware you have separated now what is happening now this is happening that
this is taking one hour this is taking one hour and this is taking one hour okay is this clear tell me is this clear so you can consider this pipeline laundry as basically you have divided your Hardware this pipeline laundry okay in this pipeline not only what you have done you have separated your Hardware like this okay in the known pipeline laundry what you are Doing there was a single machine okay did you understand the difference between Pipeline and non-pipeline in the pipeline what we do basically it's not like uh for example let me give
you an example in your house you have a washing machine can you use it as a pipeline like in your house think about your house in your house you have this washing machine can you use it as a pipeline like can you do this that okay uh when something Is drying then something else is washing can you use it no what you will have to do tell me in your house you have this machine this washing machine you have can you use it as a pipelined machine you cannot use it right you cannot use it
because it is a single atom a single entity it is a single Hardware single entity single machine you cannot do that so tell me what you will have to do what you will have to do tell me okay if you want to convert this machine If you want to have a pipeline laundry machine then what you will have to do then you will have to divide these facilities into three Hardwares do you agree these facilities these three work you have to divide into three Hardware okay these facilities these facilities okay these facilities you have to
divide into three Hardware okay three Hardware so this is what I am telling you so the difference in Pipeline and non-pipeline machine did you understand what is pipeline machine what is non-pipeline machine so in the pipelining basically we have separate Hardware okay uh like basically we divide the hardware you have your Hardware that Hardware you are dividing so that you can use a so that you can have a pipeline uh I can say pipeline system is this clear you have your system in that system what you do you separate the hardware okay you separate The
hardware then you will get a pipeline system then you can use that system as a I can say two to execute the multiple instructions at the same time please tell me is this so far is everything clear this point is not I can say this point is very important actually that is the reason I am telling you this point the difference of Pipeline and known pipeline this difference is really really important okay so far everything is clear like in Your mind just have this this uh this analogy okay this analogy right your mosing machine in
your house washing machine in your house that is the pipeline that is the known pipeline okay in your house the washing machine that you have that is non-pipeline okay and uh in this in this shop the washing machine that you have that is a pipeline so for the pipeline what you are doing you are separating the hardware Okay so that so that you can execute multiple instructions at the same time so that you can you can execute like when when drying is happening when someone someone is drying then someone is else is washing someone else
is folding okay so you can do multiple things at the same time okay so that is the reason we divide Hardware okay now let's move on so this is the point so what is pipeline pipeline will improve your efficiency by executing multiple Instructions at the same time okay so you can see pipeline is an implementation technique in which multiple instructions can be executed at the same time okay now let's move on now what we are going to do now pipeline in a processor so far we have seen the analogy right did I give you any
processor so far we did not see any processor right we did not we have only seen the analogy so far and remember analogy is not a Concept okay analogy is just for understanding that is not a concept so now what we are going to do we are going to see how we can use pipeline in a processor okay now there are two concepts actually first let me tell you a concept of single uh I will tell you that okay don't worry I will tell you Pipeline and known pipeline in a processor now let's see so
what happens uh you already know whenever a instruction is executing it will what it Will do you will you will face the instruction okay right these things you will do so basically when your instruction is executing like this instruction where this instruction is executing this instruction execution is happening then what you will do then first you will instruction fetch first you will face the instruction from the main memory sorry from the instruction memory like this is your instruction memory from the instruction memory you Will fetch the instruction then what you will do after fetching the
instruction what you will do you will decode this instruction and you will read the registers okay you will read the registers then what you will do okay you will decode you want to find out which type of instruction this is is this addition instruction subtraction instruction multiplication instruction load instruction what type of instruction This is okay and you want to read the register okay for example if your instruction let me let me assume that your instruction is ADD R1 um like this is your instruction add R1 R2 R3 and let me let me let me
assume this is the destination Let Me Assume this is the destination okay so it means you are adding and you are putting into R1 okay so you can see that what you will do first you will fetch this instruction this instruction I1 you will face okay here you will face the instruction from the instruction memory this is your instruction memory from the instruction memory you will face the instruction to the in in your CPU okay now after that what you will do you will do the instruction decoding you want to find out which type of
instruction this is is this addition load store multiplication what type of instruction this is you will also read the registers you will read the Registers The Source register you will read you will read R to R3 okay you will read R2 R3 so this Source register the source register you will read then what you will do after that you will do the ALU right yes or no okay you will do the ALU so these register that you are reading these resistors you will add okay you will add them this addition actually the the actual addition
will happen Okay so what will happen here here R2 plus R3 happen Here i1 okay so now after that what will happen after that if there is any need see for this instruction there is no need for this instruction we do not have any need but if there is any need then okay anyway let me make it simple let me keep it simple so if there is any need then you can access the data memory also if you have any need then what you can do you can access data memory okay access Access Data memory
like let me give you a scenario where you have this Need like let me give you this scenario so you can access data memory uh why you want to access the data memory in this we do not need this right yes or no do you agree for this addition instruction there is no need to access the data memory the data memory we don't need to access what this for this addition instruction but maybe for some other instruction maybe for some other instruction okay like for example load Instruction like consider this load Word this instruction you
consider like R1 and uh consider this load word instruction like consider this type of instruction in this what this means this means load Word what this instruction means this instruction simply means that in R1 you put in R1 you put what you put in R1 of what you put you put memory 2 plus R2 okay in the memory in the memory this is like you are accessing the memory this Is your data memory okay this is your data memory you are accessing the data memory okay and this is the address and this is the address
and this is the address so I can say address of operand operand or data okay address of data so you can see now in this load instruction what will happen again tell me tell me tell me tell me in this load instruction again what will happen you will fetch this instruction so this I2 will come From the instruction memory there is an instruction memory okay from the instruction memory this I2 will come in in the CPU okay then what will happen then you will decode this okay you will you want to find out whether this
is load instruction store instruction addition multiplication what type of instruction this is so you will decode this you will read the registers okay you will read the registers like what are the registers you will read The Source register this R2 you will read okay so here you will read the register like R2 this register R2 you will read Because this is the source resistor okay so you can see this is the source so you will read this and this is the destination this is the destination okay now what will happen after that after that you
will use ALU tell me one simple thing I am asking a very simple thing I'm asking this load instruction what it will use ALU for What it will use ALU for for this address calculation right R2 plus 2 right yes or no so this load instruction what it will do this address calculation words so finally this will use ALU for address calculation now you have this address okay now this is your address now what you will do tell me now what you will do you have this address now what you will do you have this
address now what you will do This address you have then you will access the data memory yes or no correct right so now you will access the data memory this data memory you will access okay so from the data memory you will access you will get this data this data you will get and finally that data where you will put you will put in the register right back in register right back in register right register okay so whatever data you got whatever whatever whatever data you got you will Put that in R1 okay you will
put that in R1 okay so very simple so this is your point Access Data memory means M of R2 plus 2 okay so this is the complete explanation like I am saying that I am just telling you a simple scenario I am telling you okay a simple scenario I am telling you that see this is uh okay so you can see that for example if you have this instruction add R1 R to R3 then what you will do you will fetch this instruction decode this instruction uh You want to find out decode means you want
to find out which type of instruction this is in this addition multiplication load store then you will read the register you will read The Source register R2 R3 you will read then you will execute the ALU okay then you will use the ALU to compute R2 plus R3 then there is no need for this right yes or no for this instruction for this i1 for this addition instruction there is no need there is no need for this but Anyway this will happen because because all the instructions they will go they have to go through the
same path yes or no see this addition instruction does not need to access data memory right yes or no do you agree this addition instruction it does not need to access data memory but still but still this phase will happen okay but still this phase this phase will happen in this phase this addition instruction will not do anything in this phase This ad instruction will not do anything but still this phase will happen like in this phase this addition instruction will be I can say will be idle okay so after this what you will do
after this right register after this right transistor so here what you will do basically in this you will write this value this value you will write into R1 okay so this is the point this is your instruction execution I have told you About the instruction execution very simple now you can notice now you can notice what happens in this instruction execution what happens so let's see this instruction execution look at this instruction execution look at this extraction execution from Hardware point of view look at this instruction execution Hardware okay look at this instruction execution Hardware
now I am creating the hardware okay the Diagram of Hardware I will create for this instruction execution so what is happening here just give me a second okay so now let's see from the hardware point of view like how the instruction execution will happen uh let me create the hardware how the things will happen in the hardware so you know there is a program counter right okay what this program counter will do there is a program counter correct this program counter will tell you where is the next Instruction okay this program counter this is going
to tell you where is the next instruction so from this program counter okay you will take the value you will take the value where you will go tell me where you will go where you will go you will go to the instruction memory okay you will go to the instruction memory from the instruction memory what you will do you will go to the instruction memory okay so basically from this program counter you will take The program counter value okay you will go to the instruction memory that instruction you will take for example this instruction this
instruction you will take now after this what is the next stage after this once this instruction okay you are fetching this instruction now this instruction has come after this what will happen after this decode will happen okay this decode will happen this decode will also happen also what Will happen the second thing what will happen are this decode will happen and register read will happen okay you will read the register this is your register file this is your register file okay so you will read the registers so two things will happen you can notice first
you will fetch the instructions so it's like uh this is like instruction fetch you are fetching the instruction okay then what will happen then you will decode the instruction you want to find Out which type of instruction this is is this addition instruction multiplication load store what the what instruction is this okay then what you will do okay uh at the same time at the same time you will read the source resource register you will read now like for example focus on this add focus on this instruction like Edition R1 R2 R3 okay so what
will happen you will read The Source register the source register you will read after that what you what will happen tell me After that here this execution will happen right okay so after this you will go to the ALU okay so this ALU execution is going to happen Okay so many people they create diagram like this so this is your ALU so the ALU execution will happen so you will compute R2 plus R3 this R2 plus R3 you will compute after that tell me for this add instruction just tell me a simple thing for this
add instruction what will happen then what is the next step for this add Instruction what is the next step for this add instruction for this add instruction The Next Step yeah memory is not needed okay so what will happen you will add this R1 plus R2 plus R3 you will do this you will do this and where you will put you will put in the register file right yes or no you will put in R1 you will put in R1 right back this is called right back so now did you understand why this is called
right back Did you understand why this is called right back did you understand why this is called right back like why this word right back back b a c k did you know this did you know this why this is called right back did you know this what is the reason we are putting this back here b a c k okay so anyway so you can see that this Is called right back because what you will do okay whatever like this R2 plus R3 and this you will put in the register file you will put
in the R1 but remember but remember if your instruction is load word if your instruction is like this R1 and then something like 2r2 okay so if your instruction is like this then what will happen tell me then what will happen if your instruction is like this load Word now in this situation what this ALU is doing That is the address right correct okay so you can see that in this situation if your instruction is load Word then what this ALU is doing that is the that is the address of the data memory okay so
from here you will go to the data memory so from here you will actually go to the data memory there you will read okay there you will read this uh this data you will read and that data again you will write here this is the hardware I am telling you Okay this is the so because the data that you will read remember very simple point the data that you will read the data that you will read you will put in the R1 okay so that is the what I'm saying the data that you are reading
you are putting in the R1 so this is the hardware this is called Data path did you understand this please tell me this instruction execution Hardware or I can say this data path did you understand This let me know very simple right yes or no okay so this is a simple instruction execution Hardware now let me tell you what happens there is one one thing is called pipeline now remember remember if you have no pipeline then what it means tell me I already told you in the laundry example if you have no pipeline then what
it will mean if you have no pipeline then what it Will mean then you will consider this as a atomic Hardware yes or no correct if you if you think of this as no pipeline if you think of this as an OC if if this is no pipeline if you have no pipeline then it simply means that it means that this Hardware this is one at this is one atomic I can say this is one I can say single Atomic entity right yes or no I can say like you can consider this as single Atomic
Hardware Okay is this clear if you have no pipeline if there is no pipeline then basically okay then there is there are no stages like you don't have any stages for example if if there is no if if there is no pipeline if you do not have any pipeline then it's like it's like all these things this is like a single Atomic hardware and let me assume this is taking for example maybe 20 nanosecond okay maybe 20 nanosecond this is taking For One X for one instruction remember this is one complete thing this is one
complete thing one Atomic thing so let me assume that this is taking 20 nanosecond per instruction per instruction it is taking 20 nanosecond okay one instruction for one instruction it is taking continuous a second now actually what is happening here so let me tell you like basically this is this this this is called single cycle execution Okay is this clear this is called single cycle execution this non-pipeline execution this known pipeline execution that you have this known pipeline execution that you have that is called single cycle execution what it means this known pipeline execution that
you have that is called that is basically single cycle execution what is single cycle execution means that it's like This 20 nanosecond okay one instruction will execute okay in these 20 nanosecond in these 20 nanoseconds like one cycle time is 20 nanosecond you can consider this as one cycle time is a 20 nanosecond in these 120 nanosecond only one instruction can execute all these things will happen in one cycle is this clear is this clear what if what will happen like all these things will happen in one cycle okay so your one cycle time is
20 Nanosecond in one cycle all these things will happen in one cycle your instruction will execute and the time is 20 nanosecond okay because oh uh the instruction will execute in one cycle this is called single cycle execution okay now in the pipeline now you can notice that so you have 20 nanosecond here you tell me if you have for example 100 instruction then how much time it will take tell me if you have 100 instructions Then how much time it will take 400 instruction how much time you are going to take you are going
to take 100 into 20 nanosecond that is like 2 000 nanoseconds okay now what we are going to see now we are going to see what happens when you have pipeline now I want pipeline so when you have pipeline then what you will do you will divide your Hardware this Hardware that you have this Hardware now this Hardware is basically Divided okay you have separated your Hardware of course you have to do some extra work okay some extra work you will have to do you need to separate this Hardware so what you are going to
do this is what you are going to do okay so uh what you will do you will separate your Hardware like you will consider that this is your some Hardware unit which is instruction which will do instruction fetch this Hardware This Hardware stays Hardware one or I can say maybe you can call it stage one you can call it stage one so this stage one is responsible for instruction fetch it will do the instruction fetch okay it will do the instruction fetching then this is stage two it will do the instruction uh decoding this is
your stage two then this is your stage three then this is your stage four and then finally this is this is this is Your stage five this right back this is your stage five okay so you can see that basically if you want to if you want to take the benefit of pipeline if you want to execute many instructions simultaneously at the same time okay concurrently if you want to execute many instruction then what you will do you have to do some changes right yes or no so what you will do this Hardware that you
had this okay this previous Hardware that you have like this Hardware that You have what you will do you will do some changes and you will divide it into I can say you will separate the Hardwares so that's so that now this this stage will do the instruction fetch this stage will do the instruction decode this will do the ALU this will do uh data memory access and this will do right back to the register so this is what is happening here so finally now you have the pipeline and of course of course what will
happen now what will Happen for example maybe this stage is taking oh every stage let's assume every stage is taking let's do four nanoseconds so that total is 20 nanosecond because total was 29 second right yes or no okay total was 20 nanosecond total all the work all the work was happening in 20 Nano second now what you are doing now you have divided this uh this is this stage this stage so you have divided the task the complete task the complete instruction execution Task you have divided into five stages okay the complete execution task
you have divided this this execution task you have divided into five stages okay now let's assume every stage is taking four nanosecond Let Me Assume every stage is taking 4 nanosecond average test that is taking 4 nanosecond now you tell me four 400 instructions how much time you will need now you tell me 400 instruction if you Have 100 instruction then on the pipeline on the pipeline processor now you okay on the pipeline processor how much time you will need on the pipeline processor how much time are you going to need 400 instruction for the
first instruction you need see the first instruction will what what the fashion section will do first instruction will go here then go here then go here then go here then go here So the first instruction will do 20 nanosecond right this will happen for the first instruction this is going to happen for the flash instruction but after that the remaining 99 instruction the remaining 99 instruction they will only take 4 nanosecond right yes or no the remaining 99 instruction the remaining 99 instruction they are going to take only four four nanosecond because in every cycle
okay one Instruction will now execute so finally how much how much this data whatever like what is this data tell me so you can you can calculate this so this is four one six so four one six nanoseconds so you can see here you have four one six nanosecond and here you have two thousand nanosecond so tell me which is useful which is useful so definitely pipelined execution is useful okay so this is the Complete system you can see this diagram you can see this is the pipelining the processor pipelining in the processor okay so
very simple you can check it out okay so when your pipeline then basically what you are doing let me tell you like when your pipeline then what will happen like here in your pipeline then what will happen actually the pipeline then this will happen so you have Uh like in cycle one then cycle two then cycle three then cycle four every cycle is taking four nanosecond four nanosecond uh cycle five cycle six and so on so what will happen in the cycle one i1 will go to instruction fetch so for example let me let me
put it here this is instruction fetch stage this is instructional decode this is execution stage this is uh this is your read your data memory you are reading the data memory and then right back so now you Can notice in the first cycle instruction i1 will go to instruction i1 you will fetch you will face instruction i1 in the second cycle what will happen this instruction i1 will go to the decode state right okay you will decode the instruction i1 you will read The Source register okay you will read The Source register you will read
then you will execute then this instruction I even you will execute then it will go then you will read the data memory and Then you will finally uh you will do the right back and that's it this is okay then then this will go then this will go away so this instruction execution is over now you can notice that very simple in the pipeline execution what will happen because you have separated the hardware right yes or no you have separated the hardware now because of that separation what will happen that's that separation of Hardware that
you have done so because of that what will Happen in the cycle too in the cycle 2 when this i1 is doing when this i1 is in the ID stage okay this instruction i1 is in the decode stage this instruction i1 is in this in this stage okay this instruction i1 is in this Hardware in this phase okay is working on the basically this Hardware is working on i1 I can say okay so when this instruction i1 is here then what you can do this Hardware can work on instruction I2 okay when this Hardware is
working on i1 then This Hardware can work on I2 so this is what what can happen you can notice that in the next cycle in the second cycle when the instruction i1 is in the ID stage then you can fetch I2 this I2 you can fetch okay in the instruction so this I2 instruction you can fetch then when this i1 is in The Deco execution stage when this is in the execution stage then this I2 can go to the decode stage okay then what will happen this is in The this is uh I can say
it is reading the data memory it is accessing the data memory at that time what this I2 can do this I2 can go to the execution stage and so on okay so and so on now similarly you can notice in the cycle C3 what can happen in the cycle C3 I3 can go to the instruction fetch you can fetch the instruction I3 in the cycle C4 instruction I3 can go to the decode stage and so on okay so this is what is happening in the pipeline in the Pipeline this is this this beautiful scenario is
happening so in the pipeline what will happen for the first instruction you will take 20 nanosecond but after that but but but but after that see for the first instruction you will take 20 nanosecond but after that what will happen after that in every stage one instruction will in every Cycle One instruction will come out okay when this will come in the next cycle it will come in the next cycle it will come In the next cycle it will come and so on so you can notice that uh so for the fashion for the first
instruction you will need 20 nanosecond but after that the remaining instructions all the remaining instructions they will need only one cycle okay and this is your cycle time one cycle is taking four nanosecond so in every Cycle One instruction will come out every cycle so the remaining instructions will take only this much Amount of time so that is the reason total time is 416 nanosecond okay so this is the complete scenario you can check it out this is what is happening okay in every cycle so you can notice uh in this in this diagram if
you did not understand in this diagram you can notice that this i1 how much time this i1 took tell me how much time how much time this i1 took this took 20 nanosecond okay this took 20 nanosecond this i1 this i1 took 20 Nanosecond this i1 is started here and it went here but now once this T when this i1 is done when this i1 is over how much time this I2 will take once this i1 is done when this i1 is over this i1 is over then how much time this I2 will take then
I2 only have to take only one cycle like right because for I2 only this stage will be remaining for this I2 for this instruction I2 only this stage will be remaining so after one cycle after four nanosecond I2 will be done After 4 nanosecond I3 will be done after 4 nanosecond I4 will be done so after every cycle one one instruction will be done okay so very simple very simple okay so this is the point now let's move on so let's take this question tell me the answer for this one tell me the answer for
this question now uh swag tendu is saying that sir suppose one instruction is not using some of the stages then also execution cycle time will be added yes there are Many different different type of pipelines okay so uh the pipeline that we have in our syllabus these are simple pipelines in which all the instructions go through all these stages okay this is this line you will see in many questions but uh this is not like if they don't give you then also it is like I can say it is just understood because the uh in
all the books also in like for example uh for the computer organization you have Paterson you have amateur in all These books also they cover the basic pipeline only okay so uh the pipeline that we have in our syllabus in those pipeline all the instructions each instruction will go through all the stages is this clear swag then do all the instructions will go through all the stages and let me tell you there is another pipeline there is something called super scalar system okay but those things we don't have in the syllabus there is something called
Super scalar system okay so there are some complicated of course what we are learning right now this is the basic idea of pipeline this is the most basic fundamental idea of pipeline but remember in the Practical in the real life of course uh complicated things uh are done okay also there is a concept of super scalar system uh I will not discuss that but this concept is there okay uh in that Concept In the same Psych in the same stage at the same time you can have many many instructions okay so there is a concept
of super scalar system okay so don't worry about those things basically the uh in our syllabus we have the fundamental or I can say basic pipeline we have in our syllabus okay and uh we assume that uh all the instructions they go through all the stages okay every instruction will go through all the stages whether you do whether you don't Use that stage or not okay in that stage whether you do nothing or not okay whether you do some work or you don't do some work that is irrelevant every instruction will go through all the
stages okay now let's see this one so tell me the answer for this question you have five stage pipeline there is a five stairs pipeline in which you have total five stages of the hardware so you have separated your Hardware into five stages One clock cycle per stage every every stage is taking one clock cycle okay in every stage you are you are spending one clock cycle you are spending in every stage there are 10 instructions in our program if you don't have any pipeline then tell me if there is no pipeline remember if there
is no pipeline it it simply means there are no stages right yes or no array yes or no if you don't have any pipeline you do not have any pipeline then there are no stages you Don't have any stresses you can consider no pipeline means you can consider this as atomic Hardware in this Hardware all the things are happening all the things all these five stages things are happening here okay so basically you don't have the concept of stages when you have no pipeline if you do not have any pipeline then you have to consider
the entire Hardware as a one Atomic entity your entire Hardware is basically single Atomic entity so when you do not Have any pipeline then there is no concept of there is no concept of stages we do not have any concept of stages like stage stage stage we do not have any concept of stages okay so very simple when you have no pipeline then in this situation you will you will notice that for 10 instruction for 10 instruction each instruction will take how much time you can notice five Cycles okay because one stage is one cycle
but remember in the in the known pipeline When you when you do not have any pipeline there is no stages there is no concept of stages please understand please understand there is no concept of stages you do not have any concept of stages but but it does not mean it does not mean that you don't need to do these things okay right yes or no do you remember uh by example that I told you this laundry example laundry in your house laundry in A shop okay so in your house also you do not have concept
of stages you do not have concept of separate machine but your machine can do all those three things yes or no your single machine can do washing drying and uh and and that folding write yes or no so this is what I'm saying so when you don't have any pipeline no pipeline means there is no concept of stages but but it it does not mean that it does not mean that you Don't have to do the work of course you will do this work okay so these five Cycles will be taken for one instruction one
instruction will take five Cycles so total 50 Cycles you will need and if you have pipeline then what will happen if you have pipeline then the first instruction will go through all these stages first instruction will go through all the stages the first instruction this is for first Instruction so the first instruction will go through all these stages it will take five nanosecond because one uh one clocks it will take five clock Cycles five clock Cycles it will take but the remaining instructions they will only take one one clock cycle okay the remaining instructions all
the remaining instruction they will take the remaining will take only one one clock cycle so finally you have 14 clock Cycles Okay is this clear what is the speed up for 10 instruction execution 4 10 instruction execution for a when you are uh what is the savings like forget about speed up what are the savings how much time you are saving for 10 instruction execution when you are executing 10 instruction then how much you are saving that will be 50 minus 14 right yes or no okay so like if if I ask you savings for
10 instruction execution That will be 50 minus 14. these many clock Cycles you are saving okay anyway so let's move on now now let's see so uh so many examples you can create you can create for example you can create a Twitch test pipeline okay uh okay so you can create a two states so these things you can read uh I'll leave it up to you you can read so basically you can you can also have two states pipeline uh like this okay now one concept I want To tell you one concept I want to
tell you that concept is basically inter stage buffer there is a concept of inter stage buffer let me tell you that concept okay so this inter stage buffer enter stage buffer what is this concept interest test buffer so it simply means that first of all you tell me a simple question I'm asking if this concept of stage in which you have pipeline or Non-pipeline this concept of stages this com concept of stages you have only in pipeline right yes or no this concept you only have in pipeline because because what we do in the pipeline
we separate the hardware right like this is the instruction phase Hardware this is the instruction decode Hardware this is the execution Hardware okay like this so it's like basically this is like stage one stage two stage three stage four like so and so on so like this is your Hardware you can say this is your instruction phase Hardware this is your Hardware instruction decode hardware and so on now you can notice that in the pipeline you have this concept of stages you can call this this Hardware this Hardware this Hardware these are the stages of
the pipeline okay you are separating the hardware whatever Hardware you have this Hardware you are separating like this okay you are separating like this now in the pipeline What happens because in this pipeline you can notice many instructions are executing at the same time right yes or no like managed to many instructions they are executing concurrently when some instruction is here then the next instruction is here right okay so when instruction i1 is here then I2 is here then I3 is here so many instructions are executing simultaneously at the same time okay so what we
need basically when we do this Hardware division when we separate the hardware these Hardwares we are separating in two stages okay then some information basically if you want to propagate some information from S1 to S2 this stays if it needs some information from S1 okay this stays it wants some information from S1 then tell me it is it useful that uh that it will you I can say um you tell me like for example S2 wants Some information from S1 now whenever this has to want some information from S1 is it good that it will
use this S1 for itself is it good that this S1 will be used for that information so that the next instruction will not execute on S1 right are you getting my point see a simple Point are you getting what I am saying I am saying that when this this S2 needs some information this is your Hardware This is your instruction decode Hardware okay in this in this stage in this stage you read you decode and you read the register now in this stage if you need some information from S1 let's assume I want some information
from S1 then S1 is already executing some instruction right okay this is executing i1 this is this this is instruction this is executing i1 this is executing I2 but I want some information this is this this S2 needs some Information from IV from S1 then then definitely it is not good the that like you are using this as one okay so what you can do the best thing is you can use some in some some registers like some some registers you can use here and in these registers you can put all the information that is
needed by S2 from S1 okay are you getting my point so in these registers this register the interest is register you can use in these registers what you can do in these Registers what you can do you can put the information this information you can put okay this information you can put whatever information you want from S1 that information this that information is available here so that this S2 can use that information similarly if this S3 needs some information from S2 then it can read from here also also remember maybe maybe this S3 needs some
information from S1 right yes or no Maybe this S3 wants needs this S3 needs some information from S1 then also it can use it then also it can use this buffer so basically you what you what you use this this interest is buffer this is basically used to store information used to store information okay this information will be used by later stages okay this so used to infer used to store information used by later stages Used by later stages okay so this is the concept of uh interest buffer so this is the final point that
basically in your pipeline okay this interest buffer concept this concept is only uh in the pipeline when you do the pipeline when you separate the hardware in that situation now you have these stages this is your stage one then there is a interest test buffer then this is stage two and this is another register see these are resistors Like these are basically simple buffers or you can call them resistors these are simple interest as registers they hold the information they are used to hold the information which is required by the which is required by the
later stages the later stages they will they will use this information okay the later stages they are going to use this information and so on okay and so on so you can see this is the concept now uh okay and one more Thing that all these things like whether the stages or these registers all these registers all these stages they are basically synchronized by a clock okay all these things they are synchronized by a clock they are synchronized by a clock okay so and uh anyway so more I will discuss about this more like what
are this clock what is the cycle time I will discuss all these things but anyway you can see that all the stages and all these Interest is resistors interest is buffers they are basically synchronized by a clock so there is a clock which is synchronizing all these uh all these components okay so this is the concept of Interest buffers so very simple concept you can notice but this concept you only have in the pipeline remember in the non-pipeline there is no need right yes or no why can anyone tell me in the known pipeline if
you do not have pipeline then we do not need these uh These buffers because there is no concept of stages very good okay because in the known pipeline you do not have any concept of stages you don't have stages okay because you don't have a stages so there is no need of inter stage registers interest is buffers so you can uh you can easily see okay let's move on now so your pipeline can be anything your pipeline can be fourish days five days eight stage 10 stays 100 stays two stage your pipeline can have Any
number of stages for example this is the forage test pipeline look at this look at this pipeline this is a four stage pipeline there is a instruction fetch instruction decode and read the resistor okay so in this this Hardware unit this is the hardware which will do the instruction fetch this is the hardware which will do the decoding and it will read the registers this is the hardware which which is responsible for execution like ALU okay And then you will write the results in the in the registers so you can see this is a four
stress Pipeline and these are the inter stage buffers okay all these These are the interest test buffers okay depending on the pipeline the last stage also can have the interest rates buffer is this clear like that depends on the pipeline of course okay that depends on the pipeline depending on the pipeline depending on the requirement the last stage also can have uh interest is this Buffer register but mostly it is not needed but some pipelines will need so depends on your pipeline depends on your requirement so depending on the pipeline the last stage it can
also have it can also have the interest as buffers okay but anyway this is the simple point so remember your pipeline can be four states five stays 100 stays 10 stays any stages you can have it depends on you how many uh Hardware how many basically stages you want to create but tell me One thing when you are creating the stages like for example if I am creating 10 stages it simply means that I am dividing my Hardware into 10 10 components right yes or no okay my Hardware that I have that Hardware I am
dividing I am separating that Hardware into 10 components so that these components can execute in parallel without disturbing each other okay so if I have 10 stages it means I am dividing my Hardware into 10 components these Components should work independently okay it should not happen that uh it should not happen that one component is disturbing another component if one if one component is working then another component cannot work okay that should not happen this is called structure Hazard that we will discuss in the next lecture don't worry okay so uh anyway what I'm saying
I am simply saying that one component should not disturb another component all these components that you Have 10 components that you have uh in the 10 stages every stage is a hardware okay every stage is a hardware component every stage will do some work okay so all these components they should not disturb one another okay this would be completely independent okay anyway so let's move on now now let's see performance analysis of pipeline this performance analysis we will do in the ideal world first we will do in the ideal world like tell me what Is
the most Ideal World in the ideal world what will happen we will do that remember one thing before we see this performance analysis let me tell you most of your gate questions are coming from this this performance analysis I can say almost 50 percent gate questions are from this is this clear almost 50 percent gate questions get pyqs and this is the most easy topic actually this is very easy topic and Most of almost 50 gate byqs are from this so anyway what this performance analysis is let's see in Ideal World in an Ideal World
what will happen see this will happen in an ideal world you are thinking let's let's take this laundry example let's consider this laundry example uh you uh this is your this is your house this is your house washing machine in the house washing machine you have washer you know that okay all the Components are in the same machine right in the same machine so this is a single machine you cannot this is a single Hardware single machine in the same machine you have the facility of washer you have the facility of dryer you have the
facility of folding okay and you already know for example you already know that okay uh when I do the laundry then it is taking one hour okay it is taking one hour it is taking one hour it is taking one hour now tell me if I Convert this non-pipeline to pipeline then what is the most I can say what is the most ideal situation tell me this is your non-pipeline right correct this is the known pipeline now when I convert this known pipeline to pipeline now I am converting this to pipeline I am converting this
to pipeline then what is the most ideal situation okay what is the most ideal situation the ideal situation will be like this that right the ideal situation will be Like this that this washer still needs only one hour right yes or no this will be the ideal situation correct the ideal situation will be that this washer needs only one hour like the time should not increase okay the time should not increase the dryer should okay the dryer needs only one hour the uh this this folding also takes only one hour like the time should not
increase for example it's not happen it should not happen that uh time is increasing okay So here washer is taking one hour and suddenly now Versa is taking two hour in Ideal World this should not happen but in the real world this can happen the time can increase okay so this is just an analogy okay but try to understand what I'm saying I am saying that this washer this is the ideal world okay and in the ideal world you can also assume that these entry stage registers these interest buffers they also have zero delay okay
they also have zero I Can say zero delay they also have no delay so you can assume that they also have no delay they also have no DeLay So This is the ideal situation now in the ideal situation what will be the known Pipeline and what will be pipeline in the ideal world so you tell me a simple question so what I am saying is this understood so in the ideal like completely Ideal World you are living in the ideal Ideal World let me assume that I am giving you some Data let me assume that
non-pipeline you have a known pipeline processor with non-pipeline CPU so this non-pipeline CPU what it is doing let's assume it is taking uh some amount of time for example maybe it is taking some um some T amount of time okay a non pipeline so let me assume this is T N N means known pipeline okay so let's assume this is taking TN this is taking TN amount of time okay so what is this t n amount of time per Instruction this is taking per instruction so this much amount of time it is taking per instruction
one is for one instruction it is taking this much amount of time now in the pipeline CPU when you convert this into pipeline CPU let me assume that you are making cage stages you are making caged edges okay and what is the ideal situation tell me tell me tell me tell me what is the ideal situation the ideal situation is that Parish stage will take TN divided by K yes or no that is the ideal situation correct or not do agree or not like pipeline CPU okay there are K stages and let me assume that
let me assume that one stage is taking TN divided by K this much amount of time per stage this much amount of time I can set this much amount of time per stage one stage is taking this much amount of time okay so very simple so here one more thing I want to tell you very Simple I'm do you remember I told you when you have known pipeline that is basically single cycle execution yes or no do you remember I told you non-pipeline CPU simply means single cycle execution that is called single cycle execution so
this TN is basically cycle time of non-pipeline CPU okay this is the cycle timeline it's 20 nanosecond you can assume this is like 20 Nano second per instruction 20 nanosecond per Instruction so this is a cycle time of I can say known pipeline CPU non-pipeline CPU this is the cycle time now you have five stages let's assume you have five stages then it simply means in the pipeline in the pipeline okay this is the cycle time in the pipeline this is the cycle time in the pipeline CPU these are the cycle time of pipeline CPU
Okay this is the cycle time so this is the ideally now you tell me one one by one I am asking you few things you tell me all the things so what is going to be one instruction execution time one instruction execution time for known pipeline and for pipeline one instruction execution time for known Pipeline and four pipeline so one instruction execution time will Be this is the ideal situation so for the known pipeline you already know that is TN and for the pipeline because we are considering the ideal situation we are considering we are
considering we are living in the ideal World okay because you are living in the ideal world uh one is stage is taking TN by K one stage is taking TN by K amount of time so one instruction will take I can say TN by K and there are total k h stages so finally it also will be TN so Both are basically taking same this is the ideal World remember as I told you this is just the ideal world we will come to the real world don't worry okay we will come so one instruction execution
time is basically same in the ideal world because in the ideal world we are assuming what we are assuming let me tell you you have this known pipeline CPU known pipeline CPU this I told you so let me tell you again whenever you Have this known pipeline CPU okay this is basically your single cycle your single cycle execution okay this is your single cycle execution of instruction okay single cycle execution of instruction so as I told you you can easily see here so in the ideally I uh I can say X instruction execution time would
that be like or maybe uh you can assume what are the Y instruction execution Time what is the execution time of Y instructions so this will take again this will take y multiplied by T and write this will take y multiplied by T N because this is per instruction this is per instruction okay so this will take Y into t n what this pipeline will do can anyone tell me what this pipeline will do for the first instruction it will take K stages right For the first it will take case stages for the first it
will go through caged edges caged edges it will go through caged edges the remaining y minus 1 will go through only one one stages multiplied by one stage time I can say perish stage time so perish stage time is what that is T N divided by K so this is your pipeline time is this clear tell me is this clear to everyone see Very very simple I am saying that you have y instructions so the first instruction will go through all the case studies okay but the remaining instructions the remaining y minus 1 instructions the
remaining y minus one instructions they will take only they will go through only one one stage so total I can say y minus I can say it will take K Cycles you can consider like this K Cycles okay for fresh instruction Four first instructions so first instruction is taking K cycles and these are four remaining instructions remaining instructions so the remaining instructions are taking this much amount of these many cycles and this is the cycle time and this is the cycle time that's it so this is your why instruction execution time now you tell me
if you have a lot of instructions a lot of instructions like finally I am Asking you if you have a lot of instructions a lot of instructions if you have okay a lot of instructions if you have you have a lot of instructions now what will happen now what is going to happen if you have a lot of instructions see in this situation when you have a lot of instruction then just let's compare the speed up let's compare let's let's find out the speed up how much Speed up we are getting when you have a
lot of instructions in case of lot of instruction then how much speed up you are getting okay or or maybe uh sorry before that when you have a lot of instructions then you tell me pipeline execution time you tell me pipeline execution time tell me how much what is the pipeline execution time when You have a lot of instructions when you have a lot of instruction then what will happen you already know your formula this is your formula that if you have y if you have y number of instructions then this is time you are
taking t n divided by K so if this Y is very used if this Y is very huge then what is going to happen okay no uh so what I'm saying so sorry so Okay forget about this because anyway because if you have a lot of instruction then it will take a lot of time it's like but let's compare the speed up let's compare the speed up when you have a lot of instruction if you have a lot of instruction then let's compare the speed up what are the speed up speed up is basically how
much time this known pipeline was taking and how much time this pipeline is taking so now you tell me this known pipeline is taking Y into T n and this pipeline is taking how much this pipeline is taking K plus y minus 1 K plus y minus 1 multiplied by T N divided by K okay so now you can notice if this Y is used if this Y is used then what will happen because this Y is used so what is going to happen so this will cross this this and this will cancel so this
t n will cancel with 10 so finally you will get K yes or no So this is the ideally so can I say can I say this is the maximum speed up you can get tell me because everything is ideal see so far the analysis that we have done the performance analysis that we have done we are doing a ideal analysis everything is ideal okay like there is no I can say there is no disturbance everything is pure uh I can say ideal scenario The best scenario the best case scenario in the best case scenario
you are getting you are getting This speed up and this is the number of stages and this is the number of stages so you tell me now you tell me so finally what you can say you can say what is the maximum speed up we can achieve tell me what is the maximum speed of we can achieve tell me we can achieve with the pipeline this is the maximum speed up like this is the maximum speed of we can achieve With the pipeline with the pipeline over known pipeline with pipeline over known pipeline what is
that that will be equal to number of stages in pipeline remember this is ideal as I told you this is just the ideal answer but nothing is ideal in the real world right yes or no but in the real world nothing is ideal this is the ideal Answer this answer is ideal I can say this is the ideal situation so this is the maximum speed up you can achieve maximum speed up you can achieve with pipeline over known Pipeline and whenever you are finding speed up always find for a large number of instructions okay whenever
you are finding this I can say whenever you want to find speed up this speed up you always have to find remember this speed up by default you Have to find for large number of instructions okay for a large number of instructions so for a large number of instructions you like if a large number of instructions are executing in Pipeline and non-pipeline CPU then you have to calculate the speed up so you can notice that if everything is ideal okay then this is the maximum speed up you can achieve and what is that the maximum
speed up that you can achieve this is The maximum speed up that is number of stages in the pipeline this is the maximum speed up you can achieve okay now let's come back to the real world now in the real world what will happen let's come back to that in the real world when you do this pipelining in the real world when you do this pipelining that what will happen then the stages their time might increase it it might be possible it may be possible that for example here the washer is Taking one hour let's
see the real world okay now let's consider the real world in the real world what will happen real-time analysis so in the real-time analysis what can happen I can say real analysis so the real analysis is like this in the real analysis when you convert this into pipeline this when you convert into pipeline then it might be possible that that for example this washer it was Taking three hours right this was is taking three hours for one for one instruction now it might be possible for example maybe um maybe this is taking 1.5 hour okay
it might be possible this dryer is taking maybe one hour it might be possible this folding is taking maybe two hour okay so you can see and these are the interest phases buffers maybe these interest buffers also have some delay Maybe they have some delay maybe these are delay 15 minutes okay maybe this also has delay 15 minutes now you tell me a simple question I'm asking in this real scenario this is the real scenario that we are considering the real analysis we are doing in this real analysis you tell me what should be the
one cycle time because remember one one thing you should understand one thing that all are Synchronized by the same clock okay all of them are synchronized by the same clock all of them are synchronized by the same clock all of them they are synchronized by the same clock so now you tell me because they are synchronized by the same clock so what should be this is the clock all these stages and all these entry stage buffers they are synchronized by the synchronized by the same clock so Now you tell me what should be the cycle
clock cycle time what should be the clock cycle time so clock cycle time means okay please understand like this please understand like this clock cycle time means within this time within this time you one is like whatever stage you take that should be able to complete its work right yes or no yes or no cycle time should be such that the cycle time that you fix because Remember all the stages all the entry stage buffers all they are synchronized by the same Clause they are they are synchronized with the same cloak they are synchronized okay
so whatever cycle time you give me whatever cycle time you give me within that cycle time every stage should be able to complete its work yes or no whatever cycle time you give me whatever cycle time you give me in that cycle time every stage should be able to Complete its work and remember putting this information here is work of stage yes or no like for example if you want to put this information here that is also that is also this stage responsibility putting this information here putting this information here that is also this stage
responsibility so remember putting the information in the in the buffer putting the information in the buffer that is also it stays responsibility so every stage should be Able to complete its work so you can notice that you cannot this is taking a lot of time so your cycle time should be like this this is the maximum plus 15 minutes of delay okay uh assume that you have this here okay assume that you have this one here uh if you have this uh I can say interest test buffer here if you do not have this interest
rates buffer then there is no need because see if you do not have this interest test buffer okay But anyway the point is very simple actually you should uh average test should be able to complete its work this is important okay and putting this information here in this interest buffer you are putting this information that is also responsibility of this stage that is also responsibility of this Hardware okay so basically whatever your cycle time should be such that you are average stage is completing its work okay so this would be your cycle time so like
This this is the real analysis okay now uh let's so let me move on okay or here actually what I want to tell you here actually I want to tell you when all the stages are balanced like these are the ideal situation in the ideal situation you know the maximum in the ideal this is the ideal situation okay in the ideal situation your maximum uh speed up that you can achieve that is the number of stages number of stages in The pipeline that is the maximum speed up that you can achieve okay in the real
world what will happen in the real world when you go to the real world then in the real world what will happen this will happen in the real world I can say in the pipeline so you have this type of pipeline let's assume your pipeline is like this your pipeline has this stage then your interest test buffer then you have this stage then your interest is buffer then you have This stage then your winter stays buffer and so on okay and so on let's assume now let me assume that this is taking some uh some
some time maybe okay maybe this is taking two nanoseconds maybe this is for taking four nanosecond maybe this is taking three nanosecond maybe this is taking one nanosecond one nanosecond one nanosecond then in this situation what should be your cycle time because all these are synchronized by the same clock they are synchronized by The same clock so for this clock what should be the cycle time what should be the cycle time remember remember one stays one uh purse I can say uh one stage okay it will do its one cycle okay so it will do
one cycle it will do its work in one cycle so what should be the cycle time the cycle time remember whatever cycle time you fix in that cycle time all the stages should be able to complete the work so the answer Will be 4 nanosecond plus one nanosecond okay this will be your answer so your answer will be five nanosecond this is the cycle time okay because because the reason is very simple because all the stages and all the entry stage buffers they are synchronized by the same clock so whatever cycle time you are deciding
they in that cycle time all the stages must be able to complete their work okay so for example even this stage also Should be able to complete the work so the cycle time that I am deciding that should be decided like this so that every stage should be able to complete the work so that is the reason answer is 4 nanosecond plus one nanosecond this is your five nanosecond now you tell me this is the gate question so let's solve it let's solve this get question tell me the answer for this one this is gate
2004 Gear 2004 question what is the answer a four stage pipeline has the stage delay 150 120 160 so there is a Forge test pipeline you have a forage test pipeline there are four stages and these are the stage delays these are the uh like how much time average days is taking for example the first stage needs 150 nanosecond to complete its work okay this stage needs 160 nanosecond to complete its work and the last stage needs 140 nanosecond to complete its Work okay the registers that are used between the stages have delay of 5
nanosecond each okay so every register having five nanosecond every resistor that has five nanosecond assuming constant clocking rate the total time taken 400 data items in the pipeline will be so very easily you can see that first of all you tell me what are the cycle time first of all what you you tell me what is what should be the cycle time How much should be my cycle time how much would be my cycle time okay remember this point one thing you should understand that cycle time means basically how much time I I should give
to per stage basically it's like it's like average per stage time right yes or no it's like basically perish days will be spending this much amount of time every stage is going to spend this much amount of time so what should be my cycle time that Should be 160 that is the maximum 160 plus 5 nanosecond so that will be 165 nanosecond okay this will be the cycle time so what will happen what will happen this will happen that every stage will spend 165 nanosecond okay every state is remember every stage will spend 165 nanosecond
whatever stage you take that will wait for or I can say that will expand 165 nanosecond okay so this is the cycle time you can very easily see now you tell me for the Thousand Instruction how much time you will need in the pipeline this is a pipeline no information is given so you can consider ideal pipeline no information is given to you in this question no other information is given to you so you can consider this as a ideal pipeline so now you tell me 400 items 400 I can say instructions how much time
you will need for the first instruction you need for the first instruction you have to go through all the stages right For the first instruction you need four Cycles for the first instruction this is for first instruction right the first instruction should go through all the psych uh should all should go through all these stages so for the first instruction you need four Cycles Plus this is for first instruction after this after this after this you tell me the remaining instructions they need only one one Cycle they remain okay the remaining instructions the remaining instructions
these remaining instructions they only need one one cycle so finally what will be my answer answer will be 5 plus 4 9 9 these many cycles I need four thousand instructions so finally the question is asking for time the question is asking for time so that Will be one one zero zero three multiplied by 165 nanosecond tell me what is this value you can calculate what is the answer for this one nanosecond so you can uh the question is asking in the micro second the answer is given in the micro second so what you can
do you can like one zero one zero uh this multiplied by you can call it micro second You can convert this into my micro second divided by thousand okay divided by thousand so now you will get your answer in the micro second so now can you calculate this 165 and almost almost it will be very close to 165. the answer will be very close to 165. right yes or no the answer is going to be very close to 1 because oh they are almost same they are almost same you can notice these two Are almost
same so the answer is going to be slightly more than 165 slightly okay very very slightly more than 165 so you don't have to calculate your answer will be this there is no need to calculate you can simply answer this now tell me the answer for this one look at this question tell me the answer this is Illinois Illinois University question tell me the answer consider two different machines there Are two different machines the first two has a single cycle data path okay okay tell me tell me tell me do you remember this I told
you about this do you remember this do you remember this I told you about this what it means I told you about this right single cycle data path single cycle data bar that is your non-pipeline right yes or no so a single Stays known pipeline machine so this point I told you do you remember I I told you this point that basically known pipeline when you do not have any pipeline it simply means that you have a single cycle data path okay every instruction will execute in a single cycle in a single cycle you are
doing all the things okay you are doing all the things instruction fetch decode execution write back data memory access memory so basically As I told you non pipeline processor that is same as single cycle data path is this clear in the gate exam they can give you this for example in the get exam they can give you that there is one machine there is a machine which is using single cycle data path are you getting my point is this clear so this single cycle data path it simply means known pipeline machine okay now you tell
me with a cycle time of 15 nanosecond fifth we in 15 nanosecond how many Instructions are happening tell me tell me in 15 nanosecond how many instructions one instruction is happening right because this is a single cycle data path array array array because this is single cycle data path means one instruction one cycle one instruction is happening in one cycle okay in one Cycle One instruction is happening so one instruction is Happening in 15 nanosecond okay the second is pipeline machine with five pipeline uh stages and cycle time three nanosecond now the question is asking
for speed up of pipeline Machine versus single machine there are no installs no installs means basically the question is talking about ideal situation the question is taking talking about the ideal situation now you tell me the question is talking about the ideal Situation in the ideal situation what your answer will be in the ideal situation what your answer is will be no uh see okay in the ideal situation this answer will happen like in the ideal situation see this simple point I am telling you note when no installs when no stalls okay in this is
basically an ideal situation you can consider this is an ideal Situation okay anyway uh you can just calculate okay just forget about it you can just calculate see you can just simply calculate the question you don't have to by heart anything you can just calculate okay here tell me the pipe uh how much time pipeline machine will take for n instructions if you have any instructions how much time for an instruction how much time known Pipeline will take how much time known pipeline will take that will take an N into 15 nanosecond right and how
much time pipeline will take because this is given to you that this is a single cycle data path means known pipeline machine the cycle time is 15 nanosecond 15 nanosecond means one instruction is happening in 15 nanosecond okay one instruction happening so if an Instruction will happen in this much amount of time in the pipeline what will happen in the pipeline three nanosecond time is given to you the cycle time is given to you and there are five stages so you can notice the first instruction will go through all the five stages correct the first
instruction this is for fashion instruction five stages or I can say five Cycles the first instruction will go through All all the five stages so the flash instruction needs five Cycles Plus the remaining instructions these are the remaining instructions they need only one cycle these are the remaining instructions and these remaining instructions they only need one cycle they only need one cycle okay so these many cycles multiplied by cycle time which is three nanoseconds so what do they speed up So what are the speed up speed up simply means that how much speed up you
are getting sped up so that will be basically non-pipeline execution time how much time you are having for non-pipeline divided by pipeline execution time so your sped up will be what your spread up is good non-pipeline execution time is for any instruction you are taking 15 nanoseconds this much Amount of time divided by pipeline execution time pipeline execution time is you are taking 5 plus n minus 1 multiplied by three nanoseconds now when you are calculating the speed up assume that n is very large okay when you are calculating for large number of instructions okay
for large number of instructions so you can assume that this n is use this n is very large if this n is very large then what will happen because this n is Very large so this will cancel out so your final answer will be 5. so your speed up will be 5. so this is your final answer so for this question the answer is 5 okay very simple right yes or no is this clear is this clear to everyone let me know now let's move on so tell me the answer for this one see this
another question this another question you have another Machine which has four stages so this machine has five stages this pipeline has five stages okay and cycle time is three nanosecond and this pipeline has four stages and cycle time is 3.1 assume no installs no stalls means again ideal situation it's like okay ideal situation now you tell me which is faster which you will prefer so the question is very simple the question is saying that There are two machines one is pipeline machine one another machine two there are two machines this machine has five stages but
three nanosecond is the cycle time and this machine has four stages number of stages are less but the cycle time is just 3.1 PSI this is the cycle time you tell me which you will prefer which will you prefer tell me which will you prefer see for one instruction which you will Which you will prefer for one instruction for one instruction which you will you which you will prefer for one instruction only like if you have only one instruction for one instruction which will you prefer for one instruction this PL one this PL one will
take 15 nanoseconds right okay it will take 15 nanoseconds and pl2 pl2 will take A almost I can say 12.4 nanosecond so for one instruction this is definitely better for one instruction you can see that for one instruction this is better but this is for one instruction now you tell me in the real life do we execute only one instruction so should I prefer PL to should I prefer PL to is there any reason to prefer pl2 should I prefer PL to no no no no no because in The real life we execute many instructions
so if you are executing many instructions okay a lot of instructions if you are executing so when you are executing a lot of instructions then ultimately then ultimately it is executing one instruction in one cycle right yes or no when you have a lot of instructions just as you just consider like this a lot of instructions you have so when you have a lot of instructions Then ultimately what will happen ultimately this will happen that in this PL one okay because you have a lot of instructions so you can just assume that in every Cycle
One instruction is coming right yes or no correct or not the initial like because you have a lot of instructions so forget about the initial feeling forget about the fashion instruction because you have a lot of you you have a Large number of instruction so when you have large number of instruction forget about the fashion instruction so ultimately what is happening in the in this pipeline in one cycle one in one Cycle One instruction is coming one Cycle One instruction one Cycle One instruction one Cycle One instruction so I can say that in this PL
in this PL one in one Cycle One instruction one Cycle One instruction so three nanosecond per Instruction you are taking basically and in the pl2 what you are doing pl2 also one instruction one Cycle One instruction one cycle okay in every Cycle One instruction is coming but you are taking 3.1 nanosecond per instruction so which is better so ultimately this is better right so you can see that when you have a lot of instruction then this pl1 is better so ultimately you should prefer this PL One this is preferred you should prefer this pl1 okay
let's let's move on this is a GRE question this is a GRE compute Science question can you tell me the answer for this one this is a GRE computer science question this is a very nice question can you tell me the answer GRE computer science can you tell me the answer for this two processor M5 M7 there are two props there are two processor same instruction Set M5 has five stage pipeline okay this has five inch test pipeline cycle time of 10 nanosecond there is cycle time of 10 nanosecond M7 has 7 States pipeline cycle
time of 7.5 nanosecond which of the following is or are true tell me the answer which of them is is or are true which of them is true first let's see the option too the latency of a single instruction the latency means basically how much Time you are taking for a single instruction how much time you are taking for a single instruction that is shorter on M7 then M5 is it true is this true for one instruction what will happen on M M five and seven see the two in two pipeline are given to you
one is M5 machine another is M7 in this you have five stages there are five stages and the cycle time is already given to you that is 10 nanosecond This 10 nanosecond is the cycle time and here you have seven stages there are seven stages and 7.5 is the cycle time 7.5 nanosecond that is the cycle time so now you tell me a simple question I'm asking for one instruction what will happen one instruction latency tell me what will happen for one instruction so for one instruction M5 this pipeline will take how much time Okay
for one instruction you have to go through all the stages you have to go through all these stages so that will be like 15 nanoseconds okay for one instruction you have to go through all these stages you have to go through all the stages and every stage is taking five uh 7.5 nanoseconds so that is you can say that is greater than 50 right that is greater than 15 nanosecond so for one instruction which is better For one instruction which is better for one instruction this is better this M5 is better for one instruction okay
so finally I can say is shorter so this statement is false okay what about the next statement this statement M7 pipeline has better better maximum throughput than M5 pipeline this M7 pipeline throughput so you calculate the throughput let me tell you what is throughput what is a throughput This you this word you have seen many times in your in your computer network operating system what is throughput what is this concept of throughput throughput always means that how many things you can do per unit of time okay number of things done number of work done per
unit of time per unit of time whatever field you take comfort Network operating system whatever you take then this this throughput this simply means that how Much work you have done per unit of time so here I can say this throughput will be number of instructions you have executed per a number of instructions executed per unit of time per unit of time right in one unit of time how many instructions you are executing now you tell me okay in this M5 for an instruction how much time you are taking for n instructions how much you
are Taking for any instructions how much time you are taking tell me four n instructions for any instructions what what is the time you are taking you are taking 5 plus n minus 1 multiplied by 10 and how much time you are taking here you are taking 7 plus n minus 1 multiplied by 7.5 these many nanoseconds here these many nanoseconds here okay so you tell me what is the Throughput here what is the throughput here throughput means per unit of time how many instructions you are doing per unit of time in one nanosecond like
in one nanosecond how many instructions you are doing in one nanosecond these many instructions we are doing right yes or no in one nanosecond in one nanosecond These many instructions we are doing in one nanosecond these many instruction and what is the throughput here what is the throughput here in one nanosecond how much time how much how much work I am doing how many instructions I am executing okay now you tell me which which has better throughput when you have like uh if your number of instructions is more if you consider number of instructions is
more then which has better throughput If you consider number of instructions more like this M5 this M5 throughput and this M7 throughput okay so this M5 throughput is like n instructions you are doing in this much amount of time in this much amount of time here n instructions you are doing in this much amount of time okay so if you have large number of instructions if you calculate for large Number of instructions okay always like calculate for large number of instructions so if you are calculating for large number of instructions then this will cancel out
this will cancel out so here you will get 1 by 10 and here you will get 1.75 so you can see that this has better throughput yes or no this has a better throughput this M7 has a better throughput M7 pipeline has better throughput has Better maximum throughput see the question is asking for maximum throughput it simply means when the question is asking here for maximum tripod its implements it is asking for large number of instructions right yes or no because the question is asking for what is the better maximum throughput M7 am5 they are
giving a like which will give you Max a better maximum report so when the question is asking for maximum Throughput it simply means that uh the question is asking for large number of instructions like you are executing a large number of number of instructions then definitely this M7 is better programs executing on M7 will always run faster than program executing on M5 is this true is this true this is false y for example if your program has only one or two instruction right yes or no if your program has only One instruction let me assume
your program is very small only one instruction program your program is one instruction program then of course this is this always is false right this always because of this always this statement is false so finally answer will be option A this option is the answer so in this question we have done what is throughput we have covered the concept of throughput we have seen the latency of One instruction for one instruction how much time you are taking okay we have seen the concept of throughput how to calculate the throughput throughput concept is very simple this
is basically the amount of work done per unit of time how much work you have done per unit or time uh like for example how many instructions you have executed per unit of time so you can calculate throughput of M5 throughput of M7 this Is the throughput of M5 you can see this is the throughput of M5 this is the throughput of M7 you can calculate and then you can see which is better for large number of instruction which is better so definitely M7 is better for large number of instructions okay so very simple this
is your question so okay uh I think this is enough for today actually uh my voice is also my throat uh see for the last seven days I have had some throat infection so because of that I could not take classes okay so right now also my voice is not very good uh so okay so I think this is enough and we will continue in the next lecture uh so tomorrow night okay tomorrow night we will uh we will continue this this pipeline I will cover see what I have what I will do each and
every Question each and every get question I will not leave any get question see for the cache memory Sachin has already covered all the gate questions right for the cache memory I think Sachin was telling me that all the gate questions he has covered uh complicated questions and easy questions all the questions he has covered so similarly for the pipeline each and every gate question we will cover along with some standard questions like for example so far what We have seen we have seen two three gate question we have seen and two three standard questions
we have seen correct okay so remember one thing that uh tomorrow we will uh we will continue this pipeline session we will continue and I promise you each and every gate question we will cover along with standard questions okay all the standard questions that are there in in the standard resources okay whatever question they can create in the next Gate exam in the gay 2023 whatever question they can create okay all the variations all the questions all the gate questions everything I will cover okay so don't worry about the pipeline okay in this lecture like
okay forget about tomorrow forget about yesterday okay today you tell me in this lecture whatever I told you did you understand and do you have any doubt I will answer all your doubt please tell me please let me know did you understand everything or Do you have any doubt just only focus on this lecture don't worry about tomorrow and yesterday okay only focus on today okay so tomorrow what we are going to do we will continue this pipeline session at night okay and in the morning you have this all India mock test too okay go
classes over in a mock test two one thing I want to tell you that a lot of effort we put whenever we are creating mock test okay you can see the quality of mock test you will not very like Sometimes it will happen because we are also a human being okay so mistakes can happen it's not like a perfect paper we we can we will create okay some mistakes can happen but we Rectify them for example if there is some question and some mistake is there then you can you can tag Us in the comment
in the comment you can say that sir in this question this is the mistake we will correct it okay so this is the best facility on the gate or flow I can say in the gear Classes this is the best facility in the go cluster test Series in the gate or protest series that whenever you have some doubt in the question in the question in the answer if you have any doubt then what you can do you can just comment you can let us know okay and we will answer we will resolve your doubts okay
if there is any if there is any I can say uh typing mistake in the question we will correct it okay so what I'm saying in each mock test we are Putting the best quality questions like they each mock test let me tell you how much time we are we are taking so Sachin and I we don't live together like uh we we live uh 20 kilometer apart we live in Jaipur in the Jaipur City we live okay now right now I am in my own house as I told you like uh uh last year
last November in the last year in the November month I purchased I purchased my own house in the Jaipur City so uh now I and Sachin we are 20 kilometer Apart but still for each mock test remember for each mock test we we sit together for two three days okay for two three days we sit together we discuss uh we want to give you basically the real feel of gate exam see uh I I don't want to say this but anyway what I see this is just honest honestly I am saying that in most of
the test Series in in the market there are many tests it is some are good I am not saying that all are bad but in most of the test series what Happens they put the gate questions replica the gate previous year questions they will put the replica of those questions okay so when you are already familiar when you attempt those mock test then you are already familiar with those questions you already know the you already know how to uh approach those questions so you will get more marks okay naturally you will get more marks right
yes or no okay you will not feel any difficulty you will just get more Marks but in the Google Assistant think about it in the gay 2023 they will not ask you those questions which they have already asked some questions will be there of course okay in some questions uh but there will be many new questions correct out of 65 there will be 65 questions out of 65 questions or more than 30 questions will be brand new right yes or no questions where you have to think how to solve it where you have to think
About the approach so more than 30 questions will be brand new questions so this is this experience we want to give you in our mock test okay in all the mock test we are putting some brand new questions which you can think okay so for every mock test we are putting a lot of efforts let me tell you okay a lot of effort goes behind every mock test and behind all India mock test more more effort has gone okay so for every mock test if we are giving three days then For all linear mock test
we are giving almost five days okay so the tomorrow will be all India mock test two test will be tomorrow and attempt that mock test don't worry about the marks attempt it okay do not leave it do not skip it okay do not keep it pending don't worry about we have a lot of mock test okay we have total 15 mock test in the gate over and go classic test series 15 is a lot of number okay so you don't have any shortage of mock test you have 15 quality mock test so that is the
reason I'm telling you tomorrow attempt the mock test all India mock Test 2 you should attempt it do not leave it for later time okay so sleep now at this okay now we will terminate this session okay sleep immediately you sleep go to sleep okay tomorrow wake up with a fresh mind you wake up and and give the mock test give the mock test like you are giving the gate exam tomorrow you will definitely enjoy a lot okay the mock Test is I can say it is just two reflection of the gate exam okay it
is a true reflection of gate 2023 exam just like all India mock test one this all in a mock test two this is also going to be very nice okay one more thing I want to tell you that all India mock test one was little bit harder okay it was a little bit harder okay but all in a mock test too tomorrow the mock test will be more balanced okay so tomorrow you will enjoy the mock test more than you Enjoyed uh all in a mock test one okay so if you already enjoyed only a
mock test one then tomorrow you will enjoy much more okay so thank you everyone see you tomorrow and we will finish this pipeline each and every gate question we will finish do not worry about it okay okay thank you everyone see you tomorrow