You are on page 1of 11

QUANTUM ENTANGLEMENT AND QUANTUM COMPUTING

(UE20EC324)

ISA-3 PROJECT

NAME:VAISHNAVI B V
SRN:PES1UG20EC217
SEM:5
SECTION:D
Problem statement:UART for reception qbit on Zedboard

1)Hardware Setup and Plan


 Zedboard
ZedBoard is a complete development kit for designers interested in exploring
designs using the AMD Xilinx Zynq-7000 All Programmable SoC. The board contains all
the necessary interfaces and supporting functions to enable a wide range of
applications. The expandability features of the board make it ideal for rapid prototyping
and proof-of-concept development.

 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:

The steps carried out in doing this project is as follows:


 Create a new project in Vivado 2017.4 edition and select the Zedboard
Zynq evaluation and Development kit under the boards option.
 A new project will be created. Click on the create block design option
and start creating the block design.
 Select the Zynq7 processing system under the ‘+’ option.
 Run block automation for the created block.
 Later double click on the block to customize IP.Uncheck all the clock
resets,axi,gpio ports and pins.And check only the DDR and UART 1
port.Specify the particular MIO value for the UART 1 pins.
 The block will be updated with the customizations done and will have
only the DDR and FIXED I/O ports.Right click on them and give
external connections using make external option.
 Now,validate the design.It should get validated without any errors or
warnings.
 To create a wrapper HDL file for this,go to sources tab and right click
on the design file and select create HDL wrapper.A HDL wrapper file
will be created.
 Generate bitstream for this file using the Generate bitstream option.
 After the successful writing of bitstream,click on files>export>export
hardware.
 Export the hardware including the bitstream.
 Go to files>Launch SDK.
 A system.hdf will be open upon launching.
 Create a new application project with a desired name.
 Under this application project ,create a C file for the source code.
 Type the C code and save the file.
 Connect the Zedboard with appropriate connections and Program it
using the Program FGPA option.
 Later Run the project using Run>Run as>Launch on hardware(System
Debugger)

Screenshots of the Steps:


Report

UART Implementation on ZedBoard


The ZedBoard implements a USB-to-UART bridge connected to a PS
UART peripheral. A Cypress CY7C64225 USB-to-UART Bridge device
allows connection to a host computer. The USB/UART device connects
to the USB Micro B connector, J14, (TE 1981584-1) on the board. Only
basic TXD/RXD connection is implemented. If flow control is required
this can be added through Extended MIO on a PL-Pmod™. Cypress
provides royalty-free Virtual COM Port (VCP) drivers which permit the
CY7C64225 USB  to-UART bridge to appear as a COM port to host
computer communications application software (for example,
HyperTerm or TeraTerm). The UART 1 Zynq PS peripheral is accessed
through MIO[48:49] in MIO Bank 1/501.

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.

Video link of the Output:


https://drive.google.com/file/d/1Q2Wi1wrP2j1D046trd2MRgGZ0l1KIi
my/view?usp=sharing
RESULT: The Qubit was generated using the UART port on ZedBoard.

References

Tutorial 3 : Using ZedBoard UART (ahmedmohamed45am.wixsite.com)


https://youtu.be/-WibBwLv3Fw
https://youtu.be/YwlXuISxECs
https://youtu.be/x9kLAnLDmGk
ZedBoard_HW_Users_Guide (digilent.com)

You might also like