Comments (6)
Hi @sameer,
I have created another issue.
Thank you very much.
from hdmi.
Hi Jan,
I'm not aware of any particular logic that would cause that. Could you share the changes you made to that code to use 24 bit audio? That way I can look into this issue with the top testbench. Also, did you already try using a non-signed representation?
from hdmi.
Hi Sameer,
sorry for confusion second problem is not related to 24bits audio, but with 44100Hz sample rate. I use this code:
logic clk_audio;
logic [8:0] audio_divider;
always_ff@(posedge clk_pixel)
begin
if (audio_divider<9'd306-1) audio_divider++; //generated from clk_pixel 27.0000MHz/281=48042,70Hz ; 27.0000MHz/306=44117,64Hz
else begin clk_audio<=~clk_audio; audio_divider<=0; end
end
logic [23:0] audio_sample_word [1:0] = '{24'sd0, 24'sd0};
always_ff@(posedge clk_audio)
begin
audio_sample_word[0] <= audio_sample_word[0] + 128; //sawtooth generator
audio_sample_word[1] <= audio_sample_word[1] - 256;
end
logic [23:0] rgb = 24'd0;
logic [9:0] cx, cy, screen_start_x, screen_start_y, frame_width, frame_height, screen_width, screen_height;
// Border test (left = red, top = green, right = blue, bottom = blue, fill = black)
always_ff@(posedge clk_pixel)
rgb <= {cx == screen_start_x ? ~8'd0 : 8'd0, cy == screen_start_y ? ~8'd0 : 8'd0, cx == frame_width - 1'd1 || cy == frame_height - 1'd1 ? ~8'd0 : 8'd0};
hdmi #(.VIDEO_ID_CODE(17), .VIDEO_REFRESH_RATE(50), .AUDIO_RATE(44100), .AUDIO_BIT_WIDTH(24)) hdmi(
.clk_pixel_x10(clk_pixel_x10),
.clk_pixel(clk_pixel),
.clk_audio(clk_audio),
.rgb(rgb),
.audio_sample_word(audio_sample_word),
.tmds_p(dvdata_p),
.tmds_clock_p(dvclk_p),
.tmds_n(dvdata_n),
.tmds_clock_n(dvclk_n),
.cx(cx),
.cy(cy),
.screen_start_x(screen_start_x),
.screen_start_y(screen_start_y),
.frame_width(frame_width),
.frame_height(frame_height),
.screen_width(screen_width),
.screen_height(screen_height)
);
and look at how is signal produced.
When I change sample rate to 48000Hz the signal has nice sawtooth shape.
from hdmi.
Hi,
l think you are successful to set up and show.
I use the test pattern to test, there are always two block shown.
Is my screen not supported? or something wrong?
Did you have some ideas?
from hdmi.
from hdmi.
Should be resolved by 08936f6
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
- 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.