180 likes | 275 Views
This document explores the historical and functional development of CPU device interfaces, particularly focusing on input/output (I/O) programming, memory-mapped I/O, and direct memory access (DMA). It highlights the importance of DMA in reducing CPU load through bus cycle stealing and bus arbitration. The work of A. Frank and insights from Adi Gutman and Noa Cohen are acknowledged, covering channel processors, channel programs, and the implications of using I/O processors to streamline communication between devices, ultimately enhancing performance and efficiency.
E N D
File Organization Historical/Functional Development of CPU-Devices Interface Thanks to Adi Gutman and Noa Cohen A. Frank
I/O interface developments התפתחות מנשקי קלט/פלט: • I/O Programming –תכנות קלט/פלט • Memory Mapped I/O – מיפוי אוגרי ק/פ למרחב המעינה של הזיכרון • Direct Memory Access (DMA)– גישה ישירה לזיכרון A. Frank
Where does DMA fit? A. Frank
Direct Memory Access • Direct Memory Access (DMA) - גישה ישירה לזיכרון Bus cycle stealing פילוח פס המערכת Bus arbitrationבוררות בפס • ההתקנים מעבירים מידע ביניהם בלי לערב את המעבד. • בקר ה-DMA מעביר נתונים ע"י תהליך של "פילוח פס המערכת". תהליך זה מתבצע כאשר מתברר על פי קו הבקרה שהמעבד לא יתפוס את צמד מחזורי הפס הבא. • אם שניים או יותר התקנים רוצים לפלח, יש בוררות בפס. A. Frank
DMA Controller A. Frank
Registers of DMA Controller A. Frank
Direct Memory Access A. Frank
DMA Interrupt • DMA Interrupt- only at end of request. • ההתקן שולח פסיקה – DMA interrupt – רק לאחר פעולת DMA שלמה, ולא אחרי כל תו. • מוריד מהעומס על המעבד (סדר גודל פחות של פסיקות לעומת פסיקות רגילות). A. Frank
DMA Flow A. Frank
Direct Memory Access A. Frank
I/O interface developments התפתחות מנשקי קלט/פלט: • I/O Programming –תכנות קלט/פלט • Memory Mapped I/O – מיפוי אוגרי ק/פ למרחב המיעון של הזיכרון • Direct Memory Access (DMA)– גישה ישירה לזיכרון • Channel Processor/Program – תוכנית ערוץ A. Frank
I/O Processor (Channel) • I/O Processor (Channel) -מחשב ק/פ (ערוץ) • מחשב ק/פ ייעודי המבקר מספר בקרים (המבקרים מספר התקנים). I/O Processor Controller Controller A. Frank
I/O channels A. Frank
Channel Control A. Frank
Channel Program • Channel Program – תוכנית ערוץ • מהווה תוכנית מלאה של פקודות ק/פ. • הערוץ מפעיל את הבקרים הרלוונטיים שמפעילים את ההתקנים הרלוונטיים בסדר הנכון. • רמות נמוכות מהמעבד מתעסקות עם ביצוע פקודות I/O, תקלות וכו', דבר המוריד את העומס מהמעבד. A. Frank
Channel Interrupt • Channel Interrupt- only at end of request. • הערוץ שולח פסיקה – Channel interrupt – רק לאחר סיום תכנית ערוץ שלמה. • מוריד מהעומס על המעבד (סדר גודל פחות של פסיקות לעומת פסיקות DMA). A. Frank
I/O Channels A. Frank
Channel Functionality • Channel (Mainframe-oriented) כאשר ישנם הרבה בקרי DMA, נוצר עומס על המעבד ועל פס מערכת. לכן, ישנו ערוץ (המהווה בקר-על) המפקח על כל הבקרים. כך יורד העומס מהמעבד ומעל פס המערכת. A. Frank