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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [vpi/] [vpi_test_stress/] [write_fsm_spw_ultra_light.h] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 redbear
static int write_tx_fsm_spw_ultra_light_calltf(char*user_data)
2
{
3
        vpiHandle LINKSTART    = vpi_handle_by_name("module_tb.LINK_START",NULL);
4
        vpiHandle LINKDISABLE  = vpi_handle_by_name("module_tb.LINK_DISABLE",NULL);
5
        vpiHandle AUTOSTART    = vpi_handle_by_name("module_tb.AUTO_START",NULL);
6
 
7
        link_enable_value.format    = vpiIntVal;
8
        auto_start_value.format     = vpiIntVal;
9
        link_disable_value.format   = vpiIntVal;
10
 
11
        link_enable_value.value.integer  = SC_TOP->verilog_linkenable();
12
        vpi_put_value(LINKSTART, &link_enable_value, NULL, vpiNoDelay);
13
 
14
        //if(SC_TOP->verilog_linkenable())
15
        //      printf("TESTE\n");
16
 
17
        auto_start_value.value.integer   = SC_TOP->verilog_autostart();
18
        vpi_put_value(AUTOSTART, &auto_start_value, NULL, vpiNoDelay);
19
 
20
        link_disable_value.value.integer = SC_TOP->verilog_linkdisable();
21
        vpi_put_value(LINKDISABLE, &link_disable_value, NULL, vpiNoDelay);
22
 
23
        return 0;
24
}

powered by: WebSVN 2.1.0

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