URL
https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk
[/] [apbtoaes128/] [trunk/] [pli/] [bfm_ecb/] [aes_bfm_derivation_decryption_ecb.h] - Diff between revs 4 and 9
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 9 |
Line 359... |
Line 359... |
|
|
v_ecb.value.integer = 1;
|
v_ecb.value.integer = 1;
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
|
|
}else if(counter == 1)
|
|
{
|
|
v_ecb.value.integer = 0;
|
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
|
counter=0;
|
|
}
|
|
|
|
v_ecb.value.integer = 0;
|
v_ecb.value.integer = 0;
|
vpi_get_value(PRDATA,&v_ecb);
|
vpi_get_value(PRDATA,&v_ecb);
|
|
|
if(v_ecb.value.integer == 1)
|
if(v_ecb.value.integer == 1)
|
{
|
{
|
STATE = READ_DOUTR;
|
STATE = READ_DOUTR;
|
|
|
t_ecb.type = vpiScaledRealTime;
|
//printf("CYCLES TAKEN:%d\n", cycle_counter);
|
t_ecb.real = 0;
|
cycle_counter=0;
|
v_ecb.format=vpiIntVal;
|
}
|
v_ecb.value.integer = ADDR_AES_DOUTR;
|
|
vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
|
|
|
}else if(counter == 1)
|
|
{
|
|
v_ecb.value.integer = 0;
|
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
|
counter=0;
|
}
|
}
|
|
|
|
|
|
//cycle_counter++;
|
|
|
break;
|
break;
|
|
|
|
|
case READ_DOUTR:
|
case READ_DOUTR:
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.