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

Subversion Repositories astron_pipeline

[/] [astron_pipeline/] [trunk/] [dp_pipeline_arr.vhd] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 danv
-------------------------------------------------------------------------------
2
--
3
-- Copyright (C) 2015
4
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
6
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
7
--
8
-- This program is free software: you can redistribute it and/or modify
9
-- it under the terms of the GNU General Public License as published by
10
-- the Free Software Foundation, either version 3 of the License, or
11
-- (at your option) any later version.
12
--
13
-- This program is distributed in the hope that it will be useful,
14
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
-- GNU General Public License for more details.
17
--
18
-- You should have received a copy of the GNU General Public License
19
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
--
21
-------------------------------------------------------------------------------
22
 
23
LIBRARY IEEE, common_pkg_lib, dp_pkg_lib;
24
USE IEEE.std_logic_1164.all;
25
USE dp_pkg_lib.dp_stream_pkg.ALL;
26
 
27
-- Purpose:
28
--   Pipeline array of g_nof_streams by g_pipeline cycles.
29
-- Description:
30
--   See dp_pipeline.
31
 
32
ENTITY dp_pipeline_arr IS
33
  GENERIC (
34
    g_nof_streams : NATURAL := 1;
35
    g_pipeline    : NATURAL := 1  -- 0 for wires, > 0 for registers, 
36
  );
37
  PORT (
38
    rst          : IN  STD_LOGIC;
39
    clk          : IN  STD_LOGIC;
40
    -- ST sink
41
    snk_out_arr  : OUT t_dp_siso_arr(g_nof_streams-1 DOWNTO 0);
42
    snk_in_arr   : IN  t_dp_sosi_arr(g_nof_streams-1 DOWNTO 0);
43
    -- ST source
44
    src_in_arr   : IN  t_dp_siso_arr(g_nof_streams-1 DOWNTO 0) := (OTHERS=>c_dp_siso_rdy);
45
    src_out_arr  : OUT t_dp_sosi_arr(g_nof_streams-1 DOWNTO 0)
46
  );
47
END dp_pipeline_arr;
48
 
49
 
50
ARCHITECTURE str OF dp_pipeline_arr IS
51
 
52
BEGIN
53
 
54
  gen_nof_streams : FOR I IN 0 TO g_nof_streams-1 GENERATE
55
    u_p : ENTITY work.dp_pipeline
56
    GENERIC MAP (
57
      g_pipeline => g_pipeline
58
    )
59
    PORT MAP (
60
      rst          => rst,
61
      clk          => clk,
62
      -- ST sink
63
      snk_out      => snk_out_arr(I),
64
      snk_in       => snk_in_arr(I),
65
      -- ST source
66
      src_in       => src_in_arr(I),
67
      src_out      => src_out_arr(I)
68
    );
69
  END GENERATE;
70
 
71
END str;

powered by: WebSVN 2.1.0

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