int main()
{

	/* First, initialise the NoC */
	NoC_Init();

	node_id = NoC_Read_Byte_Blocking();

	//read EOP after getting the ID
	NoC_Send_ACK();

	/* Print confirmation and ID to the UART */
	xil_printf("\r\n *** Node %d is up and running ***\r\n \r\n", node_id);

	/*******************************************************/
	/***  Now we're setup lets do something on the core  ***/
	/*******************************************************/

	/* Read and print the RTC */
	xil_printf("RTC_value: %d\r\n", Read_RTC());

	/* Variable declarations */
	Xuint8 sendTo;
	Xuint32 i = 0;

	/**********************************/
	/*****  Main processing loop  *****/
	/**********************************/
	while(1){

		//Wait for a message from the host to say that it is done initialising
		sendTo = NoC_Read_Byte_Blocking();

		xil_printf("To = %d, t = %d, i = %d \r\n", sendTo, Read_RTC(), i);

		NoC_Write_Node_Packet((int)sendTo, &node_id, 1, 0);

		i++;

	}

	while(1);
}
