V_DISPLAY: integer := 480;
V_FRONT_PORCH: integer := 10;
V_SYNC_WIDTH: integer := 2;
- V_BACK_PORCH: integer := 29
+ V_BACK_PORCH: integer := 33
);
port (
clk_50: in std_logic;
begin
if rising_edge(clk_50) then
if h_sync_start = '1' then
- h_sync_reg <= '1';
- elsif h_sync_end = '1' then
h_sync_reg <= '0';
+ elsif h_sync_end = '1' then
+ h_sync_reg <= '1';
end if;
end if;
end process;
begin
if rising_edge(clk_50) then
if v_sync_start = '1' then
- v_sync_reg <= '1';
- elsif v_sync_end = '1' then
v_sync_reg <= '0';
+ elsif v_sync_end = '1' then
+ v_sync_reg <= '1';
end if;
end if;
end process;