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 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 danv
-------------------------------------------------------------------------------
2
--
3 3 danv
-- Copyright 2020
4 2 danv
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
6 3 danv
-- 
7
-- Licensed under the Apache License, Version 2.0 (the "License");
8
-- you may not use this file except in compliance with the License.
9
-- You may obtain a copy of the License at
10
-- 
11
--     http://www.apache.org/licenses/LICENSE-2.0
12
-- 
13
-- Unless required by applicable law or agreed to in writing, software
14
-- distributed under the License is distributed on an "AS IS" BASIS,
15
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
-- See the License for the specific language governing permissions and
17
-- limitations under the License.
18 2 danv
--
19
-------------------------------------------------------------------------------
20
 
21
LIBRARY IEEE, common_pkg_lib, dp_pkg_lib;
22
USE IEEE.std_logic_1164.all;
23
USE dp_pkg_lib.dp_stream_pkg.ALL;
24
 
25
-- Purpose:
26
--   Pipeline array of g_nof_streams by g_pipeline cycles.
27
-- Description:
28
--   See dp_pipeline.
29
 
30
ENTITY dp_pipeline_arr IS
31
  GENERIC (
32
    g_nof_streams : NATURAL := 1;
33
    g_pipeline    : NATURAL := 1  -- 0 for wires, > 0 for registers, 
34
  );
35
  PORT (
36
    rst          : IN  STD_LOGIC;
37
    clk          : IN  STD_LOGIC;
38
    -- ST sink
39
    snk_out_arr  : OUT t_dp_siso_arr(g_nof_streams-1 DOWNTO 0);
40
    snk_in_arr   : IN  t_dp_sosi_arr(g_nof_streams-1 DOWNTO 0);
41
    -- ST source
42
    src_in_arr   : IN  t_dp_siso_arr(g_nof_streams-1 DOWNTO 0) := (OTHERS=>c_dp_siso_rdy);
43
    src_out_arr  : OUT t_dp_sosi_arr(g_nof_streams-1 DOWNTO 0)
44
  );
45
END dp_pipeline_arr;
46
 
47
 
48
ARCHITECTURE str OF dp_pipeline_arr IS
49
 
50
BEGIN
51
 
52
  gen_nof_streams : FOR I IN 0 TO g_nof_streams-1 GENERATE
53
    u_p : ENTITY work.dp_pipeline
54
    GENERIC MAP (
55
      g_pipeline => g_pipeline
56
    )
57
    PORT MAP (
58
      rst          => rst,
59
      clk          => clk,
60
      -- ST sink
61
      snk_out      => snk_out_arr(I),
62
      snk_in       => snk_in_arr(I),
63
      -- ST source
64
      src_in       => src_in_arr(I),
65
      src_out      => src_out_arr(I)
66
    );
67
  END GENERATE;
68
 
69
END str;

powered by: WebSVN 2.1.0

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