Overview
-
Bus overview
-
Basic concept of bus
-
Classification of buses
- < div style="text-align: justify"> Bus composition and performance indicators
-
Overview
Bus is more connected A non-cutting information transmission line is a transmission medium shared by each non-cutting. Time sharing and sharing are two characteristics of the bus.
Time sharing means that only one component is allowed to send information to the bus at a time. If there are multiple components in the system, they can only send information to the bus in a time-sharing manner.
Sharing means that multiple components can be mounted on the bus, and each component can be exchanged with each other The information can be shared in time sharing through this group of lines. Only one component is allowed to send information to the bus at the same time, but multiple non-cutting devices can receive information from the bus at the same time.
Link the CPU, main memory, and I/O devices on a set of buses, allowing direct exchange of information between I/O devices, between I/O devices and CPU, or between I/O devices and main memory. The structure is simple, and it is easy to expand the external equipment. The disadvantage is that all the transmissions are through this group of shared buses, and two or more components are not allowed to transmit information to the bus at the same time, which is inefficient.
Features: Since the I/O device and the main memory share one address line, the main The memory and I/O devices are addressed uniformly, and the CPU can access external devices like memory.
Features: I/O devices with lower speed are separated from a single bus to form The main memory bus is separated from the I/O bus.
Compared with the dual-bus structure, the three-bus structure adds a small path (DMA bus), Specially used for direct exchange of information between I/O high-speed devices and main memory. In the three-bus structure, only one type of bus can be used at any time.
Determine the devices that can gain control when competing for bus control at the same time
The counter has two counting methods: 1. Each time the counter arbitrates, it starts from “0”. At this time, once the device After the limited order is fixed, the priority of the device will be arranged in descending order of 0,1,2,…,n and can never be changed; 2. The counter can also start counting from the end of the last time, and all devices use the bus at this time Are equal in priority.
No central arbiter is needed. Each main module has its own arbitration number and arbiter, and multiple arbiters compete to use the bus. When they have a bus to request, they send the arbitration number of their respective location to the shared arbitration bus, and each arbiter will compare the arbitration number obtained from the arbitration bus with its own arbitration number. If the priority of the number on the arbitration bus is high, its bus request will not be responded to, and its arbitration number will be revoked. Finally, the arbitration number of the winner remains on the arbitration bus.
< li>
Overview of the bus
Basic concept of the bus< /span>
The classification of the bus
The bus Composition and performance indicators
The structure of the bus
Bus arbitration
Centralized arbitration mechanism
Distributed arbitration mechanism
Bus operation and timing
Synchronous timing method
Asynchronous timing method
Bus standard
Bus overview
Basic concept of the bus
The transmission cycle of the bus. Refers to the time required for the CPU to access the memory or I/O port once through the bus, including the bus application phase, addressing phase, transmission phase and end phase.
Bus width.
Bus characteristics. Machine characteristics, electrical characteristics, functional characteristics, time characteristics.
Classification of buses
According to the data transmission mode, it can be divided into parallel transmission bus and serial transmission bus.
According to the use range of the bus, it can be divided into computer bus, measurement and control bus and so on.
According to the different connecting parts, it can be divided into on-chip bus, system bus, communication bus and so on.
On-chip bus: The bus inside the chip.
System bus: connect the information transmission line between the five major components. According to the different transmission information of the system bus, it can be divided into: data bus, address bus and control bus.
Data bus: used to transmit information and data between various functional components, it is a two-way transmission bus.
Address bus: One-way transmission bus. It is mainly used to indicate the address of the source data or destination data on the data bus in the main memory unit or the address of the I/O device.
Control bus: Since the data bus and address bus are shared by all components, how to make each component have the right to use the bus at different times , It also needs a control bus to complete, so the control bus is a transmission line used to send out various control signals.
Communication bus: used for communication between computer systems or between computer systems and other systems. Divided into serial communication and parallel communication.
Bus composition and performance indicators
The composition of the bus: Usually a set of control lines, a set of data lines, and a set of address lines. Some buses do not have a separate address line, and address information is also transmitted through the data line, which is called data line and address line multiplexing.
performance indicators
Bus width. Usually refers to the number of data buses
bus bandwidth. The number of bits of data transmitted on the bus per unit time.
Bus multiplexing.
Number of signal lines. The sum of the number of buses in the address bus, data bus and control bus 3.
The structure of the bus
Single bus structure
Double Bus structure
Three-bus structure
Bus arbitration
Centralized arbitration mechanism
Chain query method
< span style="font-size: 10pt">Priority discrimination method: The closer to the bus, the higher the priority, and vice versa, the lower.
Advantages: Only 3 control lines are needed to press a certain The priority level realizes the bus control, the structure is simple, and it is easy to expand.
Disadvantages: Sensitive to circuits; when high priority components are frequent When requesting to use the bus, components with lower priority will not be able to use the bus for a long time.
Counter query method
Priority discrimination method: When the bus controller receives the bus request signal and judges that the bus is not busy, the counter starts counting, and the count value passes through a set of addresses The line is sent to each component. When the count value on the address line is consistent with the address of the device requesting to use the bus, the device obtains bus control. At the same time, the germplasm counter counts and queries work.
Advantages: The connection sequence of each device can be changed, and the Circuit failure is not as sensitive as the chain query method.
Disadvantages: Increased control time, and control is better than chain query complex.
Independent request method
Priority discrimination method: When the components on the bus need to use the bus, the bus request signal is sent through the respective bus request line, and the bus controller In line. When the bus controller decides to approve the request of a certain component in a certain limited order, it sends a bus response signal to the component, and the component receives the secondary signal and obtains the right to use the bus and starts to transmit data.
Pros: Fast response time, control of priority order Quite flexible.
Disadvantages: There are many control lines (n devices require 2n Control line), bus control is more complicated.
Distributed arbitration mechanism
Bus operation and timing
The concept of bus cycle
application allocation stage. The main module that needs to use the bus will grant a certain applicant the right to use the bus to determine the next transmission cycle through bus arbitration.
Addressing phase. The master module that has obtained the right of use sends the address of the slave module to be accessed this time and related commands through the bus to start the slave module participating in this transmission.
Transfer data stage. The master module and the slave module exchange data. The data is sent from the source module and flows into the destination module via the data bus.
End stage. The relevant information of the main module is removed from the system bus, giving up the right to use the bus.
Sync timing method
Asynchronous timing method
No Interlocking method
Semi-interlocking method
< p>Full interlocking method
Bus standard
System bus standard
ISA
EISA strong>
VESA
PCI
PCI-E
Device bus standard
IDE
USB
< span style="font-size: 10pt">SATA
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1288 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC