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

📄 mem_gen.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: 	mem_gen-- File:	mem_gen.vhd-- Author:	Jiri Gaisler Gaisler Research-- Description:	Behavioural memory component declarations------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;package mem_gen iscomponent generic_syncram  generic (abits : integer := 10; 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);    write    : in std_ulogic   ); end component;component generic_syncram_2p  generic (abits : integer := 8; dbits : integer := 32; sepclk : integer := 0);  port (    rclk : in std_ulogic;    wclk : in std_ulogic;    rdaddress: in std_logic_vector (abits -1 downto 0);    wraddress: in std_logic_vector (abits -1 downto 0);    data: in std_logic_vector (dbits -1 downto 0);    wren : in std_ulogic;    q: out std_logic_vector (dbits -1 downto 0)  );end component;-- synchronous 3-port regfile (2 read, 1 write port)  component generic_regfile_3p  generic (tech : integer := 0; abits : integer := 6; dbits : integer := 32;           wrfst : integer := 0; numregs : integer := 40);  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;end;

⌨️ 快捷键说明

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