-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfa.v
More file actions
29 lines (29 loc) · 629 Bytes
/
fa.v
File metadata and controls
29 lines (29 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 11/28/2018 03:03:07 PM
// Design Name:
// Module Name: fa
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
//full adder
module fa(a, b, c,s, c_out);
input a,b,c;
output s,c_out;
ha first(a,b,c1,s1);
ha second(s1,c,c2,s2);
assign s=s2;
assign c_out= c1 | c2;
endmodule