OpenCores
URL https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk

Subversion Repositories apbtoaes128

[/] [apbtoaes128/] [trunk/] [rtl/] [shift_rows.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 [127 : 0] data_out_dec,  // Result after Shift Rows operation - dec
        output [127 : 0] data_out_dec,  // Result after Shift Rows operation - dec
        //INPUTS
        //INPUTS
        input  [127 : 0] data_in        // Input Bus
        input  [127 : 0] data_in        // Input Bus
);
);
 
 
localparam BUS_WIDTH = 128;  // Bus Width
localparam integer BUS_WIDTH = 128;  // Bus Width
localparam ST_WORD   =   8;  // Data Size of word in State MAtrix
localparam integer ST_WORD   =   8;  // Data Size of word in State MAtrix
localparam ST_LINE   =   4;  // Number of Lines of State Matrix
localparam integer ST_LINE   =   4;  // Number of Lines of State Matrix
localparam ST_COL    =   4;  // Number of Columns of State Matrix
localparam integer ST_COL    =   4;  // Number of Columns of State Matrix
 
 
wire [ST_WORD - 1 : 0] state[0 : ST_LINE - 1][0 : ST_COL - 1];
wire [ST_WORD - 1 : 0] state[0 : ST_LINE - 1][0 : ST_COL - 1];
wire [ST_WORD - 1 : 0] state_sft_l[0 : ST_LINE - 1][0 : ST_COL - 1];
wire [ST_WORD - 1 : 0] state_sft_l[0 : ST_LINE - 1][0 : ST_COL - 1];
wire [ST_WORD - 1 : 0] state_sft_r[0 : ST_LINE - 1][0 : ST_COL - 1];
wire [ST_WORD - 1 : 0] state_sft_r[0 : ST_LINE - 1][0 : ST_COL - 1];
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.