XplorEngineering
Pages
Home
Electronics
VLSI Design
Verilog HDL
Signals
Sunday, 28 December 2014
Swap / Buffer Circuit
Swap / Buffer circuit can be implemented by using a simple 2X1 Multiplexer.
Swap/Buffer circuit Verilog Code
module swap_buffer(a,b,s,out1,out2);
input a,b,s;
output out1,out2;
mux2x1 m1(.in1(a),.in2(b),.sel(s),.y(out1));
mux2x1 m2(.in1(b),.in2(a),.sel(s),.y(out2));
endmodule
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment