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

Subversion Repositories uart8systemc

[/] [uart8systemc/] [trunk/] [vpi/] [reset_uart.h] - Blame information for rev 4

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

Line No. Rev Author Line
1 2 redbear
static int reset_uart_calltf(char*user_data)
2
{
3
 
4
        vpiHandle RESET = vpi_handle_by_name("module_tb.RESET", NULL);
5
 
6
        reset.format=vpiIntVal;
7
 
8
        if(counter_reset < 5)
9
        {
10
                reset.value.integer = 1;
11
                vpi_put_value(RESET, &reset, NULL, vpiNoDelay);
12
                counter_reset = counter_reset + 1;
13
        }
14
        else
15
        {
16
                reset.value.integer = 0;
17
                vpi_put_value(RESET, &reset, NULL, vpiNoDelay);
18
                SC_UART->reset_set_low();
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.