金牌会员
- 积分
- 1311
- 金钱
- 1311
- 注册时间
- 2021-4-28
- 在线时间
- 496 小时
|
28金钱
请问各位原子的老师,我想做两路摄像头的输入,一路HDMI输出的视频流的切换,
always @(*) begin
if (switch_sdi == 1'b0) begin
hdmi_tx_pclk = pixel_clk;
hdmi_tx_pclk_x5 = pixel_clk_5x;
hdmi_tx_hs = rx0_hsync;
hdmi_tx_vs = rx0_vsync;
hdmi_tx_de = rx0_de;
hdmi_tx_rgb = rx0_rgb;
end
else if (switch_sdi == 1'b1) begin
hdmi_tx_pclk = pixel_clk_2;
hdmi_tx_pclk_x5 = pixel_clk_5x_2;
hdmi_tx_hs = rx1_hsync;
hdmi_tx_vs = rx1_vsync;
hdmi_tx_de = rx1_de;
hdmi_tx_rgb = rx1_rgb;
end
else begin
hdmi_tx_pclk = pixel_clk;
hdmi_tx_pclk_x5 = pixel_clk_5x;
hdmi_tx_hs = rx0_hsync;
hdmi_tx_vs = rx0_vsync;
hdmi_tx_de = rx0_de;
hdmi_tx_rgb = rx0_rgb;
end
end
assign hdmi_reset_n = pixel_clk_loken & pixel_clk_loken_2;
dvi_transmitter_top u_dvi_transmitter_top(
.pclk (hdmi_tx_pclk ), // pixel clock
.pclk_x5 (hdmi_tx_pclk_x5 ), // pixel clock x5
.reset_n (hdmi_reset_n ), // reset
.video_din (hdmi_tx_rgb ), // RGB888 video in
.video_hsync (hdmi_tx_hs ), // hsync data
.video_vsync (hdmi_tx_vs ), // vsync data
.video_de (hdmi_tx_de ), // data enable
.tmds_clk_p (TMDS_clk_p ),
.tmds_clk_n (TMDS_clk_n ),
.tmds_data_p (TMDS_data_p ),
.tmds_data_n (TMDS_data_n ),
.tmds_oen ()
);
以上是代码,我在用vio切换的时候 ,HDMI视频流输出没有画面,求解各位老师
|
|