Theory
પાતળી copper ની સડકો
shop પર પાછા આવીને Chirag એક motherboard ને light સામે ધરે છે. CPU socket અને RAM slots વચ્ચે વાળ જેવી પાતળી સેંકડો copper lines ફેલાયેલી છે.
એ કહે છે, "RAM અહીં છે, processor ત્યાં છે, 2 centimetre છેટે. તમને એક સવાલ: CPU ને RAM માં stored કોઈ એક number જોઈએ છે, ત્યારે એ request physically કઈ રીતે મુસાફરી કરે છે?"
એ જ copper lines પરથી. એને buses કહે છે, અને એના 4 પ્રકાર છે, દરેકનું એક જ કામ.
Theory
એક courier delivery
દરેક courier delivery ને 4 વસ્તુ જોઈએ: address slip (ક્યાં જવાનું છે), પોતે parcel (શું મોકલવાનું છે), instructions (bell વગાડો, signature લો, receipt પાછી આપો), અને van માટે fuel. હવે એની જગ્યાએ મૂકો: address bus, data bus, control bus, power bus. એક જ delivery, 4 અલગ અલગ role, અને એ ક્યારેય ભેગા ના થવા જોઈએ.
At a glance
ચારેય buses એક નજરમાં
| Bus | શું લઈ જાય | Direction |
|---|---|---|
| Address bus | read/write કરવાની location | One-way: CPU → memory |
| Data bus | ખરેખરો data | Two-way: CPU ↔ memory |
| Control bus | Commands અને timing (read, write) | બંને દિશામાં signals |
| Power bus | components ને વીજળી | power supply થી બહાર તરફ |
Theory
Width કેમ મહત્વનું છે
એક bus એ parallel lines નું bundle છે, અને lines ની સંખ્યા એટલે એની width.
- 32 lines પહોળો data bus એક જ વારમાં 32 bits move કરે; 64 lines એક trip માં double move કરે.
- n lines પહોળો address bus 2ⁿ અલગ અલગ locations ને point કરી શકે. 32 lines સાથે: 2³² addresses, એટલે લગભગ 4 GB જેટલું.
આ છેલ્લી વાત જ કારણ છે કે જૂના 32-bit computers 4 GB થી વધારે RAM વાપરી શકતા નહોતા, અને આ shop પર customer ના ખરેખરા સવાલનો ખરેખરો જવાબ છે.
Quiz
કયો bus unidirectional (one-way) છે?
- Address bus
- Data bus
- Control bus
- બધા buses two-way છે
Show the answer
Address bus
ફક્ત CPU જ addresses announce કરે છે; memory ક્યારેય address પાછો મોકલતી નથી, એટલે address bus એક જ દિશામાં ચાલે, CPU → memory. Data bus તો two-way હોવો જ પડે (reading માં data અંદર આવે, writing માં બહાર જાય). આ one-way/two-way ની જોડી exam માં સૌથી વધારે પુછાતો bus નો સવાલ છે.
Think first
જરા વિચારો
Data bus two-way કેમ હોવો જ પડે? CPU memory પર જે 2 operations કરે છે એ મનમાં ચિતરો.
Show the answer
Read અને write. Reading માં data memory માંથી CPU માં આવે; writing માં results CPU માંથી memory માં જાય. એ જ wires, બંને દિશા. અને આ 2 માંથી કયું ચાલી રહ્યું છે એ control bus પોતાના read/write signal થી announce કરે છે, જેથી memory ને ખબર પડે કે એણે બોલવાનું છે કે સાંભળવાનું.
Watch out
અહીં marks કપાય છે
Directions અદલાબદલી કરી નાખવી: "address bus is bidirectional" લખવું એ classic ભૂલ છે. આમ યાદ રાખો: addresses ફક્ત CPU જ announce કરે છે, એટલે one-way; data બંને દિશામાં વહે છે, એટલે two-way. બીજી ભૂલ: width ને "speed" કહી દેવી. Width એટલે એક trip માં કેટલા bits જાય, નહીં કે trips કેટલી ઝડપથી થાય.
Theory
આ word તો તમે વાપરો જ છો
USB નું પૂરું નામ છે Universal Serial Bus, એ જ idea external devices માટે standardise કરેલો. અને પેલો 2ⁿ addressing નો rule એ binary નો તમારો પહેલો ખરેખરો ફાયદો છે (2 topics પછી Number Systems માં આવે છે): Chirag machine વેચે ત્યારે 32-bit vs 64-bit ની આખી વાત address bus પર two ની powers ને લીધે જ મહત્વની બને છે.
Summary
Key takeaways
- Buses એ CPU, memory અને devices ને જોડતા shared wire highways છે.
- Address bus: ક્યાં (one-way, CPU → memory).
- Data bus: શું (two-way, read અને write).
- Control bus: ક્યારે અને કેવી રીતે (read/write અને timing signals).
- Power bus: વીજળીનું distribution.
- n address lines 2ⁿ locations સુધી પહોંચે; width = એક trip માં bits.
- યાદ રાખવાની hook: address slip, parcel, instructions, fuel.