/*
-- VGA timing
-- Horizontal:
--___________________________
-- |
-- _______________ | Video | ___________ | video (next line)
--______________________________________________________
-- | _ |
-- B <-C-> <---- D ----> <-e->
-- <------------ A --------->
-- The unit used below are pixels;
-- B-> sync_cycle: h_sync_cycle
-- C-> back_porch: hori_back
-- D-> visable Area
-- E-> front porch: hori_front
-- A-> horizontal line total length: hori_line
-- Vertical:
--___________________________
-- |
-- ______________ | Video | _______________ | video (next frame)
--
--_____________________________________________________
-- | _ |
-- P <-Q-> <---- R ----> <-S->
-- <----------- O ---------->
-- The unit used below are horizontal lines;
-- P-> sync_cycle: v_sync_cycle
-- Q-> back_porch: vert_back
-- R-> visable Area
-- S-> front porch: vert_front
-- O-> vertical line total length: vert_line
*/////////////////////////////////////// /////
////////////////////////
// Parameter
Parameter hori_line = 1800; // Hor total time
Parameter hori_back = 312; // Hor blank time 312 + 0
Parameter hori_front = 96; // 96 + 0
Parameter vert_line = 1000; // ver total time
Parameter vert_back = 36; // 36 + 0
Parameter vert_front = 1; // 1 + 0
Parameter h_sync_cycle = 112; // Hor sync time
Parameter v_sync_cycle = 3; // ver sync time