⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cache.vhd

📁 宇航级微处理器LEON2 2.2 VHDL源代码,很难找的.
💻 VHD
字号:
------------------------------------------------------------------------------  This file is a part of the LEON VHDL model--  Copyright (C) 1999  European Space Agency (ESA)----  This library is free software; you can redistribute it and/or--  modify it under the terms of the GNU Lesser General Public--  License as published by the Free Software Foundation; either--  version 2 of the License, or (at your option) any later version.----  See the file COPYING.LGPL for the full details of the license.------------------------------------------------------------------------------- Entity: 	cache-- File:	cache.vhd-- Author:	Jiri Gaisler - ESA/ESTEC-- Description:	Complete cache sub-system with controllers and rams-------------------------------------------------------------------------------- Version control:-- 17-02-1999:	First implemetation-- 26-09-1999:	Release 1.0------------------------------------------------------------------------------library IEEE;use IEEE.std_logic_1164.all;use work.config.all;use work.amba.all;use work.iface.all;entity cache is  port (    rst   : in  std_logic;    clk   : in  clk_type;    ici   : in  icache_in_type;    ico   : out icache_out_type;    dci   : in  dcache_in_type;    dco   : out dcache_out_type;    mcii  : out memory_ic_in_type;    mcio  : in  memory_ic_out_type;    mcdi  : out memory_dc_in_type;    mcdo  : in  memory_dc_out_type;    fpuholdn : in  std_logic  );end; architecture rtl of cache iscomponent dcache  port (    rst    : in  std_logic;    clk    : in  clk_type;    dci    : in  dcache_in_type;    dco    : out dcache_out_type;    ico    : in  icache_out_type;    mcdi   : out memory_dc_in_type;    mcdo   : in  memory_dc_out_type;    dcrami : out dcram_in_type;    dcramo : in  dcram_out_type;    fpuholdn : in  std_logic);end component; component icache  port (    rst    : in  std_logic;    clk    : in  clk_type;    ici    : in  icache_in_type;    ico    : out icache_out_type;    dci    : in  dcache_in_type;    dco    : in  dcache_out_type;    mcii   : out memory_ic_in_type;    mcio   : in  memory_ic_out_type;    icrami : out icram_in_type;    icramo : in  icram_out_type;    fpuholdn : in  std_logic);end component; component cachemem   port (    	clk   : in  std_logic;	crami : in  cram_in_type;	cramo : out cram_out_type  );end component;signal icol  : icache_out_type;signal dcol  : dcache_out_type;signal crami : cram_in_type;signal cramo : cram_out_type;begin-- instruction cache controller  icache0 : icache port map ( rst, clk, ici, icol, dci, dcol, mcii, mcio,    			      crami.icramin, cramo.icramout, fpuholdn);-- data cache controller  dcache0 : dcache port map ( rst, clk, dci, dcol, icol, mcdi, mcdo, 			      crami.dcramin, cramo.dcramout, fpuholdn);-- tag and data rams  cachemem0 : cachemem port map (clk, crami, cramo);  ico <= icol;  dco <= dcol;end ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -