lib/sw_services/xilsem/examples/xsem_cram_example.c
XStatus Xsem_CfrApiInjctCorErr()
{
	/* To inject correctable error, inject error in single bit position in
	 * any of the row/frame/qword. The argument details are
	 * ErrData[0]: Frame Address : 0, Quadword: 3, Bit position: 4, Row: 0
	 * Valid ranges: Row 0-3, Qword 0-24, Bit postion 0-127,
	 * For frame address, refer to the LAST_FRAME_TOP (CFRAME_REG) and
	 * LAST_FRAME_BOT (CFRAME_REG) registers.
	 * In Qword 12, 0-23 & 48-71 are syndrome bits. All other bits are data bits.
	 * To inject single bit error in syndrome, select Qword 12 in any of the
	 * frame with bit position in range of 0-23 or 48-71
	 */
	XSemCfrErrInjData ErrData = {0, 3, 4, 0};
	XStatus Status = 0U;

	Status = XSem_CfrApiErrNjct(&ErrData);
	if(Status == XST_FAILURE){
		xil_printf("Error injection failed due to IPI failure\n\r");
	}

	return Status;
}
/******************************************************************************
 * @brief	This function is used to inject 1-bit correctable error
 *
 * @return	Status : Success or Failure
 *****************************************************************************/
@brief       This function is used to inject 1-bit correctable error
@return      Status : Success or Failure
@brief This function is used to inject 1 - bit correctable error @return Status : Success or Failure
XStatus Xsem_CfrApiInjctCorErr()
{
	XSemCfrErrInjData ErrData = {0, 3, 4, 0};
	XStatus Status = 0U;
	Status = XSem_CfrApiErrNjct(&ErrData);
	if(Status == XST_FAILURE){
		xil_printf("Error injection failed due to IPI failure\n\r");
	}
	return Status;
}
XStatus Xsem_CfrApiInjctCorErr ( ) { XSemCfrErrInjData ErrData = { 0 , 3 , 4 , 0 } ; XStatus Status = 0U ; Status = XSem_CfrApiErrNjct ( & ErrData ) ; if ( Status == XST_FAILURE ) { xil_printf ( " \n \r " ) ; } return Status ; }
@brief       This function is used to inject 1-bit correctable error
 @return      Status : Success or Failure
@brief This function is used to inject 1 - bit correctable error @return Status : Success or Failure
/* To inject correctable error, inject error in single bit position in
	 * any of the row/frame/qword. The argument details are
	 * ErrData[0]: Frame Address : 0, Quadword: 3, Bit position: 4, Row: 0
	 * Valid ranges: Row 0-3, Qword 0-24, Bit postion 0-127,
	 * For frame address, refer to the LAST_FRAME_TOP (CFRAME_REG) and
	 * LAST_FRAME_BOT (CFRAME_REG) registers.
	 * In Qword 12, 0-23 & 48-71 are syndrome bits. All other bits are data bits.
	 * To inject single bit error in syndrome, select Qword 12 in any of the
	 * frame with bit position in range of 0-23 or 48-71
	 */