FIT1047 Lecture Notes - Lecture 4: External Storage, Wi-Fi, Processor Register

22 views5 pages
Memory
!"#"$%&'%()%"*+",*)#-.*($/"%#)0"*+"10.)0"0#$"#("#223%$$"4)*($%)'-.5%".(-%6%3$/"
'$'#,,7"$-#3-.(6"+38"9%3*:
;#)0",*)#-.*(")#("$-*3%"<"2#-#"5#,'%"*+"#"+.=%2"1.2-0"4('8>%3"*+">.-$:
?
Address
!"#("'($.6(%2".(-%6%3"-0#-"3%+%3%()%$"<"'(.&'%"8%8*37",*)#-.*(
;#)0"8%8*37",*)#-.*("$-*3%$"<@/"-0%3%+*3%"%#)0",*)#-.*("A">7-%"(%%2$".-$"
*1("#223%$$
!">7-%B#223%$$#>,% 8%8*37"48*$-"#3)0.-%)-'3%$:
?
;#)0"8%8*37",*)#-.*("$-*3%$"<"1*32/"-0'$"%#)0"#223%$$"3%+%3%()%$"#"10*,%"
1*32
?
F("*32%3"-*"#223%$$"J(8%8*37",*)#-.*($/"1%"#,1#7$"(%%2"(">.-$"+*3"-0%"
#223%$$%$
F(">7-%B#223%$$%2"$7$-%8$/"(*K"*+",*)#-.*($"!"(*K"*+">7-%$
F("1*32B#223%$$%2"$7$-%8$/"(*K"*+",*)#-.*($"!"(*K"*+"1*32$"
L%M%(2.(6"*("$.9%"*+"1*32$
<HB>.-G"J("@"BBN"(B<">.-$"(%%2%2
O
PJB>.-G"J("@"BBN"(BJ">.-$"(%%2%2
O
§
?
RAM 4E#(2*8"D))%$$"C%8*37:
!"#,,*1$"QRS"-*"#))%$$"#(7"8%8*37",*)#-.*(".("$#8%"#8*'(-"*+"-.8%
;#)0")0.M"0#$"#"+.=%2"$.9%"TUVWX
U"!"('8>%3"*+",*)#-.*($
W"!"('8>%3"*+">.-$"M%3",*)#-.*(
JY"V"Z"!"Z"J"V"J<[ ,*)#-.*($"*+"Z">.-$"%#)0
?
\*"+.(2"EDC")0.M"-*"'$%2"10%("#"6.5%("#223%$$".$"3%&'%$-%2/"$M,.-"#223%$$"
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$%"Load/"Store %-)"-*")*88'(.)#-%"1.-0"FIc
§
;#)0"FIc"2%5.)%"*))'M.%$"#223%$$"$M#)%
aM%).#,"FIc"#223%$$%$")#(e-">%"'$%2"-*"#))%$$"EDC"#(78*3%O
§
F($-3')-.*($B>#$%2
QRS"0#$"$M%).#,"FIc".($-3')-.*($
§
a.8.,#3"-*"Load/"Store %-)">'-"1.-0"2.++"]#223%$$"$M#)%$]
§
a.()%"-7M.)#,,7"+%1%3"FIc"#223%$$%$"#3%"3%&'.3%2"-0#("8%8*37"
#223%$$%$/")#("'$%"#"3%2')%2"#223%$$"1.2-0"+*3"FIc"
§
4%6K".("=ZH"M3*)%$$*3"+#8.,7/"
10%3%"8%8*37"#223%$$%$"#3%"PJB>.-$"1.2%/"
>'-"FIc"#223%$$%$"#3%"<HB>.-$"1.2%:
a.8M,.+.%$"0I1".8M,%8%(-#-.*("*+"-0%",*6.)"-0#-"2%)*2%$"
FIc"M*3-"#223%$$%$
O
F("CDEF;/"Input A"Output
§
F("3%#,B,.+%"#MM,.)#-.*($/"Read/Write f
W0%3%"f".$"2%5.)%"-*"3%#2"+3*8I13.-%"-*O
F2%(-.+7"#")*()3%-%"3%6.$-%3".("#"M#3-.)',#3"FIc"2%5.)%/"$*")#("
>%"3%6#32%2"#$"#("FIc"#223%$$
O
§
Context,switch
!"$#5.(6"#$"8')0"*+"QRS"$-#-%"#$"M*$$.>,%"$*"#"M3*63#8")#("3%-'3("-*"-0%"$#8%"
M*$.-.*("#-"#",#-%3"M*.(-
W0%("-*"M%3+*38"FIc"*M%3#-.*($
FIc"2%5.)%$"8')0"$,*1%3"-0#("QRS"g"%=%)'-.(6".($-3')-.*($
L#-#")#(e-">%"+%2".(-*"-0%"QRS"#-"-0%"$#8%"$M2"-0#-"-0%"QRS")#("
*M%3#-%
\0'$/"(%%2"8%)0#(.$8"+*3"+.(2.(6"*'-"10%-0%3"(%1"2#-#".$"#5#.,#>,%"
+38"FIc"2%5.)%
R3*63#88%2"FIc
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$I1".(-%33'M-$"
3%6',#3,7/"%(#>,.(6"QRS"-*"%=%)'-%"#"$M%).#,"ca"
$'>3*'-.(%"%5%37"+%1"8$
@'-G
L.++"FIc"2%5.)%$"8#7"(%%2"2.++"M3.*3.-.%$
Q#(">%"#)0.%5%2"'$.(6"2.++"
.(-%33'M-"$.6(#,$
}
FIc"2%5.)%$"+',,7")*(-3*,,%2">7"QRS
}
D,,"8%8*37"-3#($+%3$"3'("-03*'60"QRS"
4%6"3%#2.(6"#(2"13.-.(6"#"1*32"+3*8"2.$Y"
$-*3#6%I-*"8%8*37"!")*M7"%5%37">7-%"
+38"FIc"2%5.)%".(-*"#"3%6.$-%3/"-0%("-*"
8%8*37:
Q#(">%)*8%"M%3+*38#()%"
>*--,%(%)Y$"10%("QRS".$"2*.(6"
(*-0.(6">'-"8%8*37"-3#($+%3$"
8*$-"*+"-0%"-.8%
a*,5%2">7"LCD 4L.3%)-"C%8*37"
D))%$$:
!"QRS")#("2%,%6#-%"8%8*37"
-3#($+%3"*M$"-*"#"2%2.)#-%2"
)*(-3*,,%3/"+*3"%6
d#32"2.$Y")*(-3*,,%3"B)*M7"#"
+.,%"2.3%)-,7"+3*8"2.$Y"-*"EDC
w
`3#M0.)$")#32"B+%-)0".8#6%"
2.3%)-,7"+38"EDC
b3%%$"'M"QRS"-*"2*"
*-0%3"-#$Y$
w
QRS"#(2"LCD"$0#3%"#"2#-#"
>'$
c(,7"*(%")#("M%3+*38"
8%8*37"-3#($+%3$"#-"#"
-.8%
w
}
®
O
?
Week$4
\0'3$2#7/" m"n'(%"J[<Z
JJG^^
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 5 pages and 3 million more documents.

Already have an account? Log in
Memory
!"#"$%&'%()%"*+",*)#-.*($/"%#)0"*+"10.)0"0#$"#("#223%$$"4)*($%)'-.5%".(-%6%3$/"
'$'#,,7"$-#3-.(6"+38"9%3*:
;#)0",*)#-.*(")#("$-*3%"<"2#-#"5#,'%"*+"#"+.=%2"1.2-0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$M#)%$]
§
a.()%"-7M.)#,,7"+%1%3"FIc"#223%$$%$"#3%"3%&'.3%2"-0#("8%8*37"
#223%$$%$/")#("'$%"#"3%2')%2"#223%$$"1.2-0"+*3"FIc"
§
4%6K".("=ZH"M3*)%$$*3"+#8.,7/"
10%3%"8%8*37"#223%$$%$"#3%"PJB>.-$"1.2%/"
>'-"FIc"#223%$$%$"#3%"<HB>.-$"1.2%:
a.8M,.+.%$"0I1".8M,%8%(-#-.*("*+"-0%",*6.)"-0#-"2%)*2%$"
FIc"M*3-"#223%$$%$
O
F("CDEF;/"Input A"Output
§
F("3%#,B,.+%"#MM,.)#-.*($/"Read/Write f
W0%3%"f".$"2%5.)%"-*"3%#2"+3*8I13.-%"-*
O
F2%(-.+7"#")*()3%-%"3%6.$-%3".("#"M#3-.)',#3"FIc"2%5.)%/"$*")#("
>%"3%6#32%2"#$"#("FIc"#223%$$
O
§
Context,switch
!"$#5.(6"#$"8')0"*+"QRS"$-#-%"#$"M*$$.>,%"$*"#"M3*63#8")#("3%-'3("-*"-0%"$#8%"
M*$.-.*("#-"#",#-%3"M*.(-
W0%("-*"M%3+*38"FIc"*M%3#-.*($
FIc"2%5.)%$"8')0"$,*1%3"-0#("QRS"g"%=%)'-.(6".($-3')-.*($
L#-#")#(e-">%"+%2".(-*"-0%"QRS"#-"-0%"$#8%"$M2"-0#-"-0%"QRS")#("
*M%3#-%
\0'$/"(%%2"8%)0#(.$8"+*3"+.(2.(6"*'-"10%-0%3"(%1"2#-#".$"#5#.,#>,%"
+38"FIc"2%5.)%
R3*63#88%2"FIc
§
!"M3*63#8".-$%,+"M%3.*2.)#,,7")0%)Y$".+"(%1"2#-#"0#$"#33.5%2"+3*8"
FIc"2%5.)%
Q#("2%-%38.(%"*'3$%,5%$"0*1"*+-%("-*"]M*,,]"2%5.)%O
QRS")*($-#(-,7".("]>'$7",**M]O
C*$-,7"'$%2".("%8>%22%2"$M%).#,BM'3M*$%"$7$-%8$"O
F(-%33'M-$
§
!"0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,"8%8*37"-3#($+%3$"3'("-03*'60"QRS"
4%6"3%#2.(6"#(2"13.-.(6"#"1*32"+3*8"2.$Y"
$-*3#6%I-*"8%8*37"!")*M7"%5%37">7-%"
+38"FIc"2%5.)%".(-*"#"3%6.$-%3/"-0%("-*"
8%8*37:
Q#(">%)*8%"M%3+*38#()%"
>*--,%(%)Y$"10%("QRS".$"2*.(6"
(*-0.(6">'-"8%8*37"-3#($+%3$"
8*$-"*+"-0%"-.8%
a*,5%2">7"LCD 4L.3%)-"C%8*37"
D))%$$:
!"QRS")#("2%,%6#-%"8%8*37"
-3#($+%3"*M$"-*"#"2%2.)#-%2"
)*(-3*,,%3/"+*3"%6
d#32"2.$Y")*(-3*,,%3"B)*M7"#"
+.,%"2.3%)-,7"+3*8"2.$Y"-*"EDC
w
`3#M0.)$")#32"B+%-)0".8#6%"
2.3%)-,7"+38"EDC
b3%%$"'M"QRS"-*"2*"
*-0%3"-#$Y$
w
QRS"#(2"LCD"$0#3%"#"2#-#"
>'$
c(,7"*(%")#("M%3+*38"
8%8*37"-3#($+%3$"#-"#"
-.8%
w
}
®
O
?
Week$4
\0'3$2#7/" m"n'(%"J[<Z JJG^^
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 5 pages and 3 million more documents.

Already have an account? Log in

Document Summary

= a sequence of locations, each of which has an address (consecutive integers, usually starting frm zero) Each location can store 1 data value of a fixed width (number of bits) = an unsigned integer that references 1 unique memory location. Each memory location stores 1b, therefore each location & byte needs its own address. Each memory location stores 1 word, thus each address references a whole word. = word-addressable memory (marie : 1 word = 16 bits/2b wide) In order to address 2n memory locations, we always need n bits for the addresses. In byte-addressed systems, no. of locations = no. of bytes. In word-addressed systems, no. of locations = no. of words. = allows cpu to access any memory location in same amount of time. 2k * 8 = 8 2 * 210 locations of 8 bits each. To find ram chip to used when a given address is requested, split address into 2 parts.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents