Update README.md
This commit is contained in:
@@ -10,7 +10,7 @@ Most of the gates also have a 16-bit version and eventually a n-way version (som
|
|||||||
Ex: a 4-way mux gate:
|
Ex: a 4-way mux gate:
|
||||||
|
|
||||||
'''v
|
'''v
|
||||||
module mux4way(out, i0, i1, i2, i3, sel0, sel1);
|
module mux4way(out, i0, i1, i2, i3, sel0, sel1);
|
||||||
input i0, i1, i2, i3;
|
input i0, i1, i2, i3;
|
||||||
input [3:0]sel;
|
input [3:0]sel;
|
||||||
output [3:0]out;
|
output [3:0]out;
|
||||||
@@ -28,7 +28,7 @@ module mux4way(out, i0, i1, i2, i3, sel0, sel1);
|
|||||||
and(tmp3, i3, sel1);
|
and(tmp3, i3, sel1);
|
||||||
|
|
||||||
or4way(out, tmp0, tmp1, tmp2, tmp3);
|
or4way(out, tmp0, tmp1, tmp2, tmp3);
|
||||||
endmodule
|
endmodule
|
||||||
'''
|
'''
|
||||||
|
|
||||||
#### Predefined gates (path: /gates/predefined)
|
#### Predefined gates (path: /gates/predefined)
|
||||||
|
|||||||
Reference in New Issue
Block a user