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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [vpi/] [vpi_test_stress/] [global_reset.h] - Blame information for rev 9

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

Line No. Rev Author Line
1 5 redbear
static int global_reset_calltf(char*user_data)
2
{
3
 
4
        vpiHandle RESETnSPWUL   = vpi_handle_by_name("module_tb.RESETN", NULL);
5
        reset.format = vpiIntVal;
6
 
7
        if(!SC_TOP->reset_set())
8
        {
9
                reset.value.integer = 0;
10
                vpi_put_value(RESETnSPWUL, &reset, NULL, vpiNoDelay);
11
                state_test = 0;
12
                state_test_rx=1;
13
                position = counter = 0;
14
                SC_TOP->end_tx_test();
15
        }else
16
        {
17
                reset.value.integer = 1;
18
                vpi_put_value(RESETnSPWUL, &reset, NULL, vpiNoDelay);
19
        }
20
 
21
        return 0;
22
}

powered by: WebSVN 2.1.0

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