src/occ_405/wof/wof.c
/**
 * send_initial_vfrt_to_pgpe
 *
 * Description: Function calculates the address of the final vfrt in Main Memory
 *              and subsequently sends that address to the PGPE to use via IPC
 *              command.
 */
send_initial_vfrt_to_pgpe
Description: Function calculates the address of the final vfrt in Main Memory
and subsequently sends that address to the PGPE to use via IPC
command.
send_initial_vfrt_to_pgpe Description : Function calculates the address of the final vfrt in Main Memory and subsequently sends that address to the PGPE to use via IPC command .
void send_initial_vfrt_to_pgpe( void )
{
    g_wof->vdn_step_from_start  = g_wof->vdn_size - 1;
    g_wof->vdd_step_from_start  = g_wof->vdd_size - 1;
    g_wof->quad_step_from_start = MAXIMUM_QUADS - 1;
    g_wof->next_vfrt_main_mem_addr = calc_vfrt_mainstore_addr();
    send_vfrt_to_pgpe( g_wof->next_vfrt_main_mem_addr );
    if(g_wof->wof_init_state < INITIAL_VFRT_SENT_WAITING)
    {
        g_wof->wof_init_state = INITIAL_VFRT_SENT_WAITING;
    }
}
void send_initial_vfrt_to_pgpe ( void ) { g_wof -> vdn_step_from_start = g_wof -> vdn_size - 1 ; g_wof -> vdd_step_from_start = g_wof -> vdd_size - 1 ; g_wof -> quad_step_from_start = MAXIMUM_QUADS - 1 ; g_wof -> next_vfrt_main_mem_addr = calc_vfrt_mainstore_addr ( ) ; send_vfrt_to_pgpe ( g_wof -> next_vfrt_main_mem_addr ) ; if ( g_wof -> wof_init_state < INITIAL_VFRT_SENT_WAITING ) { g_wof -> wof_init_state = INITIAL_VFRT_SENT_WAITING ; } }
send_initial_vfrt_to_pgpe
 Description: Function calculates the address of the final vfrt in Main Memory
              and subsequently sends that address to the PGPE to use via IPC
              command.
send_initial_vfrt_to_pgpe Description : Function calculates the address of the final vfrt in Main Memory and subsequently sends that address to the PGPE to use via IPC command .
// Set the steps for VDN, VDD, and Quads to the max value // Calculate the address of the final vfrt // Send the final vfrt to shared OCC-PGPE SRAM. // Update Init state