Professional Documents
Culture Documents
(UE20EC324)
ISA-3 PROJECT
NAME:VAISHNAVI B V
SRN:PES1UG20EC217
SEM:5
SECTION:D
Problem statement:UART for reception qbit on Zedboard
Components used in this are Zedboard, two USB cables and a power adapter.
One USB cable is connected to program the FPGA Board and the other is
connected to the UART through which the data will be transmitted and received.
Vivado 2017.4 and Software development kit has been used to program the
FPGA board.
Turning the switch on which is in front of the programming port will switch on the
board
2)Work and Test plan:
It configures the UART lines on JC2 (uart_tx) and JC3 (uart_rx) pins of
Zedboard. By connecting the PmodUSBUART on the upper row of JC
Pmod, the UART communication can be monitored in a serial terminal
on PC.
Source Code:
#include <stdio.h>
#include "platform.h"
#include "xil_io.h"
#include "xparameters.h"
#include "xuartps_hw.h"
int main()
{
int count = 0;
init_platform();
int temp;
xil_printf("Enter a number from keyboard from 0 to 9\n\r");
while(1)
{
temp = XUartPs_RecvByte(0xE0001000);
temp = temp - 0x0030;
xil_printf("you pressed %d\n\r",temp);
Xil_Out32(0x41200000 ,temp=0x0030);
}
cleanup_platform();
for(;;)
{
xil_printf("Received qubit from from Zynq Uart 1(MIO) : %d",
count++);
sleep(1);
return 0;}
RESULT ANALYSIS
The UART port has been lit up by orange color led light.
References