- 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
This commit is contained in:
2021-03-29 20:06:43 +00:00
parent 1aa4dcee1f
commit d34a85dbd0
2 changed files with 22 additions and 3 deletions
+21 -2
View File
@@ -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;
+1 -1
View File
@@ -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
(