Realtimestagram
Generics | Ports | Types | Libraries | Use Clauses
hsv2rgb Entity Reference

Description

Creates Red Green and Blue channels from Hue Saturation Value inputs.

Calculation of RGB to HSV

\[I_{RGB} = \left\{\begin{matrix} \{V,V-VS,V-VSH_{LSB}\}, & H_{MSB}=0 \\ \{V,V-VS(1-H_{LSB}),V-VS\}, & H_{MSB}=1 \\ \{V-VSH_{LSB},V,V-VS\}, & H_{MSB}=2 \\ \{V-VS,V,V-VS(1-H_{LSB})\}, & H_{MSB}=3 \\ \{V-VS,V-VSH_{LSB},V\}, & H_{MSB}=4 \\ \{V-VS(1-H_{LSB}),V-VS,V\}, & H_{MSB}=5 \end{matrix}\right.\]

Libraries

ieee 

Use Clauses

std_logic_1164 
numeric_std 
math_real 
 Used for calculation of h_count and v_count port width.

Types

s_t_v_delay ( 0 to 2 ) integer range 0 to 2 ** ( wordsize * 2 )
s_t_v_min_v_delay ( 0 to 3 ) integer range 0 to 2 ** ( wordsize * 2 )
v_delay ( 0 to 5 ) integer range 0 to 2 ** wordsize
val_delay ( 0 to 3 ) integer range 0 to 2 ** wordsize
h_msb_delay ( 0 to 3 ) integer range 0 to 6

Generics

wordsize  integer := 8
 input image wordsize in bits

Ports

clk   in std_logic
 completely clocked process
rst   in std_logic
 asynchronous reset
enable   in std_logic
 enables block
pixel_hue_i   in std_logic_vector ( ( wordsize - 1 ) downto 0 )
 hue value of pixel
pixel_sat_i   in std_logic_vector ( ( wordsize - 1 ) downto 0 )
 saturation of pixel
pixel_val_i   in std_logic_vector ( ( wordsize - 1 ) downto 0 )
 value of pixel
pixel_red_o   out std_logic_vector ( ( wordsize - 1 ) downto 0 )
 red output pixel
pixel_green_o   out std_logic_vector ( ( wordsize - 1 ) downto 0 )
 green output pixel
pixel_blue_o   out std_logic_vector ( ( wordsize - 1 ) downto 0 )
 blue output pixel

Member Data Documentation

§ clk

clk in std_logic
Port

completely clocked process

§ enable

enable in std_logic
Port

enables block

§ h_msb_delay

h_msb_delay ( 0 to 3 ) integer range 0 to 6
Type

§ ieee

ieee
Library

§ math_real

math_real
Package

Used for calculation of h_count and v_count port width.

§ numeric_std

numeric_std
Package

§ pixel_blue_o

pixel_blue_o out std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

blue output pixel

§ pixel_green_o

pixel_green_o out std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

green output pixel

§ pixel_hue_i

pixel_hue_i in std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

hue value of pixel

§ pixel_red_o

pixel_red_o out std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

red output pixel

§ pixel_sat_i

pixel_sat_i in std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

saturation of pixel

§ pixel_val_i

pixel_val_i in std_logic_vector ( ( wordsize - 1 ) downto 0 )
Port

value of pixel

§ rst

rst in std_logic
Port

asynchronous reset

§ s_t_v_delay

s_t_v_delay ( 0 to 2 ) integer range 0 to 2 ** ( wordsize * 2 )
Type

§ s_t_v_min_v_delay

s_t_v_min_v_delay ( 0 to 3 ) integer range 0 to 2 ** ( wordsize * 2 )
Type

§ std_logic_1164

std_logic_1164
Package

§ v_delay

v_delay ( 0 to 5 ) integer range 0 to 2 ** wordsize
Type

§ val_delay

val_delay ( 0 to 3 ) integer range 0 to 2 ** wordsize
Type

§ wordsize

wordsize integer := 8
Generic

input image wordsize in bits


The documentation for this class was generated from the following file: