Comments (9)
Hi Jan,
That is odd, there is no audio postprocessing being done by the HDMI module. It could be monitor related, or I missed something in the HDMI spec. I will investigate on my FPGA and get back to you.
Glad it is otherwise working out.
from hdmi.
Hi, It is maybe related this issue:
in the module: audio_clock_regeneration_packet
i got this error on row 36: localparam CTS_WIDTH = $clog2(20'(CTS_IDEAL * 1.1));
error:
size casting a real expression violates IEEE 1800 LRM
I use Vivado 2019.2.1
from hdmi.
The CTS should not affect this, unless you are hearing jittering in the 16-bit audio that is not in the 24-bit audio. I should have some time to look at this today evening / tomorrow.
from hdmi.
Hi, It is maybe related this issue:
in the module: audio_clock_regeneration_packet
i got this error on row 36:localparam CTS_WIDTH = $clog2(20'(CTS_IDEAL * 1.1));
error:size casting a real expression violates IEEE 1800 LRM
I use Vivado 2019.2.1
It's "problem" of Vivado. It looks don't like real number in function $clog2, but it didn't resolve issue with low audio output.
from hdmi.
Hi Sameer, look at the picture i attached, please. It's audio output from TV. I used your example of Sawtooth wave generator. The saw tooth is damage. It looks like some samples words or bits of audio are not represented. I hope it helps you.
from hdmi.
I've been checking the code dependent on audio bit width but haven't found anything yet. Logically, I think everything is fine. If there is an issue, it is either in the internal audio buffer or the on-the-fly clock regeneration. The internal audio buffer is reset every time an audio packet is sent (every ~2 samples for 48kHz) so it would happen a lot. But I think if either of these were the problem we'd also see it in the 16 bit audio waveform. Could you capture a 16-bit waveform with your oscilloscope?
When using the sawtooth wave generator, did you set the bit width to be the SAME as the audio bit width? i.e.
localparam AUDIO_BIT_WIDTH = 16;
hdmi #(.AUDIO_BIT_WIDTH(AUDIO_BIT_WIDTH)) hdmi ();
sawtooth #(.BIT_WIDTH(AUDIO_BIT_WIDTH)) sawtooth ();
and then for 24-bit
localparam AUDIO_BIT_WIDTH = 24;
hdmi #(.AUDIO_BIT_WIDTH(AUDIO_BIT_WIDTH)) hdmi ();
sawtooth #(.BIT_WIDTH(AUDIO_BIT_WIDTH)) sawtooth ();
What I've checked so far in the code:
- IEC 60958-3: bits 35 down to 32 are correct in channel status
- 16-bit: 001 0 as expected
- 24-bit: 101 1 as expected
- Channel status bit order correct and all parameters present
- Sample size in Audio InfoFrame set to "See stream header" (2'd0) as expected in CEA-861-D
- Sample packet header
- 2-channel layout
- Aligned frame counter correct
- First frame of channel status assignment correct
- Sample subpacket
- Sample word present assignment correct
- Packet parity correct
- Right/left channels in correct placement
- User data bits set to 0 (no user data)
- Valid bits set to 0 (always valid)
- packet_picker.sv
- Frame counter correct
- all ports connected to the sample packet
from hdmi.
Updated plots after correcting sawtooth:
16-bit plot:
24-bit plot:
Visible approximation:
Yeah it's definitely quieter. My working theory is that even though it's been set to 16-bit audio, the HDMI sink is actually perceiving the sample as 24-bit audio. The frequency is right, but the dynamic range is MUCH lower. Have to investigate why it's ignoring the 16-bit audio setting in the channel status.
from hdmi.
Graphs from my computer for 24-bit sawtooth generated with SoX looks exactly the same as the output from the FPGA:
from hdmi.
After fixing the padding, 16-bit is output correctly:
Approximation looks about the same:
from hdmi.
Related Issues (20)
- LCD Bus Compatible Input HOT 4
- Casting that is used in testbench is not in accordance with LRM HOT 1
- How to use in Spartan 6? How to translate to Verilog? HOT 7
- Works on ULX3S (Lattice ECP5) HOT 13
- sawtooth sound output problem HOT 7
- something wrong in audio HOT 6
- implmenting hdl-util/hdmi on a Spartan Edge Accelerator system HOT 1
- Tang Nano 9K HOT 3
- Need help... HOT 19
- Not apply
- IP-less serializer is not working HOT 1
- Source Product Description Infoframe checksum wrong HOT 1
- Distorted audio when 24bits are used HOT 1
- Can't Synthesis on Vivado 2022 HOT 1
- Incorrect Calculation Formula for N in Audio Regeneration HOT 1
- Potential violation of the HDMI 12 pixel minimum control period HOT 4
- Clarify license HOT 2
- DDR instead of LVDS output. HOT 1
- some information HOT 2
- incompatibility with capture devices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdmi.