← กลับหน้าหลัก
บทที่ 9

สถาปัตยกรรมระบบอินพุต/เอาต์พุต

I/O Subsystem Architecture

เนื้อหาหลัก Key Topics

สูตรสำคัญ Key Formulas

Interrupt Latency
\[ T_{\text{int latency}} = T_{\text{detect}} + T_{\text{save context}} + T_{\text{ISR}} + T_{\text{restore}} \]
CPU Overhead ของ Polling

จำนวน Poll ต่อวินาที = Data Rate / Bytes per Poll

CPU Overhead = จำนวน Poll × รอบต่อ Poll / Clock Rate

Queuing Theory — Utilization
\[ \rho = \lambda / \mu \quad (\rho < 1 \text{ ระบบเสถียร}) \]

ควรออกแบบให้ ρ ≈ 0.7–0.8 เพื่อสมดุล throughput และ latency

คำสำคัญ Key Terms

การสำรวจสถานะ · Polling การอินเทอร์รัปต์ · Interrupt โปรแกรมจัดการอินเทอร์รัปต์ · ISR (Interrupt Service Routine) DMA (Direct Memory Access) Memory-Mapped I/O Port-Mapped I/O CLINT PLIC CSR (Control and Status Register) ความหน่วงอินเทอร์รัปต์ · Interrupt Latency PCIe / USB / AMBA AXI / CXL UART