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

📄 memory.vhd

📁 The GRLIB IP Library is an integrated set of reusable IP cores, designed for system-on-chip (SOC) de
💻 VHD
字号:
------------------------------------------------------------------------------  This file is a part of the GRLIB VHDL IP LIBRARY--  Copyright (C) 2004 GAISLER RESEARCH----  This program is free software; you can redistribute it and/or modify--  it under the terms of the GNU 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 for the full details of the license.--------------------------------------------------------------------------------- Package: 	memory-- File:	memory.vhd-- Author:	Jiri Gaisler - Gaisler Research-- Description:	Delcation of portable memory modules------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;package memory is-- synchronous single-port ram  component syncram  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 8);  port (    clk      : in std_ulogic;    address  : in std_logic_vector((abits -1) downto 0);    datain   : in std_logic_vector((dbits -1) downto 0);    dataout  : out std_logic_vector((dbits -1) downto 0);    enable   : in std_ulogic;    write    : in std_ulogic);   end component;-- synchronous two-port ram (1 read, 1 write port)  component syncram_2p  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 8; sepclk : integer := 0;           wrfst : integer := 0);  port (    rclk     : in std_ulogic;    renable  : in std_ulogic;    raddress : in std_logic_vector((abits -1) downto 0);    dataout  : out std_logic_vector((dbits -1) downto 0);    wclk     : in std_ulogic;    write    : in std_ulogic;    waddress : in std_logic_vector((abits -1) downto 0);    datain   : in std_logic_vector((dbits -1) downto 0));  end component;-- synchronous dual-port ram (2 read/write ports)  component syncram_dp  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 8);  port (    clk1     : in std_ulogic;    address1 : in std_logic_vector((abits -1) downto 0);    datain1  : in std_logic_vector((dbits -1) downto 0);    dataout1 : out std_logic_vector((dbits -1) downto 0);    enable1  : in std_ulogic;    write1   : in std_ulogic;    clk2     : in std_ulogic;    address2 : in std_logic_vector((abits -1) downto 0);    datain2  : in std_logic_vector((dbits -1) downto 0);    dataout2 : out std_logic_vector((dbits -1) downto 0);    enable2  : in std_ulogic;    write2   : in std_ulogic);   end component;-- synchronous 3-port regfile (2 read, 1 write port)  component regfile_3p  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 8;           wrfst : integer := 0; numregs : integer := 64);  port (    wclk   : in  std_ulogic;    waddr  : in  std_logic_vector((abits -1) downto 0);    wdata  : in  std_logic_vector((dbits -1) downto 0);    we     : in  std_ulogic;    rclk   : in  std_ulogic;    raddr1 : in  std_logic_vector((abits -1) downto 0);    re1    : in  std_ulogic;    rdata1 : out std_logic_vector((dbits -1) downto 0);    raddr2 : in  std_logic_vector((abits -1) downto 0);    re2    : in  std_ulogic;    rdata2 : out std_logic_vector((dbits -1) downto 0)  );  end component;  component regfile_3p_ft  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 8;           wrfst : integer := 0; numregs : integer := 64);  port (    wclk   : in  std_ulogic;    waddr  : in  std_logic_vector((abits -1) downto 0);    wdata  : in  std_logic_vector((dbits -1) downto 0);    we     : in  std_ulogic;    rclk   : in  std_ulogic;    raddr1 : in  std_logic_vector((abits -1) downto 0);    re1    : in  std_ulogic;    rdata1 : out std_logic_vector((dbits -1) downto 0);    raddr2 : in  std_logic_vector((abits -1) downto 0);    re2    : in  std_ulogic;    rdata2 : out std_logic_vector((dbits -1) downto 0);    inhw1  : in std_ulogic;    inhw2  : in std_ulogic;    einj1  : in  std_ulogic;    einj2  : in  std_ulogic  );  end component;-- 64-bit synchronous single-port ram with 32-bit write strobe  component syncram64  generic (tech : integer := 0; abits : integer := 6);  port (    clk     : in  std_ulogic;    address : in  std_logic_vector (abits -1 downto 0);    datain  : in  std_logic_vector (63 downto 0);    dataout : out std_logic_vector (63 downto 0);    enable  : in  std_logic_vector (1 downto 0);    write   : in  std_logic_vector (1 downto 0)  );  end component;end;

⌨️ 快捷键说明

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