OpenCores
URL https://opencores.org/ocsvn/mips_enhanced/mips_enhanced/trunk

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [lib/] [techmap/] [inferred/] [ddr_inferred.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
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:      gen_iddr_reg
20
-- File:        gen_iddr_reg.vhd
21
-- Author:      David Lindh, Jiri Gaisler - Gaisler Research
22
-- Description: Generic DDR input reg
23
------------------------------------------------------------------------------
24
 
25
library ieee;
26
use ieee.std_logic_1164.all;
27
 
28
entity gen_iddr_reg is
29
  port(
30
         Q1 : out std_ulogic;
31
         Q2 : out std_ulogic;
32
         C1 : in std_ulogic;
33
         C2 : in std_ulogic;
34
         CE : in std_ulogic;
35
         D : in std_ulogic;
36
         R : in std_ulogic;
37
         S : in std_ulogic
38
      );
39
end;
40
 
41
architecture rtl of gen_iddr_reg is
42
  signal preQ2 : std_ulogic;
43
 
44
begin
45
 
46
  ddrregp : process(R,C1)
47
  begin
48
    if R = '1' then Q1 <= '0'; Q2 <= '0';
49
    elsif rising_edge(C1) then Q1 <= D; Q2 <= preQ2; end if;
50
  end process;
51
 
52
  ddrregn : process(R,C1)
53
  begin
54
    if R = '1' then preQ2 <= '0';
55
    elsif falling_edge(C1) then preQ2 <= D; end if;
56
  end process;
57
 
58
end;
59
 
60
library ieee;
61
use ieee.std_logic_1164.all;
62
 
63
entity gen_oddr_reg is
64
  port
65
    ( Q : out std_ulogic;
66
      C1 : in std_ulogic;
67
      C2 : in std_ulogic;
68
      CE : in std_ulogic;
69
      D1 : in std_ulogic;
70
      D2 : in std_ulogic;
71
      R : in std_ulogic;
72
      S : in std_ulogic);
73
end;
74
 
75
architecture rtl of gen_oddr_reg is
76
begin
77
 
78
end;
79
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.