Help with VHDL code - Digital Audio Meter project

OP #2613829
Rate this post
• ▲ useful
▼ not useful
Hi Folks,

I need help to mod the code for  this FPGA based (Altera CycloneII 
EP2C5T144) Digital Peak Level Meter:
http://www.beis.de/Elektronik/DPLCM/DPLCM.html

The code is available at the bottom of the page.
The problem:
I don't need the SPDIF feature, so I would like to implement
an I2S input, which would be directly connected to the output of the
A/D Converter.

The I2S lines are:
BCK (Serial Bit Clock)
WS (Word Select, or LRCLK)
SDI (Audio Serial Data Input)

The I2S timing and standard description can be found at:
http://www.classic.nxp.com/acrobat_download2/various/I2SBUS.pdf

Can anyone help?

Thanks in advance.
Moderator (Company: Titel) #2613951
Rate this post
• ▲ useful
▼ not useful
> Can anyone help?
Cut out the SPDIF-Rx.vhd and replace it by your I2S-Rx.vhd
Inside this I2S-Rx.vhd you have to implement the I²S decoder. And thats 
fairly simple: for sure the I²S decoder will cost less than 50 lines of 
code...

Data afterwards is passed to the upper level module by
AudioData0  : out std_logic_vector(23 downto 0);
AudioData1  : out std_logic_vector(23 downto 0);

> Can anyone help?
With what?
Pls ask more specific questions instead of "who can do my work?"
OP #2616197
Rate this post
• ▲ useful
▼ not useful
Lothar Miller wrote:
>> Can anyone help?
> Cut out the SPDIF-Rx.vhd and replace it by your I2S-Rx.vhd
> Inside this I2S-Rx.vhd you have to implement the I²S decoder. And thats
> fairly simple: for sure the I²S decoder will cost less than 50 lines of
> code...
>
> Data afterwards is passed to the upper level module by
> AudioData0  : out std_logic_vector(23 downto 0);
> AudioData1  : out std_logic_vector(23 downto 0);
>
>> Can anyone help?
> With what?
> Pls ask more specific questions instead of "who can do my work?"

Who can do my work:
I should have been clearer: I'm not a programmer, it's not my work. I 
wouldn't know where to start.
So the help is for the code itself.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.