-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadder.v
More file actions
25 lines (21 loc) · 1.14 KB
/
adder.v
File metadata and controls
25 lines (21 loc) · 1.14 KB
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
////////////////////////////////////////////////////////////////////////////////////////////////
// This source is dedicated to the research paper enttled //
// "An 8-bit Serialized Architecture of SEED Block Cipher for Constrained Devices" //
// on IET Circuits, Devices & Systems journal //
// Authors : Lampros Pyrgas, Filippos Pirpilidis and Paris Kitsos //
// Institute: University of the Peloponnese //
// Department: Electrical and Computer Engineering //
// //
// This source is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. //
////////////////////////////////////////////////////////////////////////////////////////////////
module adder(
input [7:0] A,
input [7:0] B,
input c_in,
output [7:0] Sum,
output c_out
);
wire [8:0] S = (A + B + c_in) ;
assign Sum = S[7:0];
assign c_out = S[8];
endmodule