Line 246... |
Line 246... |
|
|
|
|
}else if(counter_write == 9)//ENABLE CR
|
}else if(counter_write == 9)//ENABLE CR
|
{
|
{
|
|
|
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);
|
|
|
v_ecb.value.integer = 513;
|
v_ecb.value.integer = 513;
|
vpi_put_value(PWDATA, &v_ecb, &t_ecb, vpiTransportDelay);
|
vpi_put_value(PWDATA, &v_ecb, &t_ecb, vpiTransportDelay);
|
|
|
Line 340... |
Line 340... |
|
|
break;
|
break;
|
|
|
case WAIT_SR:
|
case WAIT_SR:
|
|
|
|
|
v_ecb.value.integer = ADDR_AES_SR;
|
v_ecb.value.integer = ADDR_AES_SR;
|
vpi_put_value(PADDR, &v_ecb, NULL, vpiNoDelay);
|
vpi_put_value(PADDR, &v_ecb, NULL, vpiNoDelay);
|
|
|
v_ecb.value.integer = 0;
|
v_ecb.value.integer = 0;
|
vpi_put_value(PWRITE, &v_ecb, NULL, vpiNoDelay);
|
vpi_put_value(PWRITE, &v_ecb, NULL, vpiNoDelay);
|
|
|
if(counter == 0)
|
v_ecb.value.integer = 0;
|
{
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
counter++;
|
/*
|
|
if(counter == 0)
|
|
{
|
|
counter++;
|
|
|
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)
|
}else if(counter == 1)
|
{
|
{
|
v_ecb.value.integer = 0;
|
v_ecb.value.integer = 0;
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
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;
|
|
v_ecb.format=vpiIntVal;
|
|
v_ecb.value.integer = ADDR_AES_DOUTR;
|
|
vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
|
|
}
|
}
|
|
|
|
|
break;
|
break;
|
|
|