diff --git a/experiment-descriptor.json b/experiment-descriptor.json new file mode 100644 index 0000000..8125eed --- /dev/null +++ b/experiment-descriptor.json @@ -0,0 +1,46 @@ +{ + "unit-type": "lu", + "label": "", + "basedir": ".", + "units": [ + { + "unit-type": "aim" + }, + { + "target": "theory.html", + "source": "theory.md", + "label": "Theory", + "unit-type": "task", + "content-type": "text" + }, + { + "target": "objective.html", + "source": "objective.md", + "label": "Objective", + "unit-type": "task", + "content-type": "text" + }, + { + "target": "procedure.html", + "source": "procedure.md", + "label": "Procedure", + "unit-type": "task", + "content-type": "text" + }, + { + "target": "simulation.html", + "source": "simulation/index.html", + "label": "Simulation", + "unit-type": "task", + "content-type": "simulation" + }, + { + "target": "assignment.html", + "source": "assignment.md", + "label": "Assignment", + "unit-type": "task", + "content-type": "text" + } + ] +} + diff --git a/experiment/aim.md b/experiment/aim.md index 4bc1c54..12b7abe 100644 --- a/experiment/aim.md +++ b/experiment/aim.md @@ -1 +1,4 @@ -### Aim of the experiment +This module explains how to build a 4 X 1 Multiplexer.In electronics, a multiplexer or mux is a device that selects one of several analog or digital input signals and forwards the selected input into a single line. Multiplexers were logically designed and used as electronic selector switches. A multiplexer of 2n inputs has n select lines, which are used to select which input line to send to the output. Multiplexers are mainly used to increase the amount of data that can be sent over the network within a certain amount of time and bandwidth. On the other hand, a demultiplexer (or demux) is a device taking a single input signal and selecting one of many data-output-lines, which is connected to the single input. A multiplexer is often used with a complementary demultiplexer on the receiving end + + + diff --git a/experiment/assignment.md b/experiment/assignment.md new file mode 100644 index 0000000..c4b2dca --- /dev/null +++ b/experiment/assignment.md @@ -0,0 +1,5 @@ +1) Design 2:1, 4:1 and 8:1 multiplexers by referring the theory section. Save these circuits separately so that they can be imported and used for designing other things. + +2) Import two 4:1 multiplexers designed in 1st part and implement a Half adder circuit using these multiplexers. One mux will generate SUM (A ex-or B) and another mux will generate Carry (A.B). Now Implement the same using two 2:1 multiplexers. (Hint: choose any one out of A and B as the select bit for multiplexers). + +3) Import two 4:1 multiplexers designed in 1st question and design a 8:1 mux using them. You can use additional hardware to choose between the outputs of the two multiplexers. (Hint: Use 1 of the three select bits s2s1s0 as enable input for one of the 4:1 mux and its compliment for the other mux). \ No newline at end of file diff --git a/experiment/experiment-name.md b/experiment/experiment-name.md index b0d364b..843aa9f 100644 --- a/experiment/experiment-name.md +++ b/experiment/experiment-name.md @@ -1 +1 @@ -## Experiment name +## Multiplexer \ No newline at end of file diff --git a/experiment/images/2X1mux.jpg b/experiment/images/2X1mux.jpg new file mode 100755 index 0000000..dd05a3d Binary files /dev/null and b/experiment/images/2X1mux.jpg differ diff --git a/experiment/images/multiplexer.gif b/experiment/images/multiplexer.gif new file mode 100755 index 0000000..5376d09 Binary files /dev/null and b/experiment/images/multiplexer.gif differ diff --git a/experiment/images/mux4.png b/experiment/images/mux4.png new file mode 100755 index 0000000..f342870 Binary files /dev/null and b/experiment/images/mux4.png differ diff --git a/experiment/objective.md b/experiment/objective.md new file mode 100644 index 0000000..32b42e4 --- /dev/null +++ b/experiment/objective.md @@ -0,0 +1,3 @@ +1. The objective of this experiment is to make various multiplexers. +2. First of all make 2 bits multiplexer then use it to make 4 bits multiplexer. + diff --git a/experiment/posttest.json b/experiment/posttest.json deleted file mode 100644 index 6edba59..0000000 --- a/experiment/posttest.json +++ /dev/null @@ -1,18 +0,0 @@ -[ -{"question":"This is a Sample Question 1?", -"answers":{ - "a":"answer1", - "b":"answer2", - "c":"answer3", - "d":"answer4" - }, -"correctAnswer":"a"}, -{"question":"This is a Sample Question 2?", -"answers":{ - "a":"answer1", - "b":"answer2", - "c":"answer3", - "d":"answer4" - }, -"correctAnswer":"c"} -] diff --git a/experiment/pretest.json b/experiment/pretest.json deleted file mode 100644 index 6edba59..0000000 --- a/experiment/pretest.json +++ /dev/null @@ -1,18 +0,0 @@ -[ -{"question":"This is a Sample Question 1?", -"answers":{ - "a":"answer1", - "b":"answer2", - "c":"answer3", - "d":"answer4" - }, -"correctAnswer":"a"}, -{"question":"This is a Sample Question 2?", -"answers":{ - "a":"answer1", - "b":"answer2", - "c":"answer3", - "d":"answer4" - }, -"correctAnswer":"c"} -] diff --git a/experiment/procedure.md b/experiment/procedure.md index 37929cc..3ebb852 100644 --- a/experiment/procedure.md +++ b/experiment/procedure.md @@ -1 +1,6 @@ -### Procedure \ No newline at end of file +1. With The help of Theory Page , try to build the Multiplexer Circuit. +2. First of all build the 2 X 1 Multiplexer. +3. Then use it to build the 8 X 1 multiplexer. +4. If You are unable to make it , load or export the circuit directly and use it. +5. There is an import feature, which lets you construct building blocks. Click on import and then click on circuit board to see the imported block. For more details, refer import section in manual. + diff --git a/experiment/references.md b/experiment/references.md deleted file mode 100644 index b15b47e..0000000 --- a/experiment/references.md +++ /dev/null @@ -1 +0,0 @@ -### Link your references in here \ No newline at end of file diff --git a/experiment/simulation/DLDVirtualLabs.jar b/experiment/simulation/DLDVirtualLabs.jar new file mode 100755 index 0000000..cf1af70 Binary files /dev/null and b/experiment/simulation/DLDVirtualLabs.jar differ diff --git a/experiment/simulation/exp2.html b/experiment/simulation/exp2.html new file mode 100755 index 0000000..ddbd4d8 --- /dev/null +++ b/experiment/simulation/exp2.html @@ -0,0 +1,26 @@ +
+ + + + + + + diff --git a/experiment/simulation/index.html b/experiment/simulation/index.html index ee9be23..9b49095 100644 --- a/experiment/simulation/index.html +++ b/experiment/simulation/index.html @@ -7,6 +7,8 @@ +Click here to perform the experiment.
+ diff --git a/experiment/theory.md b/experiment/theory.md index ef57af9..4caea75 100644 --- a/experiment/theory.md +++ b/experiment/theory.md @@ -1 +1,38 @@ -### Link your theory in here \ No newline at end of file + An electronic multiplexer can be considered as a multiple-input, single-output switch, and a demultiplexer as a single-input, multiple-output switch. + +2 X 1 Multiplexer +In digital circuit design, the selector wires are of digital value. In the case of a 2-to-1 multiplexer, a logic value of 0 would connect I0 to the output while a logic value of 1 would connect I1 to the output. In larger multiplexers, the number of selector pins is equal to log2(n) where n is the number of inputs. + + + +A 2-to-1 multiplexer has a boolean equation where A and B are the two inputs, S is the selector input, and Z is the output: Z = ( A . S') + (B . S) + +**Truth Table** + +|S|A|B|Z| +|-|-|-|-| +|0|1|1|1| +|0|1|0|1| +|0|0|1|0| +|0|0|0|0| +|1|1|1|1| +|1|1|0|0| +|1|0|1|1| +|1|0|0|0| + +4 X 1 Multiplexer +Larger multiplexers are also common and requires ceil(log2(n)) selector pins for n inputs. Other common sizes are 4-to-1, 8-to-1, and 16-to-1. Since digital logic uses binary values, powers of 2 are used (4, 8, 16) to maximally control a number of inputs for the given number of selector inputs. + + + +**Truth Table** + +|S1 S0 | x3 x2 x1 x0 | y | +| 0 0 | x x x 0 | 0 | +| 0 0 | x x x 1 | 1 | +| 0 1 | x x 0 x | 0 | +| 0 1 | x x 1 x | 1 | +| 1 0 | x 0 x x | 0 | +| 1 0 | x 1 x x | 1 | +| 1 1 | 0 x x x | 0 | +| 1 1 | 1 x x x | 1 | \ No newline at end of file