Code Monkey home page Code Monkey logo

starynight410 / uartcontrollerzynq_demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 120.79 MB

利用ZYNQ实现了一种PC与PS之间的串口通信的Demo,实现包括:点亮LED、SPI配置、IIC读写功能,并开发相应上位机程序。

QMake 0.01% C++ 0.61% Makefile 0.10% C 14.32% Verilog 15.58% VHDL 61.42% Tcl 0.23% SystemVerilog 1.12% HTML 4.92% V 0.69% Pascal 0.01% JavaScript 0.06% Shell 0.02% Batchfile 0.01% TeX 0.01% PureBasic 0.01% SuperCollider 0.09% Assembly 0.81% CMake 0.01% CartoCSS 0.01%

uartcontrollerzynq_demo's Introduction

利用Uart实现PC与Zynq PS端的数据交互,工程包含两部分:FPGA程序+上位机。

开发环境

Vivado/Vitis 2022.2

工程列表

SingleSerialPort:Uart控制上位机、prj11_autofocus:ZYNQ系统、PL_SpiProcess:SPI收发及处理模块

实现功能

该项目搭建了基于Zynq的Uart数据收发系统,在PS端实现控制LED的亮灭、SPI发送、IIC读写EEPROM,并通过PL端进行结果验证;上位机端实现了串口功能、SPI参数配置、LED控制。此项目可用作原型系统实现PC和PS端更复杂的数据交互。

整体系统如下:

image

对其中的SPI发送进行测试,上位机配置参数分别为:1、2、3,配置数据SPI发送的ila结果:

image

SPI收发模块

为了方便后续的使用,在PL端实现了SPI数据的转发模块,并可完成逻辑运算。PL中实现了SPI数据收发模块,作为slave接收来自ps的SPI数据,完成某项逻辑运算,之后作为master输出。模块如下:

image

测试中上位机串口发送1、2、3至PS,PS直接转发PL,在PL中ila结果:

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.