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

Subversion Repositories potato

[/] [potato/] [trunk/] [example/] [toplevel.vhd] - Diff between revs 21 and 45

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 21 Rev 45
Line 207... Line 207...
                );
                );
 
 
        uart1: entity work.pp_soc_uart
        uart1: entity work.pp_soc_uart
                generic map(
                generic map(
                        FIFO_DEPTH => 64,
                        FIFO_DEPTH => 64,
                        --SAMPLE_CLK_DIVISOR => 27 -- For 50 MHz
                        SAMPLE_CLK_DIVISOR => 27 -- For 50 MHz
                        SAMPLE_CLK_DIVISOR => 33 -- For 60 MHz
                        --SAMPLE_CLK_DIVISOR => 33 -- For 60 MHz
                ) port map(
                ) port map(
                        clk => system_clk,
                        clk => system_clk,
                        reset => reset,
                        reset => reset,
                        txd => uart_txd,
                        txd => uart_txd,
                        rxd => uart_rxd,
                        rxd => uart_rxd,
Line 299... Line 299...
                                ad_state <= IDLE;
                                ad_state <= IDLE;
                                active_module <= MODULE_NONE;
                                active_module <= MODULE_NONE;
                        else
                        else
                                case ad_state is
                                case ad_state is
                                        when IDLE =>
                                        when IDLE =>
                                                if p_cyc_out = '1' and p_stb_out = '1' then
                                                if p_cyc_out = '1' then
                                                        if p_adr_out(31 downto 13) = b"0000000000000000000" then
                                                        if p_adr_out(31 downto 13) = b"0000000000000000000" then
                                                                active_module <= MODULE_IMEM;
                                                                active_module <= MODULE_IMEM;
                                                                ad_state <= BUSY;
                                                                ad_state <= BUSY;
                                                        elsif p_adr_out(31 downto 13) = b"0000000000000000001" then -- 0x2000
                                                        elsif p_adr_out(31 downto 13) = b"0000000000000000001" then -- 0x2000
                                                                active_module <= MODULE_DMEM;
                                                                active_module <= MODULE_DMEM;
Line 322... Line 322...
                                                                ad_state <= BUSY;
                                                                ad_state <= BUSY;
                                                        else
                                                        else
                                                                active_module <= MODULE_DUMMY;
                                                                active_module <= MODULE_DUMMY;
                                                                ad_state <= BUSY;
                                                                ad_state <= BUSY;
                                                        end if;
                                                        end if;
 
                                                else
 
                                                        active_module <= MODULE_NONE;
                                                end if;
                                                end if;
                                        when BUSY =>
                                        when BUSY =>
                                                if p_cyc_out = '0' then
                                                if p_cyc_out = '0' then
                                                        active_module <= MODULE_NONE;
                                                        active_module <= MODULE_NONE;
                                                        ad_state <= IDLE;
                                                        ad_state <= IDLE;

powered by: WebSVN 2.1.0

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