Autosave: 2023-01-04 07:30:07
This commit is contained in:
parent
e82745bb56
commit
dcebde6849
2 changed files with 32 additions and 25 deletions
|
@ -1,25 +0,0 @@
|
|||
---
|
||||
categories:
|
||||
- Electronics
|
||||
- Hardware
|
||||
tags: [logic-gates, binary, nand-to-tetris]
|
||||
---
|
||||
|
||||
# Multiplexers (MUX)
|
||||
|
||||
A multiplexor takes two inputs (A,B) plus a third input SEL (for "select"). Applying a value to SEL toggles the output between A and B.
|
||||
|
||||
Multiplexers can be used to build larger circuits by connecting the output of one multiplexer to the input of another. They are often used to implement data selection and switching in digital systems
|
||||
|
||||
```
|
||||
if (sel==0)
|
||||
out=a
|
||||
else
|
||||
out=b
|
||||
```
|
||||
|
||||
<iframe src="https://circuitverse.org/simulator/embed/multiplexor-5406f205-8ac7-4c5b-a1ba-861c5face8d3?theme=default&display_title=false&clock_time=true&fullscreen=true&zoom_in_out=true" style="border-width:; border-style: solid; border-color:;" name="myiframe" id="projectPreview" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="400" width="600" allowFullScreen></iframe>
|
||||
|
||||
## Programable gates
|
||||
|
||||
One of the main use cases of multiplexors is to implement programmable gates. These are gates where the logic can be switched. For example an ANDMUXOR gate uses the SEL value to toggle the operation of a gate between AND and OR for its two inputs A and B
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
categories:
|
||||
- Electronics
|
||||
- Hardware
|
||||
tags: [logic-gates, binary, nand-to-tetris]
|
||||
---
|
||||
|
||||
# Multiplexers (MUX) and demultiplexers (DMUX)
|
||||
|
||||
## Multiplexer
|
||||
|
||||
> Multiplexing is the generic term used to describe the operation of sending one or more analogue or digital signals over a common transmission line at different times or speeds.
|
||||
|
||||
A multiplexer selects one of several input signals and forwards ths selected input to a single output line.
|
||||
|
||||
We have two inputs (A,B) plus a third input SEL (for "select"). Applying a value to SEL toggles the output between A and B.
|
||||
|
||||
Multiplexers can be used to build larger circuits by connecting the output of one multiplexer to the input of another. They are often used to implement data selection and switching in digital systems
|
||||
|
||||
// TODO: Add component diagram
|
||||
|
||||
### Programable gates
|
||||
|
||||
One of the main use cases of multiplexers is to implement programmable gates. These are gates where the logic can be switched. For example an ANDMUXOR gate uses the SEL value to toggle the operation of a gate between AND and OR for its two inputs A and B
|
||||
|
||||
## Demultiplexer
|
||||
|
||||
As the name suggests, a demultiplexer reverses the functionality of a multiplexer. It receives a single input and based on the selection of the SEL input it channels it to either an A or a B output.
|
||||
|
||||
We can think of it as a distributor of a value into one of several possible channels.
|
||||
|
||||
// TODO: Add component diagram
|
Loading…
Add table
Reference in a new issue