clkpad_ds.vhd
来自「free hardware ip core about sparcv8,a so」· VHDL 代码 · 共 56 行
VHD
56 行
-------------------------------------------------------------------------------- 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: clkpad-- File: clkpad_ds.vhd-- Author: Jiri Gaisler - Gaisler Research-- Description: DS clock pad with technology wrapper------------------------------------------------------------------------------library techmap;library ieee;use ieee.std_logic_1164.all;use techmap.gencomp.all;use techmap.allpads.all;entity clkpad_ds is generic (tech : integer := 0; level : integer := lvds; voltage : integer := x33v); port (padp, padn : in std_ulogic; o : out std_ulogic);end; architecture rtl of clkpad_ds issignal gnd : std_ulogic;begin gnd <= '0'; gen0 : if has_ds_pads(tech) = 0 generate o <= to_X01(padp) after 1 ns; end generate; xcv : if (tech = virtex) or (tech = virtex2) or (tech = spartan3) generate u0 : virtex_clkpad_ds generic map (level, voltage) port map (padp, padn, o); end generate; xc4v : if (tech = virtex4) or (tech = spartan3e) or (tech = virtex5) generate u0 : virtex4_clkpad_ds generic map (level, voltage) port map (padp, padn, o); end generate; axc : if (tech = axcel) generate u0 : axcel_inpad_ds generic map (level, voltage) port map (padp, padn, o); end generate; rht : if (tech = rhlib18t) generate u0 : rh_lib18t_inpad_ds port map (padp, padn, o, gnd); end generate;end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?