05-02-2019, 09:02 PM
Frank, that set of constants looks like you've worked out how to write VHDL with good style. Remember that you can do arithmetic in those declarations. It won't sysnthesise any logic but may make it easier to write and understand. For example you wrote:
constant AVID_START_54_169 : integer := 81; -- activ video start pixel
constant AVID_STOP_54_169 : integer := 783; -- activ video stop pixel
It might be clearer to write:
constant AVID_START_54_169 : integer := 81; -- activ video start pixel
constant AVID_STOP_54_169 : integer := AVID_START_54_169 + 702; -- activ video stop pixel
That number 702 looks rather familiar
constant AVID_START_54_169 : integer := 81; -- activ video start pixel
constant AVID_STOP_54_169 : integer := 783; -- activ video stop pixel
It might be clearer to write:
constant AVID_START_54_169 : integer := 81; -- activ video start pixel
constant AVID_STOP_54_169 : integer := AVID_START_54_169 + 702; -- activ video stop pixel
That number 702 looks rather familiar
www.borinsky.co.uk Jeffrey Borinsky www.becg.tv







