URL
https://opencores.org/ocsvn/csa/csa/trunk
[/] [csa/] [trunk/] [bench/] [key_perm_tb.v] - Diff between revs 12 and 15
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 12 |
Rev 15 |
|
|
// this is the testbench file for key_perm module
|
// this is the testbench file for key_perm module
|
|
|
`timescale 10ns/1ns
|
`timescale 10ns/1ns
|
module key_perm_tb;
|
module key_perm_tb;
|
|
|
integer ofile;
|
integer ofile;
|
|
|
reg [63:0]i_key;
|
reg [63:0]i_key;
|
wire [63:0]o_key;
|
wire [63:0]o_key;
|
|
|
initial
|
initial
|
begin
|
begin
|
// read the input key
|
// read the input key
|
$read_data(
|
$read_data(
|
"../test_dat/key_perm.in"
|
"../test_dat/key_perm.in"
|
,i_key
|
,i_key
|
);
|
);
|
#10;
|
#10;
|
|
|
// output the permated key
|
// output the permated key
|
$write_data(
|
$write_data(
|
"../test_dat/key_perm.out.v"
|
"../test_dat/key_perm.out.v"
|
|
,"w"
|
,o_key
|
,o_key
|
);
|
);
|
$finish;
|
$finish;
|
end
|
end
|
|
|
key_perm k(
|
key_perm k(
|
.i_key(i_key)
|
.i_key(i_key)
|
,.o_key(o_key)
|
,.o_key(o_key)
|
);
|
);
|
|
|
endmodule
|
endmodule
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.