Template: 1-to-8 Demultiplexer
Eight-output demultiplexer with 3-bit address selection. Advanced data routing for complex systems.
배울 내용
- Use a 3-bit select to route one input to one of 8 outputs.
- Read the 1-to-8 DEMUX truth table — only one output equals D at a time.
- Recognise that a 1-to-8 DEMUX with D=1 is a 3-to-8 decoder.
- Build 1-to-8 from a tree of 1-to-2 or 1-to-4 stages.
- Apply for 8-bank memory routing and 8-way chip-select fan-out.
작동 원리
A 1-to-8 demultiplexer routes one data input to one of eight outputs (Y0–Y7), based on a 3-bit select code (S2 S1 S0). Three select bits address 2³ = 8 outputs.
For each output Yi, Yi = (matching minterm of S2S1S0) · D. Only one output reflects D; the other seven are 0.
A 1-to-8 DEMUX is the natural building block for 8-way routing: 8 memory banks, 8 peripheral chip-selects, 8 channels of TDM. With D held high it becomes a 3-to-8 decoder.
Gate-count comparison: a 1-to-8 DEMUX is about 8 ANDs plus a 3-to-8 select decoder (8 minterms × 3 ANDs each, with the 3 inverters shared). Total ~24 transistor-equivalent gates. Larger than a 1-to-2 (one AND), smaller than a 32-row mux.
The key practical insight: as N grows, DEMUX cost grows linearly (one output AND per output) plus the decoder's logarithmic depth. They scale gracefully.
진리표
Showing all 8 select codes with D=1 to see which output activates each time.
| 입력 | 출력 | |||
|---|---|---|---|---|
| S2 | S1 | S0 | Active Output | |
| 0 | 0 | 0 | 1 | Y0 = D |
| 0 | 0 | 1 | 1 | Y1 = D |
| 0 | 1 | 0 | 1 | Y2 = D |
| 0 | 1 | 1 | 1 | Y3 = D |
| 1 | 0 | 0 | 1 | Y4 = D |
| 1 | 0 | 1 | 1 | Y5 = D |
| 1 | 1 | 0 | 1 | Y6 = D |
| 1 | 1 | 1 | 1 | Y7 = D — last output |
불 대수식
Where m_i is the i-th 3-variable minterm. Each output ANDs D with its unique select-code minterm.
단계별로 시도해 보세요
위 임베드에서 입력을 설정한 후, 예상 결과를 읽고 직접 확인하세요.
- 1S2 = 0 S1 = 0 S0 = 0 D = 1예상:
Y0=1, others=0관찰 포인트: Select 000 → Y0 receives D. All other outputs dark. - 2S2 = 1 S1 = 1 S0 = 1 D = 1예상:
Y7=1, others=0관찰 포인트: Select 111 → Y7. The active output walked all the way to the top. - 3S2 = 0 S1 = 1 S0 = 0 D = 0예상:
All outputs = 0관찰 포인트: Select 010 picks Y2, but D=0 so Y2 stays low. DEMUX's job is to gate D — when D is 0 nothing activates. - 4S2 = 1 S1 = 0 S0 = 1 D = 1예상:
Y5=1, others=0관찰 포인트: Select 101 = 5 in binary → Y5 lights. Try to enumerate all 8 select codes mentally.
사용된 구성 요소
실제 응용 사례
8-bank memory write routing. A 3-bit bank selector and a 1-to-8 DEMUX gates the write-enable to exactly one bank.
3-bit chip select. A microcontroller with up to 8 peripherals uses 3 address bits and a 1-to-8 DEMUX to assert exactly one chip-select line.
Octal channel switching. Audio, video, and instrumentation systems route a single source signal to one of 8 channels via DEMUXes.
Network port enable. A 4-port switch with 8-port expansion uses a 1-to-8 DEMUX in the management plane to route control commands to specific ports.
Test scan output routing. DFT scan-out chains use small DEMUXes to direct scan data to one of several scan paths during test.