/* This function enables the Detector and Generator at same time of the VTC core. */
void XVtc_Enable(XVtc *InstancePtr)
/* This function enables the Detector and Generator at same time of the VTC core. */
void XVtc_Enable(XVtc *InstancePtr)
{
	u32 CtrlRegValue;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	CtrlRegValue = XVtc_ReadReg(InstancePtr->Config.BaseAddress,
					(XVTC_CTL_OFFSET));
	CtrlRegValue |= XVTC_CTL_SW_MASK;
	XVtc_WriteReg(InstancePtr->Config.BaseAddress, (XVTC_CTL_OFFSET),
				CtrlRegValue);
}