Top Banner
Name, Last name, Student #: 1 st 20.06.2017 2 4 nd -~ _ 33'd I Grade/T optarn i j PLO I roc 4 Karadeniz Technical University Faculty of Engineering Department of Computer Engineering COM/BiL 2000 Resit Exam 1. A commercial interface unit uses different names for the handshake lines associated with the transfer of data from the lIO device into the interface unit.The interface input handshake line is labeled STS (strobe), and the interface output handshake line is labeled ISF (input buffer full). A low-level signal on STS loads data from the 1/0 bus into the interface data register. A high-level signal on ISF indicates that the data item has been accepted by the interface. ISF goes low after an lIO read signal from the CPUwhen it reads the contents of data register/*1 Ticari bir arayuz birimi G/<; cihazrndan arayuze verinin aktanrru HeIliskili el sikrsrna hatlan i~in farkh isimler kullanmaktadrr. Arayuzun giri~ el sikrsrna haw STS(veri ham), ve ~Ikl~ el sikrsma hatti ISF (giri~ tamponu dolu) olarak etiketlenmistir. STB'deki dusuk-seviyeli sinyal veriyi G/<; yolundan arayuz veri kaydedicisine yuklernektedir. ISF'deki yuksek-seviyeli sinyal arayuzun veriyi aldlglnl gbstermektedir. Veri kaydedicisi i~erigini MiS'nin G/<; okuma sinyali Heokumasi sonrasmda ISF dusuk seviyeye gitmektedir. a. Draw a block diagram showing the CPU,the interface, and 1/0 device along with the pertinent interconnections between the three units. (16 points) 1*1 Mis, arayuz. ve G/<;: clhazrru aralanndaki qerekli baqlannlanyla gbsteren bir obek cizqeslni clzlnlz. (16 puan) G-/f;. . E' IA "~r I B . \:::'od [ l.M (e, \S62" t- CS G-Ir;. N" "'" S TI3 ~ '--r, .-J \ 1 1131': ! )1 ~ H ~ V€v--i Acl( cs t~V\~~"\N\ b. Draw a timing diagram for the handshaking transfer. (16 points) 1*1 Elsrkrsrnahaktanrn icin zaman lama clzqeslnt clzlniz (16 puan) (SIr; _Ve._I'"_i --'l{ ~e~ey~; ),..--.,.--- __ \: Vcr I S_It3_pC /\==x: _T B_F ~ \1.-_-- c. Obtain a sequence of events flowchart for the transfer from the device to the interface and from the interface to the CPU. (18 pOints)/*1 Cihazdan arayuze ve arayuzden islemciye aktanrn i~in srrah qerceklesen olaylann akis clzqeslnl elde ediniz. (18 puan) \ \)e'(' i ArQ J ~z.e ~,\tct,.. 1 At-C\j':"t. Vey-; k~J(J ic:'I~ i ~(! k~c.kt ~ .,. "1 IS!=- <t-i STB 4- 1. t \ \ r ;s[eY11C; I S TB 4-- .J?5 IBF 4--¢ bk4r I~ Vel'"t!ji \<ctld,r 'I e.",,\ deV\ "~r-; ~ l"",~Cl hCt2.I r- .... --------" -
2

Karadeniz Technical University - ceng2.ktu.edu.trulutas/Courses/UnderGraduate/MicroProce… · verilen FastCal1~aglrma kurah ile ~agnldlglnda arguman olarak aktanlan dart tamsayrrun

Oct 06, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Karadeniz Technical University - ceng2.ktu.edu.trulutas/Courses/UnderGraduate/MicroProce… · verilen FastCal1~aglrma kurah ile ~agnldlglnda arguman olarak aktanlan dart tamsayrrun

Name, Last name, Student #:

1st

20.06.2017

2

4

nd-~ _ 33'd IGrade/T optarn

i j PLO I roc4

Karadeniz Technical UniversityFaculty of Engineering

Department of Computer EngineeringCOM/BiL 2000 Resit Exam

1. A commercial interface unit uses different names for the handshake lines associated with the transfer of data from the lIO device into theinterface unit.The interface input handshake line is labeled STS (strobe), and the interface output handshake line is labeled ISF (input bufferfull). A low-level signal on STSloads data from the 1/0 bus into the interface data register. A high-level signal on ISF indicates that the dataitem has been accepted by the interface. ISF goes low after an lIO read signal from the CPUwhen it reads the contents of data register/*1Ticari bir arayuz birimi G/<; cihazrndan arayuze verinin aktanrru HeIliskili el sikrsrna hatlan i~in farkh isimler kullanmaktadrr. Arayuzun giri~ elsikrsrna haw STS(veri ham), ve ~Ikl~el sikrsma hatti ISF (giri~ tamponu dolu) olarak etiketlenmistir. STB'deki dusuk-seviyeli sinyal veriyi G/<;yolundan arayuz veri kaydedicisine yuklernektedir. ISF'deki yuksek-seviyeli sinyal arayuzun veriyi aldlglnl gbstermektedir. Veri kaydedicisii~erigini MiS'nin G/<; okuma sinyali Heokumasi sonrasmda ISF dusuk seviyeye gitmektedir.

a. Draw a block diagram showing the CPU,the interface, and 1/0 device along with the pertinent interconnections between the three units. (16points) 1*1 Mis, arayuz. ve G/<;:clhazrru aralanndaki qerekli baqlannlanyla gbsteren bir obek cizqeslni clzlnlz. (16 puan)

G-/f;..

E' IA "~rI B. \:::'od [l.M (e, \S62" t- CS G-Ir;. N"

"'" S TI3~

'--r, .-J \ 1 1131':! )1

~H ~

V€v--iAcl( c st~V\~~"\N\

b. Draw a timing diagram for the handshaking transfer. (16 points) 1*1 Elsrkrsrnahaktanrn icin zaman lama clzqeslnt clzlniz (16 puan)

(SIr; _Ve._I'"_i --'l{ ~e~ey~; ),..--.,.--- __\: Vc r I

S_It3_pC/\==x:_T B_F ~ \1.-_--

c. Obtain a sequence of events flowchart for the transfer from the device to the interface and from the interface to the CPU. (18 pOints)/*1Cihazdan arayuze ve arayuzden islemciye aktanrn i~in srrah qerceklesen olaylann akis clzqeslnl elde ediniz. (18 puan)

\\)e'(' i ArQJ ~z.e ~,\tct,.. 1 At-C\j':"t. Vey-; k~J(J ic:'I~ i~(! k~c.kt~ .,.

"1 IS!=- <t-iSTB 4- 1. t\

\r ;s[eY11C;I S TB 4-- .J?5 IBF 4--¢bk4rI~

Vel'"t!ji \<ctld,r 'Ie.",,\ deV\ "~r-; ~ l"",~Cl hCt2.I r-

.... --------" -

Page 2: Karadeniz Technical University - ceng2.ktu.edu.trulutas/Courses/UnderGraduate/MicroProce… · verilen FastCal1~aglrma kurah ile ~agnldlglnda arguman olarak aktanlan dart tamsayrrun

2.a. Why are the read and write control lines in a DMA controller bidirectional? (16 points) 1*1 DMA denetleyici okuma ve yazma denetim hatlanneden iki yonludur? (16 puan)

DW\A o\~V\<!.t\~~\C\S: u.\c.\-~t oto.rQk o-\d-anlM j'lpllVl'jc:>r'> ise (\3 c;..= ¢)o\:.U.vV\o..j'jil2#"o. 3",i~ler-" IMiB +qra.t'V'ldq", dtVle..H.el"1ebil1'"Y'les-i ;<;:111 <Jiri~

O\ct\"Q~ ve: a,k.+aYlr'VI j~f\'\~OI'" tSe L!3G-~1) '7\kI~ O\C\\"'t:\~ kullC\Y),l, r.

b. Under what condition and for what purpose are they used as inputs? (16 points)/*1 Bu hatlar hangi kosullar alunda ve ne arnada giri~ olarakkullarulrnaktadrr? (16 puan)

Aki-arrVV\ \~~r\?'\"""a.clQVI ol"1ce ve.rIVliV) O\.:Ul1q(.QjI/J"IZllaccjl be..llt.k C\drC5i)

L\o\... lcojU V~ dijc'r bi\ji'ev-i, J)V\I1A Jt'l'\e+le~ic:.( I-::e<jdedic.i\eyil'\e JQzmClk-ie: ok.~~C\k ic;:-\V1 ;'jiri? 'o\~rqk kl.\.llCtIi\\ \lY'.

c. Under what condition and for what purpose are they used as outputs? (18 points)/*1 Bu hatlar hangi kosullar alnnda ve ne arnacla ~Ikl~olarak kullarulrnaktadtr? (18 puan)

Ak.+c.r,1'V\k \Y ~ \c. ~ j, if' VI \o~O\Ct"'Qk. 1<~l\QVI\hV'.

bClS(Qd,k:tClV"l SOVlY'C(\

~c. -\-\~r

ifIe"" c i -Lu IA.1 d<:fI\ e t i VY1 j~U ~ Y' \ Vll

1) VV\ A dc:V\ ~+I~ji~; tCI\, ..~tI i-td c(""

3. Code an x64 assembly function to be called from a C++ program with FastCal1calling convention to returninteger average of four integernumbers passed as arguments with the function protype given below. (15 points) 1*1 Bir C++ programdan asaqrda fonksiyon prototipiverilen FastCal1~aglrma kurah ile ~agnldlglnda arguman olarak aktanlan dart tamsayrrun ortalarnasmjtamsayt olarak geri donduren birassembly dili proqrarm kodlayimz. (15 puan)

long IntegerAverage (long A, long 8, long C, long 0);

MOV r'o, 'X. r-c 'X ; -1 . +Ct\N\S a. ~\j\ 'j~'"\e.I'" C\c\ '("'0>, ')( I rd 'X ; 2.. "

ek,1 e

ctdd rex", \r~ , 3, 1/)

/.1

OLcld rC\.~,r9I ~. // IJ

S ~r" rQ.'X,2-/ 2- to I't s~c. k~d Ira ra.k. '-f'e b(fl

r' et