13 USE ieee.std_logic_1164.
all;
14 use ieee.numeric_std.
all;
24 value_bus: in STD_LOGIC_VECTOR (width-1 downto 0);
25 tide_mark_out: out STD_LOGIC_VECTOR (width-1 downto 0)
33 tide_mark_block:
Process(clk_in)
34 Variable tide_mark: unsigned(width-1 downto 0);
36 if rising_edge(clk_in) then
37 if (rst_in = '1') then
38 tide_mark := (Others => '0');
39 elsif (tide_mark < unsigned(value_bus)) then
40 tide_mark := unsigned(value_bus);
42 tide_mark_out <= std_logic_vector(tide_mark);
44 End Process tide_mark_block;
Instantiate tide mark calculation for a 16 bit data input.
Instantiate tide mark calculation for a 16 bit data input.