forked from michaelehab/AES-Verilog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AES_Encrypt_tb.v
34 lines (28 loc) · 869 Bytes
/
AES_Encrypt_tb.v
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
30
31
32
33
34
module AES_Encrypt_tb;
reg [127:0] in1;
wire [127:0] out1;
reg [127:0] key1;
reg [127:0] in2;
wire [127:0] out2;
reg [191:0] key2;
reg [127:0] in3;
wire [127:0] out3;
reg [255:0] key3;
AES_Encrypt a(in1,key1,out1);
AES_Encrypt #(192,12,6) b(in2,key2,out2);
AES_Encrypt #(256,14,8) c(in3,key3,out3);
initial begin
$monitor("in128= %h, key128= %h ,out128= %h",in1,key1,out1);
in1=128'h_3243f6a8_885a308d_313198a2_e0370734;
key1=128'h_2b7e1516_28aed2a6_abf71588_09cf4f3c;
#10;
$monitor("in192= %h, key192= %h ,out192= %h",in2,key2,out2);
in2=128'h_00112233_44556677_8899aabb_ccddeeff;
key2=192'h_00010203_04050607_08090a0b_0c0d0e0f_10111213_14151617;
#10;
$monitor("in256= %h, key256= %h ,out256= %h",in3,key3,out3);
in3=128'h_00112233_44556677_8899aabb_ccddeeff;
key3=256'h_00010203_04050607_08090a0b_0c0d0e0f_10111213_14151617_18191a1b_1c1d1e1f;
#10;
end
endmodule