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

📄 techbuf.vhd

📁 free hardware ip core about sparcv8,a soc cpu in vhdl
💻 VHD
字号:
--------------------------------------------------------------------------------  This file is a part of the GRLIB VHDL IP LIBRARY--  Copyright (C) 2003, 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.----  This program is distributed in the hope that it will be useful,--  but WITHOUT ANY WARRANTY; without even the implied warranty of--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the--  GNU General Public License for more details.----  You should have received a copy of the GNU General Public License--  along with this program; if not, write to the Free Software--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA ------------------------------------------------------------------------------- Entity: 	genclkbuf-- File:	genclkbuf.vhd-- Author:	Jiri Gaisler, Marko Isomaki - Gaisler Research-- Description:	Hard buffers with tech wrapper------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;library techmap;use techmap.gencomp.all;entity techbuf is  generic(    buftype  :  integer range 0 to 4 := 0;     tech     :  integer range 0 to NTECH := inferred);  port(    i        :  in  std_ulogic;    o        :  out std_ulogic  );end entity;architecture rtl of techbuf iscomponent clkbuf_actel is  generic(    buftype :  integer range 0 to 3 := 0);  port(    i       :  in  std_ulogic;    o       :  out std_ulogic  );end component;component clkbuf_xilinx is  generic(    buftype :  integer range 0 to 3 := 0);  port(    i       :  in  std_ulogic;    o       :  out std_ulogic  );end component;begin  gen : if (tech /= axcel) and (tech /= virtex) and (tech /= virtex2) and     (tech /= spartan3) and (tech /= virtex4) and (tech /= spartan3e) and	(tech /= virtex5)  generate    o <= i;  end generate;  axc : if (tech = axcel) generate    axc : clkbuf_actel generic map (buftype => buftype) port map(i => i, o => o);  end generate;  xil : if (tech = virtex) or (tech = virtex2) or (tech = spartan3) or (tech = virtex4) or 	(tech = spartan3e) or (tech = virtex5) generate    xil : clkbuf_xilinx generic map (buftype => buftype) port map(i => i, o => o);  end generate;end architecture;

⌨️ 快捷键说明

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