参考 HDMI1.4标准《High-Definition Multimedia Interface Specification》
这份文件放在百度网盘共享了,上传到文档平台会被封禁,如果侵权,麻烦联系我删除,谢谢
链接:https://pan.baidu.com/s/1hq0l3EKp3_fF4MsHQ3Qm_w
提取码:MUSE
//-----------------------------------------------------------//
// 水平扫描参数的设定3840*2160 30Hz
//-----------------------------------------------------------/
parameter LinePeriod =4400; //行周期数
parameter H_SyncPulse=88; //行同步脉冲(Sync a)
parameter H_BackPorch=296; //显示后沿(Back porch b)
parameter H_ActivePix=3840; //显示时序段(Display interval c)
parameter H_FrontPorch=176; //显示前沿(Front porch d)
parameter Hde_start=560; //行DE信号起始(De start)
parameter Hde_end=4400; //行DE信号结束(De end)
//-----------------------------------------------------------//
// 垂直扫描参数的设定3840*2160 30Hz
//-----------------------------------------------------------//
parameter FramePeriod =2250; //列周期数
parameter V_SyncPulse=10; //列同步脉冲(Sync o)
parameter V_BackPorch=72; //显示后沿(Back porch p)
parameter V_ActivePix=2160; //显示时序段(Display interval q)
parameter V_FrontPorch=8; //显示前沿(Front porch r)
parameter Vde_start=90; //列DE信号起始(De start)
parameter Vde_end=2250; //列DE信号结束(De end)
数据速率和时钟的关系
• 24 bit mode: TMDS clock = 1.0 x pixel clock (1:1)
• 30 bit mode: TMDS clock = 1.25 x pixel clock (5:4)
• 36 bit mode: TMDS clock = 1.5 x pixel clock (3:2)
• 48 bit mode: TMDS clock = 2.0 x pixel clock (2:1)
hsync_width 行同步宽度 Hor Sync Time
hsync_front_porch 行同步前沿 H Front Porch
vsync_width 场同步宽度 Ver Sync Time
vsync_front_porch 场同步前沿 V Front Porch
常用分辨率时序
4K30 3840x2160
video: {
width: 3840,
height: 2160,
frames_per_second: 30,
color_space: RGB,
bits_per_pixel: 8,
scan_mode: PROGRESSIVE
},
has_video_details: true,
video_details: {
frame_rate: 29.97,
pixel_clock: 296729313,
total_width: 4400,
total_height: 2250,
hsync_width: 88,
hsync_front_porch: 176,
hsync_negative: false,
vsync_width: 10,
vsync_front_porch: 8,
vsync_negative: false,
vic: 0,
has_hdmi_vic: true,
hdmi_vic: 1,
picture_aspect: ASPECT_NO_DATA,
has_active_format: false,
active_format: 0,
it_content_type: NO_DATA,
scan_information: NO_DATA,
colorimetry: RGB,
rgb_range: DEFAULT,
ycc_range: LIMITED,
has_hdr: false,
hdr: SDR
},
4K30W 4096x2160
video: {
width: 4096,
height: 2160,
frames_per_second: 30,
color_space: RGB,
bits_per_pixel: 8,
scan_mode: PROGRESSIVE
},
has_video_details: true,
video_details: {
frame_rate: 29.97,
pixel_clock: 296729313,
total_width: 4400,
total_height: 2250,
hsync_width: 88,
hsync_front_porch: 88,
hsync_negative: false,
vsync_width: 10,
vsync_front_porch: 8,
vsync_negative: false,
vic: 100,
has_hdmi_vic: false,
hdmi_vic: 0,
picture_aspect: ASPECT_NO_DATA,
has_active_format: false,
active_format: 0,
it_content_type: NO_DATA,
scan_information: NO_DATA,
colorimetry: RGB,
rgb_range: FULL,
ycc_range: LIMITED,
has_hdr: false,
hdr: SDR
},
1080P120 1920x1080
video: {
width: 1920,
height: 1080,
frames_per_second: 120,
color_space: RGB,
bits_per_pixel: 8,
scan_mode: PROGRESSIVE
},
has_video_details: true,
video_details: {
frame_rate: 120.01,
pixel_clock: 297027662,
total_width: 2200,
total_height: 1125,
hsync_width: 44,
hsync_front_porch: 88,
hsync_negative: false,
vsync_width: 5,
vsync_front_porch: 4,
vsync_negative: false,
vic: 63,
has_hdmi_vic: false,
hdmi_vic: 0,
picture_aspect: ASPECT_16_9,
has_active_format: false,
active_format: 0,
it_content_type: NO_DATA,
scan_information: NO_DATA,
colorimetry: RGB,
rgb_range: FULL,
ycc_range: LIMITED,
has_hdr: false,
hdr: SDR
},
4K60 420
video: {
width: 3840,
height: 2160,
frames_per_second: 60,
color_space: YCBCR_420,
bits_per_pixel: 8,
scan_mode: PROGRESSIVE
},
has_video_details: true,
video_details: {
frame_rate: 59.95,
pixel_clock: 593459312,
total_width: 4400,
total_height: 2250,
hsync_width: 88,
hsync_front_porch: 176,
hsync_negative: false,
vsync_width: 10,
vsync_front_porch: 8,
vsync_negative: false,
vic: 97,
has_hdmi_vic: false,
hdmi_vic: 0,
picture_aspect: ASPECT_16_9,
has_active_format: false,
active_format: 0,
it_content_type: NO_DATA,
scan_information: NO_DATA,
colorimetry: BT709,
rgb_range: DEFAULT,
ycc_range: LIMITED,
has_hdr: false,
hdr: SDR
},