190 likes | 280 Views
In- en Uitvoer. CPU-bus. PC architectuur. Selectie van de componenten. memory. PU. PU bus. CS*. Glue logic. I/O cntl. CS*. Glue logic. Chip Select (CS of CS*). Memory mapped I/O. A0 A1. RS0. RSn. I/O. R/W*. registers. Glue logic. CS*. D0 Dn. Memory Map.
E N D
In- en Uitvoer Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
CPU-bus PC architectuur Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Selectie van de componenten memory PU PU bus CS* Glue logic I/O cntl CS* Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Glue logic Chip Select (CS of CS*) Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Memory mapped I/O A0 A1 RS0 RSn I/O R/W* registers Glue logic CS* D0 Dn Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Memory Map 0x00000000 memory 0x00FFFFFF Bereik: 2n 232 = 4294967296 bytes 0xFFFFF000 I/O 0xFFFFF0FF 0xFFFFFFFF Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Simpele I/O (output) D0 D Q Write only! Glue logic Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Simpele I/O (input) D0 Read only! Glue logic Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
I/O organisatie(data transport) • Geprogrammeerde I/O • Wacht op voltooiing van i/o opdracht • Interruptgestuurde I/O • Doe iets anders (of niets) totdat een interrupt optreedt • Directe geheugentoegang (DMA) • Onafhankelijk van de processor het geheugen beschrijven en lezen Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Interrupt RS0 RSn I/O IRQ* R/W* registers CS* D0 Dn Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Interrupt cycle If IRQ then Else Interrupt (exception) IF ID EX OF Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Interrupt request program Interrupt service routine t Interrupt Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
IRQ PC=28 mask interrupt Restore status & PC unmask interrupt Interrupt exception normale programmaflow Interrupt routine …….. instructie instructie instructie instructie instructie ……... …….. instructie instructie ……... ……… instructie RTI Maak instructie afSave status & PC 28 Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
I/O poort registers Statusregister(s) Besturingsregister(s) data-uit-register data-in-register • Interrupt vlag(gen) • fout vlag(gen) • toetstand van de controller • interrupt aan/uit • software instellingen Bijv.pariteit aan/uit Snelheid, enz Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Interrupt with Polling +5 volt open-collector (0 dominant) IRQ* I/O I/O CPU dataregister 0 1 Statusregister Statusregister Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Vectored Interrupt with Daisy chain Daisy-chain CPU IRQ IACK I/O1 I/O2 I/O3 IRQ* dataregister vector vector vector databus Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Priorities IRQ0 IRQ1 IRQ2 IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 prioritycntl CPU Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Direct Memory Access (DMA) DACKDRQ CPU 6 1 DMAcontr memory I/O BRQBGNT R/WCS 3 databus 7 adresbus Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology
Tentamen: • Hoofdstukken 1,2,3,4, 7 en paragraaf 9.2 • Alle oefen opdrachten (boek en practicum) Bij het tentamen mag één A4tje (beide zijden beschreven) met handgeschreven, goed leesbare tekst, gebruikt worden. Dit moet ingeleverd worden en zal, indien de kwaliteit goed is, max. 2 van de 10 punten opleveren. Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology