OpenCores
URL https://opencores.org/ocsvn/csa/csa/trunk

Subversion Repositories csa

[/] [csa/] [trunk/] [bench/] [key_schedule_tb.v] - Blame information for rev 15

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 simon111
// the test bench module for key_schedule
2
`timescale 10ns/1ns
3
 
4
module key_schedule_tb;
5
reg     [8*8-1:0]  ck;
6
wire    [56*8-1:0] kk;
7
        initial
8
        begin
9
 
10
        // read CK
11
        $read_data(
12
                                "../test_dat/key_schedule.in"
13
                               ,ck
14
                  );
15 15 simon111
`ifdef DEBUG
16
        $write_data(
17
                        "../test_dat/key_schedule.out.v"
18
                       ,"w"
19
                       ,ck
20
                   );
21
`endif
22 13 simon111
        #10;
23 15 simon111
`ifdef DEBUG
24
        $write_data(
25
                        "../test_dat/key_schedule.out.v"
26
                       ,"a"
27
                       ,ks.kb
28
                   );
29
`endif
30 13 simon111
 
31
        // output kk
32
        $write_data(
33
                        "../test_dat/key_schedule.out.v"
34 15 simon111
                       ,"a"
35 13 simon111
                       ,kk
36
                   );
37
                $finish;
38
        end
39
 
40
        key_schedule ks(
41
                        .i_ck(ck)
42
                       ,.o_kk(kk)
43
                        );
44
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.