Gate Smashers explains the three types of buses in computer architecture: address bus (unidirectional, sets memory addressing), data bus (bidirectional, carries data), and control bus (carries control
Key Takeaways
- Address bus is unidirectional and determines how many memory locations can be addressed
- Data bus is bidirectional and its width matches the word size
- Control bus carries control and timing signals generated by the control unit
What the video covers
- Introduces the three types of buses in computer architecture: address bus, data bus, and control bus
- Address bus carries memory/I/O addresses generated by the CPU and is unidirectional from the processor
- Address bus width determines the number of addressable memory locations; an n-bit bus addresses 2^n locations (e.g., 16 bits gives 65,536 slots in the 8085)
- Data bus carries actual data between memory, I/O devices, and registers and is bidirectional
- Data bus width depends on the word size of the system (e.g., a 2-byte word requires a 16-bit data bus)
- Smaller data values are handled by filling the LSB positions and padding the MSB positions with zeros
- Control bus carries control and timing signals such as load, increment, clear, memory read/write, and I/O operations
- A dedicated control unit generates control signals and clock pulse timing so instructions execute correctly
- Examples of data movement include keyboard input to a register and output to a monitor or printer
- The speaker advises building understanding through small concepts rather than cramming, and promises a connected series
Full Transcript — Download SRT & Markdown
Speaker A
Hello friends, welcome to Gate Smashers In today's video, we are going to discuss Types of Buses in Computer Architecture And generally, on what basis do we make these busses?
Speaker A
That what is that bus carrying? As you can see in the diagram, address bus, what is it carrying? address!
Speaker A
data bus for carrying the data And control bus for carrying the control and timing signals So here according to the diagram, you have.
Speaker A
8085 microprocessor And here we have control unit And if we talk about address bus So what is address bus carrying The Address.
Speaker A
Like if we talk here in memory In memory or input and output devices If I want to fetch anything To reach any particular location Then what does the CPU or microprocessor do for it?
Speaker A
Generates an address And that address will be generated from the address bus And from any particular location we have to fetch the data That location will be in the address bus Like if we talk about 8085 microprocessor So here the address bus length is 16 bits
Speaker A
16 bits means Total number of slots in memory is 2 raised to power 16 Which is 65536 But if I talk about Let's take a simple example The memory we have.
Speaker A
In that we have, this address bus The address bus length is let's say 3 bits So what does it mean that in memory we have 8 slots 0, 1, 2, 3, 4, 5, 6 and 7 So total number of slots will be here? 7!
Speaker A
And it has 3 bits What does 3 bits mean? That to represent it we have 00001001001110010110111 Means if we say that address bus its length is 3 bits So what is it showing?
Speaker A
It is showing that 2 raised to power 3 Means 8 slots 8 locations in memory Which we can also call block Means 8 places where the data can be read So generally if we talk about 8085 As I said 16 bits So total number of slots in memory is 2 raised to power 16
Speaker A
Which is 65536 So from these many slots From where do I have to take data?
Speaker A
Let's say my slot number is this So I have to take x and its location is 101 So what will come in address bus?
Speaker A
101 And let's say if we have a value of 16 bits And if we have only address 101 So what will be the MSB bits?
Speaker A
Will be 0000 It's simple Address bit shows us How many number of slots are there in memory?
Speaker A
And this is unidirectional Means. processor generally generates address And that address from where we have to take it?
Speaker A
Let's suppose from memory we have to take some value from input device Or we have to send any value to any output So for that we use address bus here Then if we talk about data bus First of all what is data bus?
Speaker A
Unidirectional means let's suppose if we talk here Input device. If we fetch anything from input device Let's say we typed something from keyboard So how will it go from there?
Speaker A
It will go first in data bus Let's say it goes in data bus And from data bus it will go to processor We have different types of registers near processor Which we discussed in the previous video Data gets stored in those registers
Speaker A
So this is it basically How we have to travel data And if we talk like this from microprocessor Let's say I converted some input to output And I have to show that data on printer Or I have to show that data on monitor
Speaker A
which is an output device So how will we show? From here that data will go And it will show in output device So to travel data To send data we use data bus So it can go this way and the other way
Speaker A
So it is bidirectional And between the registers also Where all registers are stored? In microprocessor So like we have data registers Temporary registers In these registers also if we have to shift data Then for that we use data bus only And how much this journey will be?
Speaker A
It depends on the size of your word Means like we talked about address What address bit shows?
Speaker A
That how many locations we have in memory And the length of data bus depends on The size of the data you are taking from this location Let's say, that in any particular location I can store 2 bytes, Means the size of word we have
Speaker A
We discussed word in last video too we use word basically to represent memory And the size of word we have in this example That is 2 bytes Means I can store 2 bytes in this location 2 bytes here, 2 bytes here, 2 bytes there
Speaker A
So what does it mean? 2 bytes means 16 bits So how many bits can data bus carry?
Speaker A
It can carry 16 bits This is how we represent with the data bus So the length of data bus depends on The data you are storing in memory Or the data you are taking from memory How much is that length?
Speaker A
And maximum length let's say If we talk about memory Then we have 2 bytes in memory And let's say the data coming from input is 1 byte So there is no problem Now what will happen in 1 byte?
Speaker A
That the last 8 bits You give them value And before that the MSB That will be 8 bits 0 0 0 0 It's simple If the size of data or address is less Then you give the LSB values the same And the MSB bits will be simply 0 0 0
Speaker A
Then we have control bus Control bus is basically used To send control signals or timing signals And for this we have dedicated hardware Which is a control unit Because for which instruction to execute There should be complete timing
Speaker A
It should not be that if I am executing the instruction later Then it may be that there is a problem in my output So generally we have control signals Let's say if we talk about the register Then we have to load the data in the register
Speaker A
So load is a signal Load means in that particular register To load the data I have to activate the load If I want to increment any value Then I can increment Let's say if I want to clear something
Speaker A
To clear we generate the control signals If we talk about memory Then if I want to perform read in memory I want to read something from memory Or write something in memory For this we have control signals Which generates control unit And timing means
Speaker A
At what time clock pulse should be activated That is what is done by the control unit And all these signals travel through control bus If we talk about input Then if I want to read something from input device
Speaker A
And write something from data So for all these values We use control bus for all these purposes So this is simple Although it is a very simple point But if you want to understand computer architecture well Then you have to keep these small points in mind
Speaker A
Only then you can do big concepts well Students try to cram directly Don't cram at all We will bring these small topics And as soon as we relate all these topics And make a whole series You will get much more benefit from it
Speaker A
So thank you, all the very best.
Topics:computer architectureaddress busdata buscontrol busbuses8085 microprocessorGATE exammemory addressingcontrol unitword size











