3.Bus

bus

1. The basic concept of the bus

1.1 Why use a bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-9jf4WDRO-1616128658902) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317182707153 .png)]

1.2 What is a bus

Bus: Bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-tEtnz1XH-1616128658908) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317182859626 .png)]

1.3 Transmission of information on the bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-XdGZ3RsN-1616128658910) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317182958229 .png)]

Parallel: short transmission distance

Serial: Long transmission distance

Serial fast

1.4 Example of a computer with a bus structure

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-YvVUos9f-1616128658913) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317183140130) .png)]

**Question: ** Only one pair of components can use the bus at any time, and the bus becomes the bottleneck of the system

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-nVh6lTwb-1616128658916) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317183425440 .png)]

Problem: Information transfer occurs between peripherals and main memory, and the CPU is used as the medium, and the CPU is busy

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-WmrPF1vh-1616128658923) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317183733963) .png)]

Problem: At present, the system bus and storage bus cannot work at the same time.

2. Classification of the bus

2.1 Divided according to the location of the bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-ydC6wiV6-1616128658925) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317184430668 .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-SgnSxHYB-1616128658926) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317184535435) .png)]

USB, network port: serial

3. Bus characteristics and performance indicators

3.1 Bus physical realization

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-JDZEc4di-1616128658928) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317185327650 .png)]

3.2 Bus characteristics

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-SZ9C5Tzh-1616128658929) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317185610680 .png)]

3.3 Performance indicators of the bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-KvBhXf7H-1616128658930) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317185954363) .png)]

3.4 Bus standard

PCI

To understanding

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-3uyH3hbG-1616128658932)(C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317190553217 .png)]

4. Bus structure

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-hCItEvLD-1616128658933)(C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317191727699 .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-NsYFR1di-1616128658935) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317191819769) .png)]

Channel: usually written by the operating system

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-p1mmBRsQ-1616128658936) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317191951599 .png)]

There can be multiple high-speed peripherals

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-NdCbe9Vn-1616128658938) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192045254) .png)]

所谓三线:I/O总线、主存总线和DMA总线

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-kNlTnhjE-1616128658940) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192341745 .png)]

4.1 Example of bus structure

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Rhb9bsNy-1616128658941) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192512274) .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-JVvxQ2Rv-1616128658942) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192603662) .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-TcWjcLp6-1616128658943) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192648455 .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-U9gxuOdz-1616128658944) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317192730345) .png)]

5. Bus control

5.1 Arbitration control of the bus

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-eb4VFcNa-1616128658945) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210317195952852 .png)]

5.1.1 Chain query mode

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-5Li4Tsof-1616128658947) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318121158560 .png)]

Advantages: simple structure, simple addition and deletion of equipment, simple priority algorithm, easy to achieve reliability design

Disadvantages: sensitive to circuit failure, especially BG line, slow speed

5.1.2 Counter timing query mode

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-hTGeq8uW-1616128658948) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318121932963) .png)]

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-zwoui9hy-1616128658949) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318122208781 .png)]

Advantages: flexible priority order

Disadvantages: slow

5.1.3 Independent request method

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-yqmggDhc-1616128658950) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318122542023 .png)]

Advantages: more flexible priority order

Disadvantages: Need a lot of wires

5.2 Bus communication control

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-FfY0wuym-1616128658951) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318123014903 .png)]

Also withdraw relevant information from the module

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-luzcPE3m-1616128658952) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318123340339 .png)]

5.2.1 Synchronous data input

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-PXGJp7Kr-1616128658953) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318123645800 .png)]

Fixed-width and fixed-distance clock control

5.2.2 Synchronous data output

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-So0okKnF-1616128658954) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318123839664) .png)]

一般应用在总线长度比较短 、各个模块存储时间比较一致

5.3 Asynchronous communication

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-covphTCY-1616128658955) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318125239168 .png)]

Asynchronous communication uses handshake signals

5.4 Semi-synchronous communication (combination of synchronous and asynchronous)

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-r0IQeDie-1616128658956) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318154715574 .png)]

5.4.1 Semi-synchronous communication timing taking input data as an example

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-5jW7Huh4-1616128658957)(C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318155014431 .png)]

wait signal: if the data is not ready from the module, insert a wait signal

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-vQpIpkPr-1616128658959) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318155324237 .png)]

5.5 Summary

上述三种通信的共同点

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-56W8fQT0-1616128658961) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318155532402 .png)]

5.6 Separate communication

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-Id8pJxRa-1616128658963) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318155730968 .png)]

That is to change from the module to the main module in the sub-cycle

vQpIpkPr-1616128658959)]

5.5 Summary

上述三种通信的共同点

[External link image is being transferred...(img-56W8fQT0-1616128658961)]

5.6 Separate communication

[External link image is being transferred...(img-Id8pJxRa-1616128658963)]

That is to change from the module to the main module in the sub-cycle

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-IqTMDuq4-1616128658964) (C:\Users\LENOVO\Desktop\study notes\unit\assets\image-20210318160318694) .png)]

Guess you like

Origin blog.csdn.net/qq_49821869/article/details/115003652