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

Subversion Repositories aes_beh_model

[/] [aes_beh_model/] [trunk/] [bench/] [verilog/] [aes_beh_model_decrypt_tb.sv] - Diff between revs 2 and 3

Show entire file | Details | Blame | View Log

Rev 2 Rev 3
Line 39... Line 39...
//// Public License along with this source; if not, download it         ////
//// Public License along with this source; if not, download it         ////
//// from http://www.opencores.org/lgpl.shtml                                           ////
//// from http://www.opencores.org/lgpl.shtml                                           ////
////                                                                                                                            ////
////                                                                                                                            ////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
 
 
// This is a testbench for verification of the aes behavioral model against
// This is a testbench for verification of the aes descryption model against
// selected test vectors in FIPS-197, SP800-38a, and AESAVS. 128/192/256-bit
// selected test vectors in FIPS-197, SP800-38a, and AESAVS. 128/192/256-bit
// decryption models are tested. Each model is tested with the following
// decryption models are tested. Each model is tested with the following
// vectors
// vectors
//
//
// - FIPS-197 sample vector test. FIPS-197 appendix C.
// - FIPS-197 sample vector test. FIPS-197 appendix C.
// - ECB-AES128.Decrypt sample vector test. SP800-38a appendix F.
// - ECB-AES128/192/256.Decrypt sample vector test. SP800-38a appendix F.
// - GFSbox Known Answer Test vectors. AESAVS appendix B.
// - GFSbox Known Answer Test vectors. AESAVS appendix B.
// - KeySbox Known Answer Test. AESAVS appendix C.
// - KeySbox Known Answer Test. AESAVS appendix C.
// - VarTxt Known Answer Test. AESAVS appendix D.
// - VarTxt Known Answer Test. AESAVS appendix D.
// - VarKey Known Answer Test. AESAVS appendix E.
// - VarKey Known Answer Test. AESAVS appendix E.
 
 
Line 63... Line 63...
        aes256_decrypt_t decrypt256;
        aes256_decrypt_t decrypt256;
 
 
        logic   [0:127] pt;
        logic   [0:127] pt;
 
 
        // Test vector file
        // Test vector file
        `include "decrypt_vec.sv"
        `include "aes_vec.sv"
 
 
        initial
        initial
        begin
        begin
                //--------------------------------------------------------------------------------
                //--------------------------------------------------------------------------------
                //
                //

powered by: WebSVN 2.1.0

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