• 大小: 43.66MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-24
  • 语言: 其他
  • 标签: FPGA  HLS  zedboard  

资源简介

含vivado实例教程pdf+项目源码6个,高层次综合实验HLS案例5个,嵌入式实验8个,均含项目源码和资料,注意是英文的。

资源截图

代码片段和文件信息

#include “xparameters.h“
#include “xgpio.h“
#include “xgpiops.h“
#ifdef MULTIBOOT
#include “xdevcfg.h“
#endif

static XGpioPs psGpioInstancePtr;
static int iPinNumber = 7; /*Led LD9 on ZedBoard and LD4 on Zybo is connected to MIO pin 7*/

//====================================================

int main (void) 
{

      XGpio sw led;
  int i pshb_check sw_check;
  XGpioPs_Config*GpioConfigPtr;
  int xStatus;
  int iPinNumberEMIO = 54;
  u32 uPinDirectionEMIO = 0x0;
  u32 uPinDirection = 0x1;

  xil_printf(“-- Start of the Program --\r\n“);

  // AXI GPIO switches Intialization
  XGpio_Initialize(&sw XPAR_SWITCHES_DEVICE_ID);

  // AXI GPIO leds Intialization
  XGpio_Initialize(&led XPAR_LEDS_DEVICE_ID);

  // PS GPIO Intialization
  GpioConfigPtr = XGpioPs_LookupConfig(XPAR_PS7_GPIO_0_DEVICE_ID);
  if(GpioConfigPtr == NULL)
    return XST_FAILURE;
  xStatus = XGpioPs_CfgInitialize(&psGpioInstancePtr
      GpioConfigPtr
      GpioConfigPtr->baseAddr);
  if(XST_SUCCESS != xStatus)
    print(“ PS GPIO INIT FAILED \n\r“);
  //PS GPIO pin setting to Output
  XGpioPs_SetDirectionPin(&psGpioInstancePtr iPinNumberuPinDirection);
  XGpioPs_SetOutputEnablePin(&psGpioInstancePtr iPinNumber1);
  //EMIO PIN Setting to Input port
  XGpioPs_SetDirectionPin(&psGpioInstancePtr
      iPinNumberEMIOuPinDirectionEMIO);
  XGpioPs_SetOutputEnablePin(&psGpioInstancePtr iPinNumberEMIO0);

  xil_printf(“-- Press BTNR (Zedboard) or BTN3 (Zybo) to see the LED light --\r\n“);
  xil_printf(“-- Change slide switches to see corresponding output on LEDs --\r\n“);
  xil_printf(“-- Set slide switches to 0x0F to exit the program --\r\n“);

  while (1)
  {
  sw_check = XGpio_DiscreteRead(&sw 1);
  XGpio_DiscreteWrite(&led 1 sw_check);
      pshb_check = XGpioPs_ReadPin(&psGpioInstancePtriPinNumberEMIO);
          XGpioPs_WritePin(&psGpioInstancePtriPinNumberpshb_check);
          if((sw_check & 0x0f)==0x0F)
           break;
  for (i=0; i<9999999; i++); // delay loop
   }
  xil_printf(“-- End of Program --\r\n“);
#ifdef MULTIBOOT
  // Driver Instantiations
  XDcfg XDcfg_0;
  u32 MultiBootReg = 0;
  #define PS_RST_CTRL_REG (XPS_SYS_CTRL_baseADDR + 0x200)
  #define PS_RST_MASK 0x1 /* PS software reset */
  #define SLCR_UNLOCK_OFFSET 0x08

  // Initialize Device Configuration Interface
  XDcfg_Config *Config = XDcfg_LookupConfig(XPAR_XDCFG_0_DEVICE_ID);
  XDcfg_CfgInitialize(&XDcfg_0 Config Config->baseAddr);

  MultiBootReg = 0; // Once done boot the master image stored at 0xfc00_0000
  Xil_Out32(0xF8000000 + SLCR_UNLOCK_OFFSET 0xDF0DDF0D); // unlock SLCR
  XDcfg_WriteReg(XDcfg_0.Config.baseAddr XDCFG_MULTIBOOT_ADDR_OFFSET MultiBootReg); // write to multiboot reg
  // synchronize
__asm__(
“dsb\n\t“
“isb“
);
      Xil_Out32(PS_RST_CTRL_REG PS_RST_MASK);
#endif
  return 0;
}
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\
     文件     3964145  2016-05-22 17:55  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf.zip
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\
     文件     1159520  2015-08-08 04:10  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab1.pdf
     文件     1298114  2015-08-08 04:10  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab2.pdf
     文件      431978  2015-08-08 04:11  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab3.pdf
     文件     1007354  2015-08-08 04:11  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab4.pdf
     文件      574590  2015-08-08 04:12  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab5.pdf
     文件      472384  2015-08-08 04:12  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_labdocs_pdf\2015_2_zynq_labdocs_pdf\lab6.pdf
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\
     文件      635426  2016-05-22 17:53  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources.zip
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab1\
     文件        2969  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab1\lab1.c
     文件         221  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab1\lab1_zedboard.xdc
     文件         207  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab1\lab1_zybo.xdc
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\
     文件        2251  2015-08-06 04:51  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\lab2.c
     文件        1664  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\lab2_user_logic.vhd
     文件        1042  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\lab2_zedboard.xdc
     文件         610  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\lab2_zybo.xdc
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\
     文件       22669  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip.v
     文件       28552  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\component.xml
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\math_ip.data\
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\math_ip.data\constrs_1\
     文件         281  2015-07-31 00:06  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\math_ip.data\constrs_1\fileset.xml
     目录           0  2018-10-06 09:18  zedboard官方实例教程(英文)\zedboard\embedded_advanced\2015_2_zynq_sources\2015_2_zynq_sources\lab2\math_ip\math_ip.data\sim_1\
............此处省略624个文件信息

评论

共有 条评论