verilog
This commit is contained in:
12
labs/lab3_solution/fa.v
Normal file
12
labs/lab3_solution/fa.v
Normal file
@ -0,0 +1,12 @@
|
||||
module fa(
|
||||
input X, Y, Z,
|
||||
output S, C
|
||||
);
|
||||
|
||||
wire W0, W1, W2;
|
||||
|
||||
ha h0(X, Y, W0, W1);
|
||||
ha h1(W0, Z, S, W2);
|
||||
or(C, W1, W2);
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user