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

Subversion Repositories astron_ram

[/] [astron_ram/] [trunk/] [common_ram_rw_rw.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) 2014
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, technology_lib;
23
USE IEEE.std_logic_1164.ALL;
24
USE work.common_ram_pkg.ALL;
25
USE technology_lib.technology_select_pkg.ALL;
26
 
27
ENTITY common_ram_rw_rw IS
28
  GENERIC (
29
    g_technology : NATURAL := c_tech_select_default;
30
    g_ram        : t_c_mem := c_mem_ram;
31
    g_init_file  : STRING := "UNUSED";
32
    g_true_dual_port : BOOLEAN := TRUE
33
  );
34
  PORT (
35
    rst       : IN  STD_LOGIC := '0';
36
    clk       : IN  STD_LOGIC;
37
    clken     : IN  STD_LOGIC := '1';
38
    wr_en_a   : IN  STD_LOGIC := '0';
39
    wr_en_b   : IN  STD_LOGIC := '0';
40
    wr_dat_a  : IN  STD_LOGIC_VECTOR(g_ram.dat_w-1 DOWNTO 0) := (OTHERS=>'0');
41
    wr_dat_b  : IN  STD_LOGIC_VECTOR(g_ram.dat_w-1 DOWNTO 0) := (OTHERS=>'0');
42
    adr_a     : IN  STD_LOGIC_VECTOR(g_ram.adr_w-1 DOWNTO 0) := (OTHERS=>'0');
43
    adr_b     : IN  STD_LOGIC_VECTOR(g_ram.adr_w-1 DOWNTO 0) := (OTHERS=>'0');
44
    rd_en_a   : IN  STD_LOGIC := '1';
45
    rd_en_b   : IN  STD_LOGIC := '1';
46
    rd_dat_a  : OUT STD_LOGIC_VECTOR(g_ram.dat_w-1 DOWNTO 0);
47
    rd_dat_b  : OUT STD_LOGIC_VECTOR(g_ram.dat_w-1 DOWNTO 0);
48
    rd_val_a  : OUT STD_LOGIC;
49
    rd_val_b  : OUT STD_LOGIC
50
  );
51
END common_ram_rw_rw;
52
 
53
 
54
ARCHITECTURE str OF common_ram_rw_rw IS
55
 
56
BEGIN
57
 
58
  -- Use only one clock domain
59
 
60
  u_crw_crw : ENTITY work.common_ram_crw_crw
61
  GENERIC MAP (
62
    g_technology => g_technology,
63
    g_ram        => g_ram,
64
    g_init_file  => g_init_file,
65
    g_true_dual_port => g_true_dual_port
66
  )
67
  PORT MAP (
68
    rst_a     => rst,
69
    rst_b     => rst,
70
    clk_a     => clk,
71
    clk_b     => clk,
72
    clken_a   => clken,
73
    clken_b   => clken,
74
    wr_en_a   => wr_en_a,
75
    wr_en_b   => wr_en_b,
76
    wr_dat_a  => wr_dat_a,
77
    wr_dat_b  => wr_dat_b,
78
    adr_a     => adr_a,
79
    adr_b     => adr_b,
80
    rd_en_a   => rd_en_a,
81
    rd_en_b   => rd_en_b,
82
    rd_dat_a  => rd_dat_a,
83
    rd_dat_b  => rd_dat_b,
84
    rd_val_a  => rd_val_a,
85
    rd_val_b  => rd_val_b
86
  );
87
 
88
END str;

powered by: WebSVN 2.1.0

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