- 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:
@@ -40,6 +40,7 @@ package vga_types is
|
|||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
-- Common timimg specifications
|
-- 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)
|
-- For test bench (not for H/W use)
|
||||||
constant ts_vga_testbench : vga_timespec_t :=
|
constant ts_vga_testbench : vga_timespec_t :=
|
||||||
@@ -73,8 +74,8 @@ package vga_types is
|
|||||||
(
|
(
|
||||||
f_pxl_clk => 40000000,
|
f_pxl_clk => 40000000,
|
||||||
nfps => 60,
|
nfps => 60,
|
||||||
ts_h => (800,40,128,88,'0'),
|
ts_h => (800,40,128,88,'1'),
|
||||||
ts_v => (600,1,4,23,'0')
|
ts_v => (600,1,4,23,'1')
|
||||||
);
|
);
|
||||||
|
|
||||||
-- 800 x 600 @ 72 Hz (OK)
|
-- 800 x 600 @ 72 Hz (OK)
|
||||||
@@ -104,6 +105,15 @@ package vga_types is
|
|||||||
ts_v => (768,3,6,29,'0')
|
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)
|
-- 1280 x 1024 @ 70 Hz (Noisy)
|
||||||
constant ts_vga_1280_1024_70 : vga_timespec_t :=
|
constant ts_vga_1280_1024_70 : vga_timespec_t :=
|
||||||
(
|
(
|
||||||
@@ -122,6 +132,15 @@ package vga_types is
|
|||||||
ts_v => (1024,2,2,33,'0')
|
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
|
-- Functions
|
||||||
function to_color_t(x : unsigned) return color_t;
|
function to_color_t(x : unsigned) return color_t;
|
||||||
function to_unsigned(x : color_t) return unsigned;
|
function to_unsigned(x : color_t) return unsigned;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ entity vga_ctrl_sys is
|
|||||||
Generic
|
Generic
|
||||||
(
|
(
|
||||||
sys_freq_MHz : real := 100.0;
|
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
|
Port
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user