Skip to content

Commit

Permalink
add format 34 (1080p30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Feb 6, 2021
1 parent 3214188 commit 2a35976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ You'll need to set up a PLL for producing the two HDMI clocks. The pixel clock f
|1280x720|4|59.94Hz|74.176MHz|
|1920x1080|16|60Hz|148.5MHz|
|1920x1080|16|59.94Hz|148.352MHz|
|1920x1080|34|30Hz|74.25MHz|
|1920x1080|34|29.97Hz|74.176MHz|
|720x576|17, 18|50Hz|27MHz|
|1280x720|19|50Hz|74.25MHz|
|3840x2160|97, 107|60Hz|594MHz|
Expand Down
5 changes: 3 additions & 2 deletions src/hdmi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ generate
assign hsync = cx >= 110 && cx < 110 + 40;
assign vsync = cy >= 5 && cy < 5 + 5;
end
16:
16, 34:
begin
assign frame_width = 2200;
assign frame_height = 1125;
Expand Down Expand Up @@ -212,8 +212,9 @@ generate
: VIDEO_ID_CODE == 16 ? 148.5E6
: VIDEO_ID_CODE == 17 || VIDEO_ID_CODE == 18 ? 27E6
: VIDEO_ID_CODE == 19 ? 74.25E6
: VIDEO_ID_CODE == 34 ? 74.25E6
: VIDEO_ID_CODE == 97 || VIDEO_ID_CODE == 107 ? 594E6
: 0) * (VIDEO_REFRESH_RATE == 59.94 ? 1000.0/1001.0 : 1); // https://groups.google.com/forum/#!topic/sci.engr.advanced-tv/DQcGk5R_zsM
: 0) * (VIDEO_REFRESH_RATE == 59.94 || VIDEO_REFRESH_RATE == 29.97 ? 1000.0/1001.0 : 1); // https://groups.google.com/forum/#!topic/sci.engr.advanced-tv/DQcGk5R_zsM
packet_picker #(
.VIDEO_ID_CODE(VIDEO_ID_CODE),
.VIDEO_RATE(VIDEO_RATE),
Expand Down

0 comments on commit 2a35976

Please sign in to comment.