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

Subversion Repositories common_components

[/] [common_components/] [trunk/] [common_components_pkg.vhd] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 danv
-------------------------------------------------------------------------------
2
--
3
-- Copyright (C) 2013
4
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
6
--
7
-- This program is free software: you can redistribute it and/or modify
8
-- it under the terms of the GNU General Public License as published by
9
-- the Free Software Foundation, either version 3 of the License, or
10
-- (at your option) any later version.
11
--
12
-- This program is distributed in the hope that it will be useful,
13
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
-- GNU General Public License for more details.
16
--
17
-- You should have received a copy of the GNU General Public License
18
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
--
20
-------------------------------------------------------------------------------
21
 
22
LIBRARY IEEE, common_pkg_lib;
23
USE IEEE.std_logic_1164.ALL;
24
USE common_pkg_lib.common_pkg.ALL;
25
--USE work.common_mem_pkg.ALL;
26
 
27
-- Purpose: Component declarations to check positional mapping
28
-- Description:
29
-- Remarks:
30
 
31
PACKAGE common_components_pkg IS
32
 
33
  COMPONENT common_pipeline IS
34
  GENERIC (
35
    g_representation : STRING  := "SIGNED";   -- or "UNSIGNED"
36
    g_pipeline       : NATURAL := 1;  -- 0 for wires, > 0 for registers, 
37
    g_reset_value    : INTEGER := 0;
38
    g_in_dat_w       : NATURAL := 8;
39
    g_out_dat_w      : NATURAL := 9
40
  );
41
  PORT (
42
    rst     : IN  STD_LOGIC := '0';
43
    clk     : IN  STD_LOGIC;
44
    clken   : IN  STD_LOGIC := '1';
45
    in_clr  : IN  STD_LOGIC := '0';
46
    in_en   : IN  STD_LOGIC := '1';
47
    in_dat  : IN  STD_LOGIC_VECTOR(g_in_dat_w-1 DOWNTO 0);
48
    out_dat : OUT STD_LOGIC_VECTOR(g_out_dat_w-1 DOWNTO 0)
49
  );
50
  END COMPONENT;
51
 
52
  COMPONENT common_pipeline_sl IS
53
    GENERIC (
54
      g_pipeline       : NATURAL := 1;  -- 0 for wires, > 0 for registers, 
55
      g_reset_value    : NATURAL := 0;  -- 0 or 1, bit reset value,
56
      g_out_invert     : BOOLEAN := FALSE
57
    );
58
    PORT (
59
      rst     : IN  STD_LOGIC := '0';
60
      clk     : IN  STD_LOGIC;
61
      clken   : IN  STD_LOGIC := '1';
62
      in_clr  : IN  STD_LOGIC := '0';
63
      in_en   : IN  STD_LOGIC := '1';
64
      in_dat  : IN  STD_LOGIC;
65
      out_dat : OUT STD_LOGIC
66
    );
67
  END COMPONENT;
68
 
69
END common_components_pkg;
70
 
71
 
72
PACKAGE BODY common_components_pkg IS
73
END common_components_pkg;

powered by: WebSVN 2.1.0

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