|
|
|
|
|
|
|
|
|
|
|
|
Combinational Logic Using Switch
|
|
|
|
|
|
2:1 Mux
|
|
|
|
|
|
1 //-----------------------------------------------------
2 // Design Name : mux21_switch
3 // File Name : mux21_switch.v
4 // Function : 2:1 Mux using Switch Primitives
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
7 module mux21_switch (out, ctrl, in1, in2);
8
9 output out;
10 input ctrl, in1, in2;
11 wire w;
12
13 supply1 power;
14 supply0 ground;
15
16 pmos N1 (w, power, ctrl);
17 nmos N2 (w, ground, ctrl);
18
19 cmos C1 (out, in1, w, ctrl);
20 cmos C2 (out, in2, ctrl, w);
21
22 endmodule
You could download file mux21_switch.v here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 1998-2014 |
Deepak Kumar Tala - All rights reserved |
Do you have any Comment? mail me at:deepak@asic-world.com
|
|