1 |
2 |
dimamali |
------------------------------------------------------------------------------
|
2 |
|
|
-- This file is a part of the GRLIB VHDL IP LIBRARY
|
3 |
|
|
-- Copyright (C) 2003, Gaisler Research
|
4 |
|
|
--
|
5 |
|
|
-- This program is free software; you can redistribute it and/or modify
|
6 |
|
|
-- it under the terms of the GNU General Public License as published by
|
7 |
|
|
-- the Free Software Foundation; either version 2 of the License, or
|
8 |
|
|
-- (at your option) any later version.
|
9 |
|
|
--
|
10 |
|
|
-- This program is distributed in the hope that it will be useful,
|
11 |
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
|
|
-- GNU General Public License for more details.
|
14 |
|
|
--
|
15 |
|
|
-- You should have received a copy of the GNU General Public License
|
16 |
|
|
-- along with this program; if not, write to the Free Software
|
17 |
|
|
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18 |
|
|
-----------------------------------------------------------------------------
|
19 |
|
|
-- Entity: skew_outpad
|
20 |
|
|
-- File: skew_outpad.vhd
|
21 |
|
|
-- Author: Nils-Johan Wessman - Gaisler Research
|
22 |
|
|
-- Description: output pad with technology wrapper
|
23 |
|
|
------------------------------------------------------------------------------
|
24 |
|
|
|
25 |
|
|
library techmap;
|
26 |
|
|
library ieee;
|
27 |
|
|
use ieee.std_logic_1164.all;
|
28 |
|
|
use techmap.gencomp.all;
|
29 |
|
|
use techmap.allpads.all;
|
30 |
|
|
|
31 |
|
|
entity skew_outpad is
|
32 |
|
|
generic (tech : integer := 0; level : integer := 0; slew : integer := 0;
|
33 |
|
|
voltage : integer := x33v; strength : integer := 12; skew : integer := 0);
|
34 |
|
|
port (pad : out std_ulogic; i : in std_ulogic; rst : in std_ulogic;
|
35 |
|
|
o : out std_ulogic);
|
36 |
|
|
end;
|
37 |
|
|
|
38 |
|
|
architecture rtl of skew_outpad is
|
39 |
|
|
signal padx, gnd, vcc : std_ulogic;
|
40 |
|
|
begin
|
41 |
|
|
gnd <= '0'; vcc <= '1';
|
42 |
|
|
gen0 : if has_pads(tech) = 0 generate
|
43 |
|
|
pad <= i after 2 ns when slew = 0 else i;
|
44 |
|
|
end generate;
|
45 |
|
|
xcv : if (tech = virtex) or (tech = virtex2) or (tech = spartan3) or
|
46 |
|
|
(tech = virtex4) or (tech = spartan3e) or (tech = virtex5)
|
47 |
|
|
generate
|
48 |
|
|
x0 : virtex_skew_outpad generic map (level, slew, voltage, strength, skew) port map (pad, i, rst, o);
|
49 |
|
|
end generate;
|
50 |
|
|
end;
|
51 |
|
|
|