OpenCores
URL https://opencores.org/ocsvn/i2c/i2c/trunk

Subversion Repositories i2c

[/] [i2c/] [trunk/] [rtl/] [vhdl/] [i2c_master_bit_ctrl.vhd] - Diff between revs 75 and 76

Show entire file | Details | Blame | View Log

Rev 75 Rev 76
Line 271... Line 271...
        filter_divider: process(clk, nReset)
        filter_divider: process(clk, nReset)
        begin
        begin
            if (nReset = '0') then
            if (nReset = '0') then
                filter_cnt <= (others => '0');
                filter_cnt <= (others => '0');
            elsif (clk'event and clk = '1') then
            elsif (clk'event and clk = '1') then
                if ((rst = '1') or (filter_cnt = 0)) then
                if ( (rst = '1') or (ena = '0') ) then
 
                    filter_cnt <= (others => '0');
 
                elsif (filter_cnt = 0) then
                    filter_cnt <= clk_cnt(15 downto 2);
                    filter_cnt <= clk_cnt(15 downto 2);
                else
                else
                    filter_cnt <= filter_cnt -1;
                    filter_cnt <= filter_cnt -1;
                end if;
                end if;
            end if;
            end if;

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.