zynq-sandbox

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3ebf784ccbd3649a5340aa5dcc9af4e74ad468b2
parent a4419135c7fd3087fee9b7fe450b1037e1f7741f
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri,  4 Jul 2014 03:49:11 -0700

hdmi_core: expose vblank indicator

Diffstat:
Mhdl/hdmi_core.sv | 5++++-
Mhdl/zybo_hdmi.sv | 3++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/hdl/hdmi_core.sv b/hdl/hdmi_core.sv @@ -29,7 +29,8 @@ module hdmi_core ( input [7:0]blu, // core status output [10:0]xpixel, - output [10:0]ypixel + output [10:0]ypixel, + output vblank ); parameter HWIDTH = 960; @@ -44,6 +45,8 @@ parameter VMAX = 624; reg [10:0] hcount, vcount; reg hsync, vsync, active; +assign vblank = vsync; + always @(posedge pixclk) begin if (hcount == HMAX) begin hcount <= 0; diff --git a/hdl/zybo_hdmi.sv b/hdl/zybo_hdmi.sv @@ -62,7 +62,8 @@ hdmi_core #( .grn(grn), .blu(blu), .xpixel(xpixel), - .ypixel(ypixel) + .ypixel(ypixel), + .vblank() ); // test pattern