资源简介
The_Zynq_Book实例教程资料,是zynq入门的好例子,手把手一步一步地教您,带您步入zynq的殿堂。

代码片段和文件信息
/*
* adventures_with_ip.c
*
* Main source file. Contains main() and menu() functions.
*/
#include “adventures_with_ip.h“
/* ---------------------------------------------------------------------------- *
* main() *
* ---------------------------------------------------------------------------- *
* Runs all initial setup functions to initialise the audio codec and IP
* peripherals before calling the interactive menu system.
* ---------------------------------------------------------------------------- */
int main(void)
{
xil_printf(“Entering Main\r\n“);
//Configure the IIC data structure
IicConfig(XPAR_XIICPS_0_DEVICE_ID);
//Configure the Audio Codec‘s PLL
AudioPllConfig();
//Configure the Line in and Line out ports.
//Call LineInLineOutConfig() for a configuration that
//enables the HP jack too.
AudioConfigureJacks();
xil_printf(“ADAU1761 configured\n\r“);
/* Initialise GPIO and NCO peripherals */
gpio_init();
nco_init(&Nco);
xil_printf(“GPIO and NCO peripheral configured\r\n“);
/* Display interactive menu interface via terminal */
menu();
return 1;
}
/* ---------------------------------------------------------------------------- *
* menu() *
* ---------------------------------------------------------------------------- *
* Presented at system startup. Allows the user to select between three
* options by pressing certain keys on the keyboard:
* ‘s‘ - Audio loopback streaming
* ‘n‘ - Tonal noise is generated by an NCO and added to the audio
* being captured from the audio codec.
* ‘f‘ - The audio + tonal noise is passed to an adaptive LMS noise
* cancellation filter which will use the tonal noise estimate
* to remove the noise from the audio.
*
* This menu is shown upon exiting from any of the above options.
* ---------------------------------------------------------------------------- */
void menu(){
u8 inp = 0x00;
u32 CntrlRegister;
/* Turn off all LEDs */
Xil_Out32(LED_base 0);
CntrlRegister = XUartPs_ReadReg(UART_baseADDR XUARTPS_CR_OFFSET);
XUartPs_WriteReg(UART_baseADDR XUARTPS_CR_OFFSET
((CntrlRegister & ~XUARTPS_CR_EN_DIS_MASK) |
XUARTPS_CR_TX_EN | XUARTPS_CR_RX_EN));
xil_printf(“\r\n\r\n“);
xil_printf(“embedded LMS Filtering Demo\r\n“);
xil_printf(“Enter ‘s‘ to stream pure audio ‘n‘ to add tonal noise and ‘f‘ to adaptively filter\r\n“);
xil_printf(“----------------------------------------\r\n“);
// Wait for input from UART via the terminal
while (!XUartPs_IsReceiveData(UART_baseADDR));
inp = XUartPs_ReadReg(UART_baseADDR XUARTPS_FIFO_OFFSET);
// Select function based on UART input
switch(inp){
case ‘s‘:
xil_printf(“STREAMING AUDIO\r\n“);
xil_printf(“Press ‘q‘ to return to the main menu\r\n“);
audio_stream();
break;
case ‘n‘:
xil_printf(“ENTERING NOISE GENERATION OPERATION\r\n“);
xil_printf(“Select step size via the DIP switches...\r\n\n“);
xil_printf(“Press ‘q‘ to return to th
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-07-11 01:12 adventures_with_ip_integrator\
目录 0 2014-07-11 01:12 adventures_with_ip_integrator\constraints\
文件 1998 2014-01-29 01:32 adventures_with_ip_integrator\constraints\adventures_with_ip.xdc
目录 0 2014-07-11 01:12 adventures_with_ip_integrator\drivers\
文件 3124 2013-10-30 01:42 adventures_with_ip_integrator\drivers\audio.h
目录 0 2014-07-11 01:12 adventures_with_ip_integrator\ip\
文件 12433 2013-10-24 19:23 adventures_with_ip_integrator\ip\xilinx.com_user_led_controller_1.0.zip
文件 86668 2013-10-28 22:26 adventures_with_ip_integrator\ip\xilinx.com_user_lms_pcore_1.0.zip
文件 29276 2013-10-25 19:36 adventures_with_ip_integrator\ip\xilinx_com_hls_nco_1_0.zip
文件 67797 2013-07-24 18:32 adventures_with_ip_integrator\ip\zed_audio_ctrl.zip
文件 3979052 2013-10-28 21:30 adventures_with_ip_integrator\original_speech.wav
目录 0 2014-07-11 01:12 adventures_with_ip_integrator\software\
文件 3249 2013-10-30 19:28 adventures_with_ip_integrator\software\adventures_with_ip.c
文件 2666 2013-10-30 19:11 adventures_with_ip_integrator\software\adventures_with_ip.h
文件 8616 2013-10-30 19:51 adventures_with_ip_integrator\software\audio.c
文件 8946 2013-10-30 20:21 adventures_with_ip_integrator\software\ip_functions.c
目录 0 2014-07-11 01:12 first_zynq_design\
文件 2744 2014-01-27 23:00 first_zynq_design\LED_test_tut_1C.c
目录 0 2014-07-11 01:12 hdl_coder_lms\
文件 15091 2014-05-06 23:17 hdl_coder_lms\lms.slx
文件 3979052 2013-10-28 17:19 hdl_coder_lms\original_speech.wav
文件 309 2013-10-28 17:51 hdl_coder_lms\playback.m
文件 208 2013-10-28 17:43 hdl_coder_lms\setup.m
目录 0 2014-07-11 01:10 hls\
目录 0 2014-07-15 21:39 hls\tut3A\
文件 585 2014-05-06 22:47 hls\tut3A\matrix_mult.cpp
文件 544 2014-05-06 22:47 hls\tut3A\matrix_mult.h
文件 1593 2014-05-06 22:47 hls\tut3A\matrix_mult_test.cpp
文件 801 2014-05-06 22:47 hls\tut3A\run_hls.tcl
目录 0 2014-07-15 21:39 hls\tut3B\
文件 585 2014-05-06 22:47 hls\tut3B\matrix_mult.cpp
............此处省略19个文件信息
相关资源
- zynq下pcie nvme硬盘接口实现
- zynq-7000-vxworks-bsp.zip
- zedboard ubuntu16.04文件系统
- 《Xilinx ZYNQ-7000 AP SoC开发实战指南》符
-
Bare me
tal HDMI for ZedBoard with ADV7511 - 黑金zynq教程
- FPGA加速的硬件框架ZYNQ
- pynq HDMI(zynq芯片也可使用 hdmi in
- pynq HDMI(zynq也可使用 hdmi in hdm
- xilinx zynq官方培训课程
- zcu102用lwip实现TCP传输
- zcu102试验emio
- zcu10_PS端LED开关工程
- 将ZYNQ的EMIO映射到PS端串口1使用
- zynq soc 7010 核心板原理图
- 基于vivado平台的zynq PicoBlaze
- 米联ZYNQ图像处理教程
- zynq++88E1111的lwip
- 基于Xilinx Zynq-7000的AD7414试验
- XILINX开发板ZC706指导手册 Evaluation Bo
- 资源:ZED-Board从入门到精通一:ZYNQ结
- hls 教程zynq 7000 fpga教程,超过200页的
- ZYNQ双核AMP官方例程双核分别跑Linux+裸
- ZYNQ进阶之路14工程.rar
- hls_rgb2gray.zip
- ZYNQ PS响应PL中断例程
- AMP SOURCE
- 基于ZYNQ的的FPGA基础入门
- zynq 图像处理教程fpga教程,含例程手
- ZYNQ HLS 图像算法
评论
共有 条评论