URL
https://opencores.org/ocsvn/rc4-prbs/rc4-prbs/trunk
[/] [rc4-prbs/] [trunk/] [rc4_tb.v] - Diff between revs 7 and 9
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 7 |
Rev 9 |
Line 68... |
Line 68... |
|
|
|
|
/* Simulation */
|
/* Simulation */
|
integer q;
|
integer q;
|
initial begin
|
initial begin
|
for (q=0; q<`KEY_SIZE; q=q+1) password[q] = 8'h42; // initialize Key
|
password[0] = 8'h53; // 'S'
|
|
password[1] = 8'h65; // 'e'
|
|
password[2] = 8'h63; // 'c'
|
|
password[3] = 8'h72; // 'r'
|
|
password[4] = 8'h65; // 'e'
|
|
password[5] = 8'h74; // 't'
|
|
// Test vector: "Secret" --> "04 d4 6b 05 3c a8 7b 59"
|
$display ("Start...");
|
$display ("Start...");
|
clk = 0;
|
clk = 0;
|
rst = 1;
|
rst = 1;
|
clkcount =0;
|
clkcount =0;
|
password_input=password[clkcount];
|
password_input=password[clkcount];
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.