From d34a85dbd0adbc4b8e2a579c7fc4c2c6c8779f71 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 29 Mar 2021 20:06:43 +0000 Subject: [PATCH] - added new VGA time specs - fixed ts_vga_800_600_60 git-svn-id: http://moon:8086/svn/vhdl/trunk@1591 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/VGA_ctrl/src/vga_types.vhd | 23 +++++++++++++++++++++-- projects/vga_ctrl/src/vga_ctrl_sys.vhd | 2 +- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/lib/VGA_ctrl/src/vga_types.vhd b/lib/VGA_ctrl/src/vga_types.vhd index e8fa93e..1d38e95 100644 --- a/lib/VGA_ctrl/src/vga_types.vhd +++ b/lib/VGA_ctrl/src/vga_types.vhd @@ -40,6 +40,7 @@ package vga_types is ----------------------------------------------------------------------- -- Common timimg specifications + -- see https://projectf.io/posts/video-timings-vga-720p-1080p/#hd-1920x1080-60-hz ----------------------------------------------------------------------- -- For test bench (not for H/W use) constant ts_vga_testbench : vga_timespec_t := @@ -73,8 +74,8 @@ package vga_types is ( f_pxl_clk => 40000000, nfps => 60, - ts_h => (800,40,128,88,'0'), - ts_v => (600,1,4,23,'0') + ts_h => (800,40,128,88,'1'), + ts_v => (600,1,4,23,'1') ); -- 800 x 600 @ 72 Hz (OK) @@ -104,6 +105,15 @@ package vga_types is ts_v => (768,3,6,29,'0') ); + -- 1280 x 720 @ 60 Hz (TBD) + constant ts_vga_1280_720_60 : vga_timespec_t := + ( + f_pxl_clk => 74250000, + nfps => 60, + ts_h => (1280,110,40,220,'1'), + ts_v => (720,5,5,20,'1') + ); + -- 1280 x 1024 @ 70 Hz (Noisy) constant ts_vga_1280_1024_70 : vga_timespec_t := ( @@ -122,6 +132,15 @@ package vga_types is ts_v => (1024,2,2,33,'0') ); + -- 1920 x 1080 @ 60 Hz (TBD) + constant ts_vga_1920_1080_60 : vga_timespec_t := + ( + f_pxl_clk => 148500000, + nfps => 60, + ts_h => (1920,88,44,148,'1'), + ts_v => (1080,4,5,36,'1') + ); + -- Functions function to_color_t(x : unsigned) return color_t; function to_unsigned(x : color_t) return unsigned; diff --git a/projects/vga_ctrl/src/vga_ctrl_sys.vhd b/projects/vga_ctrl/src/vga_ctrl_sys.vhd index 474be4a..8f97167 100644 --- a/projects/vga_ctrl/src/vga_ctrl_sys.vhd +++ b/projects/vga_ctrl/src/vga_ctrl_sys.vhd @@ -9,7 +9,7 @@ entity vga_ctrl_sys is Generic ( sys_freq_MHz : real := 100.0; - tsvga : vga_timespec_t := ts_vga_1280_1024_72 + tsvga : vga_timespec_t := ts_vga_800_600_60 ); Port (