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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [vpi/] [vpi_test_suit/] [global_reset.h] - Rev 20

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

static int global_reset_calltf(char*user_data)
{
 
	vpiHandle RESETnSPWTCR	= vpi_handle_by_name("module_tb.RESETn", NULL);
	reset.format = vpiIntVal;
 
	if(!SC_TOP->reset_set())
	{
		reset.value.integer = 0;
		vpi_put_value(RESETnSPWTCR, &reset, NULL, vpiNoDelay);
		state_test = 0;
		state_test_rx=1;
		position = counter = 0;
		SC_TOP->end_tx_test();
	}else
	{
		reset.value.integer = 1;
		vpi_put_value(RESETnSPWTCR, &reset, NULL, vpiNoDelay);
	}
 
	return 0;
}
 

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

powered by: WebSVN 2.1.0

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