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

Subversion Repositories apbtoaes128

[/] [apbtoaes128/] [trunk/] [pli/] [env_aes.c] - Diff between revs 4 and 5

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 4 Rev 5
Line 176... Line 176...
#define ECB_ENCRYPTION_CCFIE             9
#define ECB_ENCRYPTION_CCFIE             9
#define ECB_DECRYPTION_CCFIE            10
#define ECB_DECRYPTION_CCFIE            10
#define ECB_DERIVATION_DECRYPTION_CCFIE 11
#define ECB_DERIVATION_DECRYPTION_CCFIE 11
#define ECB_KEY_GEN_CCFIE               12
#define ECB_KEY_GEN_CCFIE               12
 
 
 
/*TEST USING CBC*/
 
 
 
#define CBC_ENCRYPTION                  13
 
#define CBC_DECRYPTION                  14
 
#define CBC_KEY_GEN                     15
 
#define CBC_DERIVATION_DECRYPTION       16
 
 
 
#define CBC_ENCRYPTION_DMA              17
 
#define CBC_DECRYPTION_DMA              18
 
#define CBC_KEY_GEN_DMA                 19
 
#define CBC_DERIVATION_DECRYPTION_DMA   20
 
 
 
#define CBC_ENCRYPTION_CCFIE            21
 
#define CBC_DECRYPTION_CCFIE            22
 
#define CBC_DERIVATION_DECRYPTION_CCFIE 23
 
#define CBC_KEY_GEN_CCFIE               24
 
 
 
/*TEST USING CTR*/
 
#define CTR_ENCRYPTION                  25
 
#define CTR_DECRYPTION                  26
 
#define CTR_KEY_GEN                     27
 
#define CTR_DERIVATION_DECRYPTION       28
 
 
 
#define CTR_ENCRYPTION_DMA              29
 
#define CTR_DECRYPTION_DMA              30
 
#define CTR_KEY_GEN_DMA                 31
 
#define CTR_DERIVATION_DECRYPTION_DMA   32
 
 
 
#define CTR_ENCRYPTION_CCFIE            33
 
#define CTR_DECRYPTION_CCFIE            34
 
#define CTR_DERIVATION_DECRYPTION_CCFIE 35
 
#define CTR_KEY_GEN_CCFIE               36
 
 
/*TYPE CONFIGURATION USED TO INSERT DATA ON DUT*/
/*TYPE CONFIGURATION USED TO INSERT DATA ON DUT*/
#define FIPS 0
#define FIPS 0
#define RANDOM_DATA 1
#define RANDOM_DATA 1
 
 
 
 
Line 194... Line 227...
unsigned char KEY_FIPS_NOT_DERIVATED[]  = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F};
unsigned char KEY_FIPS_NOT_DERIVATED[]  = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F};
 
 
unsigned char TEXT_FIPS_DERIVATED[]     = {0x69,0xC4,0xE0,0xD8,0x6A,0x7B,0x04,0x30,0xD8,0xCD,0xB7,0x80,0x70,0xB4,0xC5,0x5A};
unsigned char TEXT_FIPS_DERIVATED[]     = {0x69,0xC4,0xE0,0xD8,0x6A,0x7B,0x04,0x30,0xD8,0xCD,0xB7,0x80,0x70,0xB4,0xC5,0x5A};
unsigned char KEY_FIPS_DERIVATED[]      = {0x13,0x11,0x1D,0x7F,0xE3,0x94,0x4A,0x17,0xF3,0x07,0xA7,0x8B,0x4D,0x2B,0x30,0xC5};
unsigned char KEY_FIPS_DERIVATED[]      = {0x13,0x11,0x1D,0x7F,0xE3,0x94,0x4A,0x17,0xF3,0x07,0xA7,0x8B,0x4D,0x2B,0x30,0xC5};
 
 
 
 
 
unsigned char KEY_FIPS_CBC_NOT_DERIVATED[]  = {0x2B,0x7E,0x15,0x16,0x28,0xAE,0xD2,0xA6,0xAB,0xF7,0x15,0x88,0x09,0xCF,0x4F,0x3C};
 
unsigned char IV_FIPS_CBC_NOT_DERIVATED[]   = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F};
 
unsigned char TEXT_FIPS_CBC_NOT_DERIVATED[] = {0x6B,0xC1,0xBE,0xE2,0x2E,0x40,0x9F,0x96,0xE9,0x3D,0x7E,0x11,0x73,0x93,0x17,0x2A};
 
 
 
 
 
unsigned char TEXT_CBC_FIPS_DERIVATED[]     = {0x76,0x49,0xAB,0xAC,0x81,0x19,0xB2,0x46,0xCE,0xE9,0x8E,0x9B,0x12,0xE9,0x19,0x7D};
 
 
 
 
 
unsigned char KEY_FIPS_CTR_NOT_DERIVATED[]  = {0x2B,0x7E,0x15,0x16,0x28,0xAE,0xD2,0xA6,0xAB,0xF7,0x15,0x88,0x09,0xCF,0x4F,0x3C};
 
unsigned char IV_FIPS_CTR_NOT_DERIVATED[]   = {0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
 
unsigned char TEXT_FIPS_CTR_NOT_DERIVATED[] = {0x6B,0xC1,0xBE,0xE2,0x2E,0x40,0x9F,0x96,0xE9,0x3D,0x7E,0x11,0x73,0x93,0x17,0x2A};
 
 
 
unsigned char TEXT_CTR_FIPS_DERIVATED[]     = {0x87,0x4D,0x61,0x91,0xB6,0x20,0xE3,0x26,0x1B,0xEF,0x68,0x64,0x99,0x0D,0xB6,0xCE};
 
 
/*BFM CONTROL FLOW*/
/*BFM CONTROL FLOW*/
#include "aes_bfm_generate.h"
#include "aes_bfm_generate.h"
 
 
/*BASIC TEST WRITE READ*/
/*BASIC TEST WRITE READ*/
#include "aes_bfm_wr.h"
#include "aes_bfm_wr.h"
Line 213... Line 261...
#include "bfm_ecb/aes_bfm_decryption_dma_ecb.h"
#include "bfm_ecb/aes_bfm_decryption_dma_ecb.h"
#include "bfm_ecb/aes_bfm_encryption_dma_ecb.h"
#include "bfm_ecb/aes_bfm_encryption_dma_ecb.h"
#include "bfm_ecb/aes_bfm_key_generation_dma_ecb.h"
#include "bfm_ecb/aes_bfm_key_generation_dma_ecb.h"
#include "bfm_ecb/aes_bfm_derivation_decryption_dma_ecb.h"
#include "bfm_ecb/aes_bfm_derivation_decryption_dma_ecb.h"
 
 
 
 
#include "bfm_ecb/aes_bfm_encryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_encryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_decryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_decryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_derivation_decryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_derivation_decryption_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_key_generation_ccfie_ecb.h"
#include "bfm_ecb/aes_bfm_key_generation_ccfie_ecb.h"
 
 
 
/*CBC TEST CASES*/
 
 
 
#include "bfm_cbc/aes_bfm_encryption_cbc.h"
 
#include "bfm_cbc/aes_bfm_decryption_cbc.h"
 
#include "bfm_cbc/aes_bfm_derivation_decryption_cbc.h"
 
#include "bfm_cbc/aes_bfm_key_generation_cbc.h"
 
 
 
#include "bfm_cbc/aes_bfm_encryption_dma_cbc.h"
 
#include "bfm_cbc/aes_bfm_decryption_dma_cbc.h"
 
#include "bfm_cbc/aes_bfm_derivation_decryption_dma_cbc.h"
 
#include "bfm_cbc/aes_bfm_key_generation_dma_cbc.h"
 
 
 
#include "bfm_cbc/aes_bfm_encryption_ccfie_cbc.h"
 
#include "bfm_cbc/aes_bfm_decryption_ccfie_cbc.h"
 
#include "bfm_cbc/aes_bfm_derivation_decryption_ccfie_cbc.h"
 
#include "bfm_cbc/aes_bfm_key_generation_ccfie_cbc.h"
 
 
 
/*CTR TEST CASES*/
 
 
 
#include "bfm_ctr/aes_bfm_encryption_ctr.h"
 
#include "bfm_ctr/aes_bfm_decryption_ctr.h"
 
#include "bfm_ctr/aes_bfm_key_generation_ctr.h"
 
#include "bfm_ctr/aes_bfm_derivation_decryption_ctr.h"
 
 
 
#include "bfm_ctr/aes_bfm_encryption_dma_ctr.h"
 
#include "bfm_ctr/aes_bfm_decryption_dma_ctr.h"
 
#include "bfm_ctr/aes_bfm_key_generation_dma_ctr.h"
 
#include "bfm_ctr/aes_bfm_derivation_decryption_dma_ctr.h"
 
 
 
#include "bfm_ctr/aes_bfm_encryption_ccfie_ctr.h"
 
#include "bfm_ctr/aes_bfm_decryption_ccfie_ctr.h"
 
#include "bfm_ctr/aes_bfm_key_generation_ccfie_ctr.h"
 
#include "bfm_ctr/aes_bfm_derivation_decryption_ccfie_ctr.h"
 
 
 
/*ENV CONFIG */
#include "aes_init.h"
#include "aes_init.h"
#include "aes_monitor.h"
#include "aes_monitor.h"
#include "aes_bfm_reset.h"
#include "aes_bfm_reset.h"
#include "aes_init_reset.h"
#include "aes_init_reset.h"
 
 
Line 268... Line 350...
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
      tf_data.sizetf    = 0;
      tf_data.sizetf    = 0;
      tf_data.user_data = 0;
      tf_data.user_data = 0;
      vpi_register_systf(&tf_data);
      vpi_register_systf(&tf_data);
 
 
      // ENCRYPTION
      //ECB ENCRYPTION
      tf_data.type      = vpiSysTask;
      tf_data.type      = vpiSysTask;
      tf_data.sysfunctype = 0;
      tf_data.sysfunctype = 0;
      tf_data.tfname    = "$bfm_encryption_ecb_aes128";
      tf_data.tfname    = "$bfm_encryption_ecb_aes128";
      tf_data.calltf    = aes_bfm_encryption_ecb_calltf;
      tf_data.calltf    = aes_bfm_encryption_ecb_calltf;
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
Line 296... Line 378...
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
      tf_data.sizetf    = 0;
      tf_data.sizetf    = 0;
      tf_data.user_data = 0;
      tf_data.user_data = 0;
      vpi_register_systf(&tf_data);
      vpi_register_systf(&tf_data);
 
 
      //DECRYPTION
      //CBC ENCRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_cbc_aes128";
 
      tf_data.calltf    = aes_bfm_encryption_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_cbc_dma_aes128";
 
      tf_data.calltf    =  aes_bfm_encryption_cbc_dma_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_ccfie_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_encryption_ccfie_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //CTR ENCRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_ctr_aes128";
 
      tf_data.calltf    = aes_bfm_encryption_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_ctr_dma_aes128";
 
      tf_data.calltf    =  aes_bfm_encryption_ctr_dma_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_encryption_ccfie_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_encryption_ccfie_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //ECB DECRYPTION
      tf_data.type      = vpiSysTask;
      tf_data.type      = vpiSysTask;
      tf_data.sysfunctype = 0;
      tf_data.sysfunctype = 0;
      tf_data.tfname    = "$bfm_decryption_ecb_aes128";
      tf_data.tfname    = "$bfm_decryption_ecb_aes128";
      tf_data.calltf    =  aes_bfm_decryption_ecb_calltf;
      tf_data.calltf    =  aes_bfm_decryption_ecb_calltf;
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
Line 324... Line 462...
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
      tf_data.sizetf    = 0;
      tf_data.sizetf    = 0;
      tf_data.user_data = 0;
      tf_data.user_data = 0;
      vpi_register_systf(&tf_data);
      vpi_register_systf(&tf_data);
 
 
      //DERIVATION DECRYPTION
      //CBC DECRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_cbc_dma_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_cbc_dma_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_ccfie_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_ccfie_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //CTR DECRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_ctr_dma_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_ctr_dma_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_decryption_ccfie_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_decryption_ccfie_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //ECB DERIVATION DECRYPTION
      tf_data.type      = vpiSysTask;
      tf_data.type      = vpiSysTask;
      tf_data.sysfunctype = 0;
      tf_data.sysfunctype = 0;
      tf_data.tfname    = "$bfm_derivation_decryption_ecb_aes128";
      tf_data.tfname    = "$bfm_derivation_decryption_ecb_aes128";
      tf_data.calltf    =  aes_bfm_derivation_decryption_ecb_calltf;
      tf_data.calltf    =  aes_bfm_derivation_decryption_ecb_calltf;
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
Line 352... Line 546...
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
      tf_data.sizetf    = 0;
      tf_data.sizetf    = 0;
      tf_data.user_data = 0;
      tf_data.user_data = 0;
      vpi_register_systf(&tf_data);
      vpi_register_systf(&tf_data);
 
 
 
      //CBC DERIVATION DECRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_dma_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_dma_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_ccfie_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_ccfie_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //CTR DERIVATION DECRYPTION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_dma_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_dma_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_derivation_decryption_ccfie_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_derivation_decryption_ccfie_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
 
      //KEY DERIVATION
      //KEY DERIVATION
      tf_data.type      = vpiSysTask;
      tf_data.type      = vpiSysTask;
      tf_data.sysfunctype = 0;
      tf_data.sysfunctype = 0;
      tf_data.tfname    = "$bfm_key_generation_ecb_aes128";
      tf_data.tfname    = "$bfm_key_generation_ecb_aes128";
      tf_data.calltf    =  aes_bfm_key_generation_ecb_calltf;
      tf_data.calltf    =  aes_bfm_key_generation_ecb_calltf;
Line 381... Line 632...
      tf_data.compiletf = 0;
      tf_data.compiletf = 0;
      tf_data.sizetf    = 0;
      tf_data.sizetf    = 0;
      tf_data.user_data = 0;
      tf_data.user_data = 0;
      vpi_register_systf(&tf_data);
      vpi_register_systf(&tf_data);
 
 
 
      //CBC DERIVATION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_dma_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_dma_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_ccfie_cbc_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_ccfie_cbc_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      //CTR DERIVATION
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_dma_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_dma_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
 
      tf_data.type      = vpiSysTask;
 
      tf_data.sysfunctype = 0;
 
      tf_data.tfname    = "$bfm_key_generation_ccfie_ctr_aes128";
 
      tf_data.calltf    =  aes_bfm_key_generation_ccfie_ctr_calltf;
 
      tf_data.compiletf = 0;
 
      tf_data.sizetf    = 0;
 
      tf_data.user_data = 0;
 
      vpi_register_systf(&tf_data);
 
 
      // RESET BFM
      // RESET BFM
      tf_data.type      = vpiSysTask;
      tf_data.type      = vpiSysTask;
      tf_data.sysfunctype = 0;
      tf_data.sysfunctype = 0;
      tf_data.tfname    = "$reset_aes128";
      tf_data.tfname    = "$reset_aes128";
      tf_data.calltf    = aes_reset_calltf;
      tf_data.calltf    = aes_reset_calltf;

powered by: WebSVN 2.1.0

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