URL
https://opencores.org/ocsvn/csa/csa/trunk
[/] [csa/] [trunk/] [bench/] [block_decypher_tb.v] - Diff between revs 17 and 24
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 17 |
Rev 24 |
// this is the test bench for block_decypher module
|
// this is the test bench for block_decypher module
|
|
|
`timescale 10ns/1ns
|
`timescale 10ns/1ns
|
module block_decypher_tb;
|
module block_decypher_tb;
|
reg [64*8-1:0] tt;
|
reg [64*8-1:0] tt;
|
reg [56*8-1:0] kk;
|
reg [56*8-1:0] kk;
|
reg [8*8-1:0] ib;
|
reg [8*8-1:0] ib;
|
wire [8*8-1:0] bd;
|
wire [8*8-1:0] bd;
|
|
|
initial
|
initial
|
begin
|
begin
|
$read_data(
|
$read_data(
|
"../test_dat/block_decypher.in"
|
"../test_dat/block_decypher.in"
|
,tt
|
,tt
|
);
|
);
|
|
|
kk=tt [64*8-1:8*8];
|
kk=tt [64*8-1:8*8];
|
ib=tt [8*8-1:0];
|
ib=tt [8*8-1:0];
|
|
|
#10;
|
#10;
|
|
|
$write_data(
|
$write_data(
|
"../test_dat/block_decypher.out.v"
|
"../test_dat/block_decypher.out.v"
|
,"w"
|
,"w"
|
,bd
|
,bd
|
);
|
);
|
`ifdef DEBUG
|
`ifdef DEBUG
|
$write_data(
|
$write_data(
|
"../test_dat/block_decypher.out.v"
|
"../test_dat/block_decypher.out.v"
|
,"a"
|
,"a"
|
,kk
|
,kk
|
);
|
);
|
$write_data(
|
$write_data(
|
"../test_dat/block_decypher.out.v"
|
"../test_dat/block_decypher.out.v"
|
,"a"
|
,"a"
|
,ib
|
,ib
|
);
|
);
|
`endif
|
`endif
|
|
|
end
|
end
|
|
|
block_decypher b(
|
block_decypher b(
|
.kk(kk)
|
.kk(kk)
|
,.ib(ib)
|
,.ib(ib)
|
,.bd(bd)
|
,.bd(bd)
|
);
|
);
|
endmodule
|
endmodule
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.