rearrangement
This commit is contained in:
13
iverilog/tobb/lab2/fulladder.v
Normal file
13
iverilog/tobb/lab2/fulladder.v
Normal file
@ -0,0 +1,13 @@
|
||||
module fullAdder (
|
||||
input A,
|
||||
input B,
|
||||
input Cin,
|
||||
output S,
|
||||
output Cout
|
||||
);
|
||||
wire AxB, AnB1, AnB2;
|
||||
halfadder h1(A, B, AxB, AnB2);
|
||||
halfadder h2(AxB, Cin, S, AnB1);
|
||||
|
||||
or o1(Cout, AnB1, AnB2);
|
||||
endmodule
|
Reference in New Issue
Block a user