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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [vpi/] [vpi_test_stress/] [write_fsm_spw_ultra_light.h] - Diff between revs 5 and 12

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 5 Rev 12
static int write_tx_fsm_spw_ultra_light_calltf(char*user_data)
static int write_tx_fsm_spw_ultra_light_calltf(char*user_data)
{
{
        vpiHandle LINKSTART    = vpi_handle_by_name("module_tb.LINK_START",NULL);
        vpiHandle LINKSTART    = vpi_handle_by_name("module_tb.LINK_START",NULL);
        vpiHandle LINKDISABLE  = vpi_handle_by_name("module_tb.LINK_DISABLE",NULL);
        vpiHandle LINKDISABLE  = vpi_handle_by_name("module_tb.LINK_DISABLE",NULL);
        vpiHandle AUTOSTART    = vpi_handle_by_name("module_tb.AUTO_START",NULL);
        vpiHandle AUTOSTART    = vpi_handle_by_name("module_tb.AUTO_START",NULL);
 
 
        link_enable_value.format    = vpiIntVal;
        link_enable_value.format    = vpiIntVal;
        auto_start_value.format     = vpiIntVal;
        auto_start_value.format     = vpiIntVal;
        link_disable_value.format   = vpiIntVal;
        link_disable_value.format   = vpiIntVal;
 
 
        link_enable_value.value.integer  = SC_TOP->verilog_linkenable();
        link_enable_value.value.integer  = SC_TOP->verilog_linkenable();
        vpi_put_value(LINKSTART, &link_enable_value, NULL, vpiNoDelay);
        vpi_put_value(LINKSTART, &link_enable_value, NULL, vpiNoDelay);
 
 
        //if(SC_TOP->verilog_linkenable())
 
        //      printf("TESTE\n");
 
 
 
        auto_start_value.value.integer   = SC_TOP->verilog_autostart();
        auto_start_value.value.integer   = SC_TOP->verilog_autostart();
        vpi_put_value(AUTOSTART, &auto_start_value, NULL, vpiNoDelay);
        vpi_put_value(AUTOSTART, &auto_start_value, NULL, vpiNoDelay);
 
 
        link_disable_value.value.integer = SC_TOP->verilog_linkdisable();
        link_disable_value.value.integer = SC_TOP->verilog_linkdisable();
        vpi_put_value(LINKDISABLE, &link_disable_value, NULL, vpiNoDelay);
        vpi_put_value(LINKDISABLE, &link_disable_value, NULL, vpiNoDelay);
 
 
        return 0;
        return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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