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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [mips_tb2_template.vhdl] - Diff between revs 86 and 97

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

Rev 86 Rev 97
Line 127... Line 127...
signal sram_data_wr :       std_logic_vector(15 downto 0);
signal sram_data_wr :       std_logic_vector(15 downto 0);
signal sram_byte_we_n :     std_logic_vector(1 downto 0);
signal sram_byte_we_n :     std_logic_vector(1 downto 0);
signal sram_oe_n :          std_logic;
signal sram_oe_n :          std_logic;
 
 
-- interface cpu-cache
-- interface cpu-cache
signal cpu_data_rd_addr :   t_word;
signal cpu_data_addr :      t_word;
signal cpu_data_rd_vma :    std_logic;
signal cpu_data_rd_vma :    std_logic;
signal cpu_data_rd :        t_word;
signal cpu_data_rd :        t_word;
signal cpu_code_rd_addr :   t_pc;
signal cpu_code_rd_addr :   t_pc;
signal cpu_code_rd :        t_word;
signal cpu_code_rd :        t_word;
signal cpu_code_rd_vma :    std_logic;
signal cpu_code_rd_vma :    std_logic;
signal cpu_data_wr_addr :   t_pc;
 
signal cpu_data_wr :        t_word;
signal cpu_data_wr :        t_word;
signal cpu_byte_we :        std_logic_vector(3 downto 0);
signal cpu_byte_we :        std_logic_vector(3 downto 0);
signal cpu_mem_wait :       std_logic;
signal cpu_mem_wait :       std_logic;
 
 
-- interface to i/o
-- interface to i/o
Line 181... Line 180...
 
 
    cpu: entity work.mips_cpu
    cpu: entity work.mips_cpu
    port map (
    port map (
        interrupt   => '0',
        interrupt   => '0',
 
 
        data_rd_addr=> cpu_data_rd_addr,
        data_addr   => cpu_data_addr,
        data_rd_vma => cpu_data_rd_vma,
        data_rd_vma => cpu_data_rd_vma,
        data_rd     => cpu_data_rd,
        data_rd     => cpu_data_rd,
 
 
        code_rd_addr=> cpu_code_rd_addr,
        code_rd_addr=> cpu_code_rd_addr,
        code_rd     => cpu_code_rd,
        code_rd     => cpu_code_rd,
        code_rd_vma => cpu_code_rd_vma,
        code_rd_vma => cpu_code_rd_vma,
 
 
        data_wr_addr=> cpu_data_wr_addr,
 
        data_wr     => cpu_data_wr,
        data_wr     => cpu_data_wr,
        byte_we     => cpu_byte_we,
        byte_we     => cpu_byte_we,
 
 
        mem_wait    => cpu_mem_wait,
        mem_wait    => cpu_mem_wait,
 
 
        clk         => clk,
        clk         => clk,
        reset       => reset
        reset       => reset
    );
    );
 
 
 
 
    cache: entity work.mips_cache_stub
    cache: entity work.mips_cache_stub
    generic map (
    generic map (
        BRAM_ADDR_SIZE => BRAM_ADDR_SIZE,
        BRAM_ADDR_SIZE => BRAM_ADDR_SIZE,
        SRAM_ADDR_SIZE => 32 -- we need the full address to decode sram vs flash
        SRAM_ADDR_SIZE => 32,-- we need the full address to decode sram vs flash
 
        LINE_SIZE =>      4,
 
        CACHE_SIZE =>     256
    )
    )
    port map (
    port map (
        clk             => clk,
        clk             => clk,
        reset           => reset,
        reset           => reset,
 
 
        -- Interface to CPU core
        -- Interface to CPU core
        data_rd_addr    => cpu_data_rd_addr,
        data_addr       => cpu_data_addr,
        data_rd         => cpu_data_rd,
        data_rd         => cpu_data_rd,
        data_rd_vma     => cpu_data_rd_vma,
        data_rd_vma     => cpu_data_rd_vma,
 
 
        code_rd_addr    => cpu_code_rd_addr,
        code_rd_addr    => cpu_code_rd_addr,
        code_rd         => cpu_code_rd,
        code_rd         => cpu_code_rd,
        code_rd_vma     => cpu_code_rd_vma,
        code_rd_vma     => cpu_code_rd_vma,
 
 
        data_wr_addr    => cpu_data_wr_addr,
 
        byte_we         => cpu_byte_we,
        byte_we         => cpu_byte_we,
        data_wr         => cpu_data_wr,
        data_wr         => cpu_data_wr,
 
 
        mem_wait        => cpu_mem_wait,
        mem_wait        => cpu_mem_wait,
        cache_enable    => '1',
        cache_enable    => '1',
Line 280... Line 280...
        done <= '1';
        done <= '1';
        wait;
        wait;
 
 
    end process drive_uut;
    end process drive_uut;
 
 
    full_rd_addr <= cpu_data_rd_addr;
    full_rd_addr <= cpu_data_addr;
    full_wr_addr <= cpu_data_wr_addr & "00";
    full_wr_addr <= cpu_data_addr(31 downto 2) & "00";
    full_code_addr <= cpu_code_rd_addr & "00";
    full_code_addr <= cpu_code_rd_addr & "00";
 
 
    data_ram_block:
    data_ram_block:
    process(clk)
    process(clk)
    begin
    begin

powered by: WebSVN 2.1.0

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