-
Notifications
You must be signed in to change notification settings - Fork 19
/
AES_Decrypt_tb.v
34 lines (28 loc) · 839 Bytes
/
AES_Decrypt_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_Decrypt_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_Decrypt a(in1,key1,out1);
AES_Decrypt #(192,12,6) b(in2,key2,out2);
AES_Decrypt #(256,14,8) c(in3,key3,out3);
initial begin
$monitor("in128= %h, key128= %h ,out128= %h",in1,key1,out1);
in1=128'h69c4e0d86a7b0430d8cdb78070b4c55a;
key1=128'h000102030405060708090a0b0c0d0e0f;
#10;
$monitor("in192= %h, key192= %h ,out192= %h",in2,key2,out2);
in2=128'hdda97ca4864cdfe06eaf70a0ec0d7191;
key2=192'h000102030405060708090a0b0c0d0e0f1011121314151617;
#10;
$monitor("in256= %h, key256= %h ,out256= %h",in3,key3,out3);
in3=128'h8ea2b7ca516745bfeafc49904b496089;
key3=256'h000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f;
#10;
end
endmodule