URL
https://opencores.org/ocsvn/rc4-prbs/rc4-prbs/trunk
Subversion Repositories rc4-prbs
Compare Revisions
- This comparison shows the changes necessary to convert path
/rc4-prbs/trunk
- from Rev 4 to Rev 5
- ↔ Reverse comparison
Rev 4 → Rev 5
/rc4_tb.v
35,16 → 35,15
|
reg clk, rst; // clock, reset |
wire output_ready; // output ready (valid) |
|
wire [7:0] K; // output |
reg [7:0] password_input; //input |
//wire [7:0] Kreg; // output |
|
//assign Kreg=K; |
/* Clocking device */ |
always #(tck/2) |
clk = ~clk; |
|
|
/* Password loader and info display*/ |
integer clkcount; |
always @ (posedge clk) |
begin |
/rc4.v
90,7 → 90,7
j <= (j + S[i] + key[i % `KEY_SIZE]); |
KSState <= `KSS_KEYSCHED3; |
end |
`KSS_KEYSCHED3: begin |
`KSS_KEYSCHED3: begin // KSS_KEYSCHED3: S array permutation |
S[i]<=S[j]; |
S[j]<=S[i]; |
if (i == 8'hFF) |
105,7 → 105,8
end |
end |
|
`KSS_CRYPTO: begin // It was all nicely pipelined until this point where I don't care anymore |
`KSS_CRYPTO: begin // KSS_CRYPTO: Output crypto stream |
// It was all nicely pipelined until this point where I don't care anymore |
i = i + 1; |
j = (j + S[i]); |
temp = S[j]; |