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;
|
v_ecb.value.integer = 25;//data_in(rd);
|
v_ecb.value.integer = 57;//data_in(rd);
|
vpi_put_value(PWDATA, &v_ecb, &t_ecb, vpiTransportDelay);
|
vpi_put_value(PWDATA, &v_ecb, &t_ecb, vpiTransportDelay);
|
|
|
}
|
}
|
|
|
//WRITE DINR
|
//WRITE DINR
|
Line 410... |
Line 410... |
counter++;
|
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);
|
|
|
|
v_ecb.value.integer = 0;
|
|
vpi_get_value(PRDATA,&v_ecb);
|
|
|
}else if(counter == 1)
|
if(v_ecb.value.integer == 1)
|
{
|
{
|
v_ecb.value.integer = 0;
|
STATE = READ_DOUTR;
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
|
counter=0;
|
//t_ecb.type = vpiScaledRealTime;
|
|
//t_ecb.real = 0;
|
|
//v_ecb.format=vpiIntVal;
|
|
//v_ecb.value.integer = ADDR_AES_DOUTR;
|
|
//vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
|
}
|
}
|
|
|
v_ecb.value.integer = 0;
|
|
vpi_get_value(PRDATA,&v_ecb);
|
|
|
|
if(v_ecb.value.integer == 1)
|
|
|
}else if(counter == 1)
|
{
|
{
|
STATE = READ_DOUTR;
|
v_ecb.value.integer = 0;
|
|
vpi_put_value(PENABLE, &v_ecb, NULL, vpiNoDelay);
|
|
|
t_ecb.type = vpiScaledRealTime;
|
counter=0;
|
t_ecb.real = 0;
|
|
v_ecb.format=vpiIntVal;
|
|
v_ecb.value.integer = ADDR_AES_DOUTR;
|
|
vpi_put_value(PADDR, &v_ecb, &t_ecb, vpiTransportDelay);
|
|
}
|
}
|
|
|
|
|
|
|
break;
|
break;
|
|
|
|
|
case READ_DOUTR:
|
case READ_DOUTR:
|
|
|