modify frame
This commit is contained in:
1 parent
992956095d
commit
aaf622a2aa
1 file changed
+10
@@ -395,6 +395,7 @@ always@(posedge clk_sys) begin
|
|||||||
`ifndef MISTER_DEBUG_NOHDMI
|
`ifndef MISTER_DEBUG_NOHDMI
|
||||||
if(io_din[7:0] == 'h40) io_dout_sys <= fb_crc;
|
if(io_din[7:0] == 'h40) io_dout_sys <= fb_crc;
|
||||||
`endif
|
`endif
|
||||||
|
if(io_din[7:0] == 'h42) io_dout_sys <= {1'b1, frame_cnt};
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
cnt <= cnt + 1'd1;
|
cnt <= cnt + 1'd1;
|
||||||
@@ -535,6 +536,15 @@ always@(posedge clk_sys) begin
|
|||||||
if(~vs_d2 & vs_d1) vs_wait <= 0;
|
if(~vs_d2 & vs_d1) vs_wait <= 0;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
reg [7:0] frame_cnt;
|
||||||
|
always @(posedge clk_sys) begin
|
||||||
|
reg vs_r, vs_old;
|
||||||
|
|
||||||
|
vs_r <= vs_fix;
|
||||||
|
if(vs_r == vs_fix) vs_old <= vs_r;
|
||||||
|
if(~vs_old & vs_r) frame_cnt <= frame_cnt + 1'd1;
|
||||||
|
end
|
||||||
|
|
||||||
cyclonev_hps_interface_peripheral_uart uart
|
cyclonev_hps_interface_peripheral_uart uart
|
||||||
(
|
(
|
||||||
.ri(0),
|
.ri(0),
|
||||||
|
|||||||
Reference in new issue
Block a user