URL
https://opencores.org/ocsvn/csa/csa/trunk
Subversion Repositories csa
Compare Revisions
- This comparison shows the changes necessary to convert path
/csa/trunk/bench
- from Rev 46 to Rev 48
- ↔ Reverse comparison
Rev 46 → Rev 48
/key_schedule_tb.v
7,6 → 7,8
reg rst; |
reg start; |
wire [56*8-1:0] kk; |
wire done; |
wire busy; |
|
initial |
begin |
27,21 → 29,18
initial |
begin |
|
`ifdef ____DEBUG |
// read CK |
$read_data( |
"../test_dat/key_schedule.in" |
,ck |
); |
`endif |
start=1'h0; |
ck=64'haf361916fd4b4b77; |
|
repeat (4) @(posedge clk); |
start=1'h1; |
@(posedge clk); |
start=1'h0; |
repeat (200) @(posedge clk); |
repeat (20) @(posedge clk); |
|
$display("ck=%h",ck); |
$display("kk=%h",kk); |
48,21 → 47,20
|
// output kk |
|
//$write_data( |
// "../test_dat/key_schedule.out.v" |
// ,"a" |
// ,kk |
// ); |
$finish; |
$write_data( |
"../test_dat/key_schedule.out.v" |
,kk |
); |
$stop; |
end |
|
key_schedule ks( |
key_schedule key_schedule( |
.clk (clk) |
,.rst (rst) |
,.start (start) |
,.i_ck (ck) |
,.busy () |
,.done () |
,.o_kk (kk) |
,.ck (ck) |
,.busy (busy) |
,.done (done) |
,.kk (kk) |
); |
endmodule |