资源简介
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 zedboard vxworks bootrom6.9, 7.0 vip镜像
- ZYNQ开发全过程概览
- ZYNQ-ZC7020硬件原理图和PCB图
- pg153-axi-quad-spi.pdf
- ZedBoard学习手记
- 3_正点原子领航者ZYNQ开发板原理图.
- VxWorks在Zynq平台上的移植详细流程
- zedboard zynq HDMI FPGA工程
- ZYNQ UltraSCALE+ ZCU102 User Guide
- Xilinx_Zynq-7000 、Artix-7、Kintex-7、Virte
- ZYNQ7020LG400_14层核心板
- 嵌入式系统软硬件协同设计实战指南
- Xilinx Zynq-7000嵌入式系统设计与实现
- ZYNQ PL FPGA UART 串口例程
- ALINX黑金Zynq7000开发平台配套教程V1.
- 嵌入式系统软硬件协同设计实战指南
- Miz702 ZYNQ开发教程
- 赛灵思ZYNQ7020芯片技术手册
- zynq7010矿机EBZA4205的Vivado 2017.4工程项目
- 米联 ZYNQ SOC修炼秘籍 1185页 没有密
- 嵌入式系统软硬件协同设计实战指南
- 黑金zynq7000教程
- ALINX黑金Zynq7020/AX7010开发平台配套教程
- 《The ZYNQ Book》中文版pdf
- ZYNQ中文资料书
- Xilinx Zynq Ultrascale+ datasheet
- ALINX黑金Zynq7000开发平台AX7010_AX7020配套
- Xilinx Zynq 7000裸机开发例程使用手册
- 《ZYNQ SOC修炼秘籍》完整版共1200页
- 01_ALINX_ZYNQ_MPSoC(AXU3CG)逻辑开发教程
评论
共有 条评论