So I'vegotallofouraddressanddatalinespluscourse, ourpowerandgroundandtheonlypinsnowthatarenothookeduparetherightenablethechipselectandtheoutputenablepins.
Sorightenablesprettyeasybecausethathooksrighttothereedrightpanonthemicroprocessorbecausethemicroprocessorhas a readrightsignalthatitoutputsalongwiththedatabustosaywhetherit's readingfromthedatabus.
Andofcourse, weknowwewantthattoincludeourstack, whichis 0100301 f f.
Butyouknow, wewant a largerrangethanthatforRam.
Sothisisthememorymapthat I'vecomeupwithforthecomputerrightnowwherewe'vegotyouknowtheaddressesbecausethere's 16 bitsofaddresscomingoffthemicroprocessor, Sotheaddresscangofrom 0000 through F f f f.
Andsothere's a tradeofftobemadethere, youknow, howcomplexdowewantheraddressdecodelogictobeversushowmuchRamdoweactuallyneed?
And, youknow, I think 16 k ofRAMisprobablygoingtobeenoughforanythingthatwewouldbuildwiththiscomputer.
But, youknow, ifyouendupwriting a programforthiscomputerthatneedsmorethan 16 k ofram A, I'd besurprised, butbeinginhaIf, itbetterbe a prettycoolprogram, so I'd lovetoseeit.
Butuntilthen, I I thinknooneneedsmorethan 16 caveofmemory.
Solet's let's goaheadanddothis.
ThatmeansrightNow, thisiswhatwe'vegothookedup.
Right?
We'vegotaddress.
Zerothroughaddress.
14 oftheramhookeduptoaddressyourarthritis.
14 oftheprocessor.
We'vegotthedatabushookedup D 0 37 Andthenwehookedupthereedrightpinonthemicroprocessortotheright.
Sowhentheprocessorsetstheaddress, itwantstoreadfromandsetsthecontrolsignalsonthebus, thepresidentactuallystillwait a littlebitbeforeitcanreadthevaliddatafromtheRam.
Andreally, sincebothoftheseinourcasesareconnected, addresslines a 14 and 15 wecanreallythinkofallofthesethings.
Alloftheseeventskindofhappeningatthesametimebecauseatsomepointtheprocessisgoingtogettheaddresssetcorrectlyandthey'llhave a validaddress, including a 15 and a 14.
Andsothenthetimebetweenwhentheprocessorsetsthataddressandwhenthedataisvalidisjustwhicheverissortofthelongestofthosethreetimes, youknowthisTathe t A C s orthe T o e.
Sowhatarethosetimes?
Well, datasheethasthisothertablehereforthereadcycletimesforunder a seacharacteristics.
AndherewegotTA, whichisaddressaccessTime T A C s, whichhaschipselecttoaccesstimeand T o E, whichisoutputunabletooutputvalid.
Andeachofthosehas a coupleoftimes, dependingonwhichactual, particularvarietyofthechipwereusing.
And I think I'm usingtheDashsevenversionoractuallysaysDash 70.
But I I thinkthatmeanswe'relookingatthismiddlecolumnhere, theDashseven.
Well, thedatasheetforthe 65 02 alsohas a timingdiagram, andwecouldtake a lookatthattoseewhatitexpects.
And I havetosaythistimingdiagramhereis a littlebitconfusingwhenyoufirstlookatitbecausethey'veessentiallytriedtocombine a bunchofdifferentscenariosinto a singletimingdiagram.
Soitcouldbe a littlebitchallengingtofigureoutexactlywhatpartswecareabout.
Andthen, ofcourse, it's at 500 a second's theclockpulsegoesupandthenbackdownagainin 1000 andeightsecondsandthenourdatahastobesetupbecausethedatasetuptimeis a minimumof 10 nanoseconds.
Well, ifwelookhere, there's a notescolumnandnotefordownhere, says a rightoccursduringtheoverlapof a lowchipselectand a lowrightenable a rightbeginsatthelatesttransitionofchipslikegoingloworrightenablegoingloandthen a rightendsattheearliesttransitionofchips.
Select, goinghighorright, enablegoinghigh.
Sothissays a rightoccursduringtheoverlapoflowchipselectandlowrightenable.
And I said, There's zeroNanaseconds, butthelimitationthat's that's publishedhereisactuallythattheyare a minimumofzeroNanaseconds, andthat's that's reallyimportant.
So, youknow, address 14 ofcourse, needstobezeroinorderforustobeaddressing a ramand 15 alsoneedstobezero.
Andsowhat I'm doingis I'm invertingithere.
Sowhenaddress 15 is a zero, thenthiswillbe a oneoverhere.
I'm justusing a NANDgatetoinvertbecauseweactuallyalreadyhavethisinourcircuit, andthen I'm endingthatwiththeclock.
Soiftheclockishighandthisishigh, whichmeans I just 15 to 0, thenthisNANDgatewilloutput a zero, whichwill, youknow, becauseChipSelectisactivelowwillselectthechip.
Soinsteadofhaving 1000 and a secondtoworkwith, we'd haveyouknowsomethingless.
Ifwewantedtorunthisfaster, thosethingscouldstarttocause a problem.
Soifwereallywantedto, youknow, get a CZmuchspeedaswellaswecouldoutoftheprocessor, thenyouknow, wewouldhavetoWehavetopaymoreattentiontothis, butbyplanningtorunitatonemegahertzhas a nice, safespeedwherethisisgonnabequitesafe.