URL
https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk
[/] [apbtoaes128/] [trunk/] [rtl/] [key_expander.v] - Diff between revs 3 and 7
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 7 |
Line 3... |
Line 3... |
////
|
////
|
//// AES CORE BLOCK
|
//// AES CORE BLOCK
|
////
|
////
|
////
|
////
|
////
|
////
|
//// This file is part of the APB to AES128 project
|
//// This file is part of the APB to I2C project
|
////
|
////
|
//// http://www.opencores.org/cores/apbtoaes128/
|
//// http://www.opencores.org/cores/apbi2c/
|
////
|
////
|
////
|
////
|
////
|
////
|
//// Description
|
//// Description
|
////
|
////
|
Line 84... |
Line 84... |
input [ 3:0] round,
|
input [ 3:0] round,
|
input add_w_out,
|
input add_w_out,
|
input enc_dec
|
input enc_dec
|
);
|
);
|
|
|
localparam KEY_WIDTH = 32;
|
localparam integer KEY_WIDTH = 32;
|
localparam KEY_NUM = 4;
|
localparam integer KEY_NUM = 4;
|
localparam WORD = 8;
|
localparam integer WORD = 8;
|
localparam ROUNDS = 10;
|
localparam integer ROUNDS = 10;
|
|
|
wire [KEY_WIDTH - 1 : 0] key [0 : KEY_NUM - 1];
|
wire [KEY_WIDTH - 1 : 0] key [0 : KEY_NUM - 1];
|
wire [ WORD - 1 : 0] rot_in[0 : KEY_NUM - 1];
|
wire [ WORD - 1 : 0] rot_in[0 : KEY_NUM - 1];
|
wire [KEY_WIDTH - 1 : 0] g_func;
|
wire [KEY_WIDTH - 1 : 0] g_func;
|
reg [ WORD - 1 : 0] rc_dir, rc_inv;
|
reg [ WORD - 1 : 0] rc_dir, rc_inv;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.