Splitter (Bus→Bits)
Inputs
| Pin | Type | Description |
|---|---|---|
| IN | bus8 | 8-bit input bus (value 0–255) |
Outputs
| Pin | Type | Description |
|---|---|---|
| Bit0 | bit | Least significant bit (weight 1) |
| Bit1 | bit | Weight 2 |
| Bit2 | bit | Weight 4 |
| Bit3 | bit | Weight 8 |
| Bit4 | bit | Weight 16 |
| Bit5 | bit | Weight 32 |
| Bit6 | bit | Weight 64 |
| Bit7 | bit | Most significant bit (weight 128) |
How It Works
Splitter decomposes an 8-bit byte into 8 individual bits. Bit0 is the least significant bit (LSB), Bit7 is the most significant bit (MSB).
The Splitter is the mirror component to Maker (Bits→Bus). Together they allow working with individual bits of a byte.
Example
| Input (decimal) | Input (binary) | Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|---|---|
| 170 | 10101010 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| 21 | 00010101 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
Usage
Essential for the processor — used to extract the opcode (bits 4–7) and operand (bits 0–3) from an instruction byte coming from ROM. Also used in the Decoder to generate control signals from the opcode.