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

Subversion Repositories apbtoaes128

[/] [apbtoaes128/] [trunk/] [pli/] [bfm_ctr/] [aes_bfm_derivation_decryption_ccfie_ctr.h] - Diff between revs 5 and 9

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

Rev 5 Rev 9
Line 293... Line 293...
 
 
                                        //ENABLE CR
                                        //ENABLE CR
                                        if(counter_write == 9)
                                        if(counter_write == 9)
                                        {
                                        {
 
 
                                                v_ecb.value.integer = vector_address[counter_write];
                                                v_ecb.value.integer = ADDR_AES_CR;
                                                vpi_put_value(PADDR, &v_ecb, NULL, vpiNoDelay);
                                                vpi_put_value(PADDR, &v_ecb, NULL, vpiNoDelay);
 
 
                                                t_ecb.type = vpiScaledRealTime;
                                                t_ecb.type = vpiScaledRealTime;
                                                t_ecb.real = 0;
                                                t_ecb.real = 0;
                                                v_ecb.format=vpiIntVal;
                                                v_ecb.format=vpiIntVal;
Line 419... Line 419...
 
 
                                        counter=0;
                                        counter=0;
                                }
                                }
 
 
                                v_ecb.value.integer = 0;
                                v_ecb.value.integer = 0;
                                vpi_get_value(PRDATA,&v_ecb);
                                vpi_get_value(int_ccf,&v_ecb);
 
 
                                if(v_ecb.value.integer == 1)
                                if(v_ecb.value.integer == 1)
                                {
                                {
                                        STATE = READ_DOUTR;
                                        STATE = READ_DOUTR;
 
 
                                        t_ecb.type = vpiScaledRealTime;
                                        counter=1;
                                        t_ecb.real = 10;
                                        //t_ecb.type = vpiScaledRealTime;
                                        v_ecb.format=vpiIntVal;
                                        //t_ecb.real = 10;
                                        v_ecb.value.integer = ADDR_AES_DOUTR;
                                        //v_ecb.format=vpiIntVal;
                                        vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
                                        //v_ecb.value.integer = ADDR_AES_DOUTR;
 
                                        //vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
                                }
                                }
 
 
 
 
                  break;
                  break;
 
 

powered by: WebSVN 2.1.0

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