Transcript for:
Understanding Bus Architecture in Computers

Hi students, coming to the next topic that is bus architecture. So what is a bus? A bus is nothing but it is a communication pathway connecting two or more devices. Means it's just giving a communications between the devices. So a bus that connects major components So what are the major components in the system? The major components are processor, memory, input output devices is called system bus. So bus is nothing but it is a way of communicating two or more devices and coming to the system bus, system bus is nothing but the bus that connects the major components the major components in the system like processor memory and i o devices is called system bus actually the system bus whatever here is it typically contains this system bus typically contains about 50 to 100 52 Hundreds of separate lines and each line assigns some function. What it means? Actually, whatever the bus you are taking, a bus consisting of set of lines. A single line you call it as a bus. Okay. So, a system bus consisting of set of lines will be there set of bus lines will be there so these bus lines this set of bus lines may be 50 to 100 it's nearly 50 to 100 are present in system bus a system bus consisting of set of bus lines those may be around to 50 to 100 so each line so whatever the line each line Assign some functions means it is having some meaning. So that is a system bus. Actually a system bus usually separated into three functional groups. So whatever the system bus means it's just a communication, it's a connector between these components, major components, processor, memory and IBO. And this system bus separated into three functional groups means the group of lines are separated into three functional groups. System bus usually separated into three functional groups. So those are data bus, address bus and control bus. So a system bus means a set of bus lines is divided into three separate buses. Data bus, address bus, control bus. Data bus is used to hold the data, whatever the data that processor has to work on and the processor is going to be stored, sent to memory and I.O. devices. And the address bus indicates from where we have to get the data and from where we have to put the data. So that indicates the address bus. and the control bus is used to monitor the data and address. So it always monitors the system. Okay, so these are the three buses. These call it as a system bus. A system bus consisting of data bus, address bus and control bus. So let me explain this system bus with the diagram. So here I said the system bus is used to connect the major components. In the computer system, what are the major components? CPU. The CPU consists of ALU, Arithmetic Logic Unit, Registers and Control Unit. So this is one component. CPU, Memory, Input, Output Unit. okay so these are the three major units. So these three major units are connected with the help of System bus. So this is a system bus. A system bus is having data bus, address bus and control bus. So this system bus is connected to CPU. Okay. So this is a data bus. A data bus is a bi-directional. The data is sent from other devices to memory and from... CPU to other devices from other devices to CPU and address bus is a unidirectional whereas control bus is it's a bidirectional in the same way for memory okay so this is a system bus a system bus that are connected to a major components let us discuss one by one so first is data bus so what is the use of the data bus in the system so a data bus is nothing but it is used to carries data it carries data from one device to another device so it consists of it consists of eight 32, 64, 128 or even so on. More separate lines. So again this data bus is having separate lines. So I said the system bus is nothing but it is a group of lines. This group of lines is divided into data bus, address bus and control bus. So again this data bus is having some separate lines. so those lines will be of size 8 13 64 128 or it may be so on so the number of lines here in the data bus the number of lines referred as a width of a data bus width of data bus so here each line carries only one bit so you have to remember that Suppose the data bus is consisting of 8 lines. Suppose it is an 8 bit. Means 8 lines will be there in data bus. So each line carries 1 bit. Each line carries 1 bit up to 8 bits. So the number of lines referred to as a width of a data bus. So the width of data bus here is 8 bit. Means 1 byte. The width of data bus is 1 byte. sorry two bytes so one byte is equal to four bits so two bytes okay so this is about the data bus now let us see what is address bus let me explain about address bus so data bus is used to carry the data then what about the address bus what is the use of the address bus so address bus is nothing but it have it is having the collection of wires just like data bus those wires used to identify particular location in memory so it is used to identify particular location in main memory this is called address bus so that's why in the previous diagram i had as seen that the address bus is a unidirectional only one direction will be dead because that direction indicates it identify a particular location in memory so it pointing towards to the memory means it identifying a particular location in memory by the cpu so it is used to identify the source or destination of a data the main use of address bus is used to identify the source or destination of data okay so here example the cpu needs to read an instruction or data from a given location in memory just like the cpu wants to read a data from memory so if you if it wants to read a data from memory first it has to know Where the data is present, so that will tell by this address bus. The address bus holds the address of the data, that data presents in the memory. So the CPU needs to read an instruction or a data from a given location in memory. And coming to the width of the bus, how can you say the bus width? The bus width of address bus determines maximum memory capacity of a system maximum memory capacity of a system what it means so the bus width of address bus whereas data bus bus bus width is determined by the number of lines it referred uh carrying okay so suppose eight eight lines are carrying each line carries one bit so if eight lines means the bus width is eight bit so how uh what is the address bus bus width will be determined it is determined by the maximum memory capacity of a system so whatever the processor we are using so that processor capacity so the memory capacity is depends upon this address bus determines the address bus let me explain with example 8080 is a micro a processor micro processor has suppose it it has a 16-bit address bus Means the address bus consisting of 16 bit lines but it give 16 bit address bus giving 64 kilo address space. So even though it is a 16 bit address bus it giving 64 kilo address space. So that is about the address bus. Now coming to the next that is a control bus. so what is the use of control bus control bus is nothing but it regulates i already said it always monitors all the address and data bus so it regulates the activity on bus what it means what it regulates the activity on the bus means it is saying when to read the data and when when to put the data on data bus and when to read the address on uh address of the memory location so based on the address of the memory location at what time the data has to be put on the data bus so like that it always regulates the activity on the bus so it always controls and timing information always control and timing information means it holds all the timing information related to the buses and it carries a signals that report the status of various devices the control bus holds or it carries signals that report that each signal is report the status of various devices means whether the device is ready or not or is the device is sending any data like that So it carries signals that report the status of various devices by this control bus. So there are different control signals will be there in the control bus. The control bus holds different control signals like memory, memory read, memory write, I.O. read, I.O. write. So like that these are the different typical control signals hold by this control bus. So what this memory read means? So memory read nothing but it causes data from address location to be placed on the data bus. So we have to get the date address location a data from address location to be placed on data bus. Address should be the data from address location right data from address location to be placed on data bus so you just place the data on data bus with the help of memory read whereas memory write the work of memory write signal is it causes data on the bus to write written into address location so means whatever the data that sends by the cpu that data should be placed on the address location data should place on address location so from a particular address location means from memory that data is placed on the data bus so that the processor can read the data whereas memory write means whatever the cpu is executed that should be placed written onto the memory so that's why the data should placed on the address location of a memory in the same way i o read means data from address i o ports to be placed on the bus whereas i o write is data on the bus to be output to the address of i o ports so just memory read memory write i o read i o write or the different signals you call it as a control signals means it indicates the control bus so what action you have how to be do is you have to do a memory read means the bus has to read the memory read or it has to do the memory write operation or i o read operation or i o write operation like that okay so let me uh explain with some traditional bus architecture a traditional bus so here let me take this a processor is there A processor is connected with some local bus with a cache. Cache is a memory. It is a memory unit, a small memory unit that is present in the processor. Okay, so whatever the data the processor want to be executed that or want to send to the other devices that data will be stored in the cache. Cache is the fastest storage device after register. So this is a local bus. connecting between the processor and cache by using the local bus and here some local i o controller is there input output controller okay now coming to the main memory this is the main memory and this main memory and the cache are connected by using the System bus. Here this is a system bus and after that the system bus is connected with some expansion bus interface. Okay. So here an expansion bus slot will be there. so not only the system bus you can also connect an extra buses to your device your system whenever it requires if you need you can connect some expansion slots so here a network unit will be connected or some modem is connected or some serial some input output devices will connected now let us see what is this a traditional bus so here the one thing here whatever the devices that are these are the input output devices or the memory devices is not directly connected to the processor okay so whatever the processor is doing that first sends to the cache so the cache is connected to the system bus only the memory this is cache is also a memory okay so whatever the action that has to perform by the processor or the processor sends the data that it stored in the cache and this cache will be connected to the system bus so the system bus is like it consisting of data lines control lines address lines so in the same way for this local buses also it is having data control and address line so whatever the bus expansion bus interface is also having expansion bus not bus interface expansion bus is also having all these three lines so bus means it contains set of lines so here the main memory is connected to the system bus and the cache. So the system bus is connected to the some expansion bus interface so that some with the help of expansion bus you connect to some other devices also. So these all will be interacted with the system bus. The system bus will sends the data to main memory from main memory to processor first it has to interact with the cache. The cache will sends the data to the processor. So like that. So these are the different buses. So within the processor So this is completely a CPU. You call it as a CPU. So within the processor a local bus will be there. After that a system bus will be there. After that some expansion buses will be there. So this is about the bus architecture. Thank you.