Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Audio system on DE2 board

Hello!

I use Quartus 9.0 and NIOS 9.0. My project is to implement audio system (actually for first time feedback from microphone to Line-Out) on DE2 board.

I have created with SOPC Builder required system for my purpose:

  • NIOS II Processor

  • On-Chip memory (RAM or ROM)

  • JTAG UART

  • SRAM/SSRAM Controller (up_avalon_sram_0 module)

  • Audio (up_avalon_audio_0 module)

  • Audio and Video Config (up_avalon_audio_and_video_config module)
Audiomodule and audio and video config modules were downloaded from http://www.altera.com/education/univ/materials/ip-cores/unv-ip-cores.html.

So, bdf file was created successfully, software project was created too. But during building pretty plain program (just main function and return) I get this error:

system_description/alt_sys_init.c:75: error: `UP_AVALON_AUDIO_AND_VIDEO_CONFIG_0_CFG_TYPE' undeclared here (not in a function)

system_description/alt_sys_init.c:75: error: initializer element is not constant

system_description/alt_sys_init.c:75: error: (near initialization for `up_avalon_audio_and_video_config_0.type')

I have commented two rows in file alt_sys_init.c:

altera_up_avalon_audio_and_video_config_instance( up_avalon_audio_and_video_config_0, up_avalon_audio_and_video_config_0 );

and this

altera_up_avalon_audio_and_video_config_init( up_avalon_audio_and_video_config_0, up_avalon_audio_and_video_config_0 );

then I can build system, write code for writing and reading fifos. I hear sound per headphones from mic. But additional I hear very big NOISE! So, I think it is related to ignore two rows in alt_sys_init.c file...

Please advice what to do with this issue...

Best Regards,

Vytautas

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    As i see on your post, the component instance name for "Audio/Video Configuration" in SOPC builder should be up_avalon_audio_and_video_config_0 not up_avalon_audio_and_video_config.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello.

    Sorry, actually name of this instance is up_avalon_audio_and_video_config_0...

    Please find attached picture of nios processor.

    I don't understand who and why needs this constant:

    UP_AVALON_AUDIO_AND_VIDEO_CONFIG_0_CFG_TYPE ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello.

    Do you have some idea? Something is missign? Also, configuration panel of UP_AVALON_AUDIO_AND_VIDEO_CONFIG IP core is much smaller like it is described in documentation. Please find attached file. Where are additional tabs like describes datasheet: General, Volume Control, Analog Control, Digital Control, Audio Format, Sampling?

    Maybe this issue related to this? Without Digital filter I hear this big NOISE?

    Best Regards,

    Vytautas

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have investigated this issue. Now I know that problem is related to wrong IP core. please try to find new version of audio core. new version works well, just need to write correct registers

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Where can I get this newer version of audio core? Thank you for reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Version of this core is in altera ftp site. Version is 9.0.

    Now I'm not near PC which has this core