URL
https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk
[/] [apbtoaes128/] [trunk/] [rtl/] [mix_columns.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 80... |
Line 80... |
output [31:0] mix_out_dec,
|
output [31:0] mix_out_dec,
|
// INPUTS
|
// INPUTS
|
input [31:0] mix_in
|
input [31:0] mix_in
|
);
|
);
|
|
|
localparam SIZE = 32;
|
localparam integer SIZE = 32;
|
localparam WORD_SIZE = 8;
|
localparam integer WORD_SIZE = 8;
|
localparam NUM_WORDS = 4;
|
localparam integer NUM_WORDS = 4;
|
|
|
wire [WORD_SIZE - 1 : 0] col [0 : NUM_WORDS - 1];
|
wire [WORD_SIZE - 1 : 0] col [0 : NUM_WORDS - 1];
|
wire [WORD_SIZE - 1 : 0] sum_p[0 : NUM_WORDS - 1];
|
wire [WORD_SIZE - 1 : 0] sum_p[0 : NUM_WORDS - 1];
|
wire [WORD_SIZE - 1 : 0] y [0 : NUM_WORDS - 2];
|
wire [WORD_SIZE - 1 : 0] y [0 : NUM_WORDS - 2];
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.