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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [vlib/] [memlib/] [ram_1swsr_wfirst_gen_unisim.vhd] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 wfjm
-- $Id: ram_1swsr_wfirst_gen_unisim.vhd 314 2010-07-09 17:38:41Z mueller $
2
--
3
-- Copyright 2008- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
--
5
-- This program is free software; you may redistribute and/or modify it under
6
-- the terms of the GNU General Public License as published by the Free
7
-- Software Foundation, either version 2, or at your option any later version.
8
--
9
-- This program is distributed in the hope that it will be useful, but
10
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
-- for complete details.
13
--
14
------------------------------------------------------------------------------
15
-- Module Name:    ram_1swsr_wfirst_gen - syn
16
-- Description:    Single-Port RAM with with one synchronous read/write port
17
--                 and 'read-through' semantics (as block RAM).
18
--                 Direct instantiation of Xilinx UNISIM primitives
19
--
20
-- Dependencies:   -
21
-- Test bench:     -
22
-- Target Devices: Spartan-3, Virtex-2,-4
23
-- Tool versions:  xst 8.1, 8.2, 9.1, 9.2; ghdl 0.18-0.25
24
-- Revision History: 
25
-- Date         Rev Version  Comment
26
-- 2008-03-08   123   1.0    Initial version 
27
------------------------------------------------------------------------------
28
 
29
library ieee;
30
use ieee.std_logic_1164.all;
31
 
32
library unisim;
33
use unisim.vcomponents.ALL;
34
 
35
use work.slvtypes.all;
36
use work.memlib.all;
37
 
38
entity ram_1swsr_wfirst_gen is          -- RAM, 1 sync r/w port, write first
39
  generic (
40
    AWIDTH : positive := 11;            -- address port width
41
    DWIDTH : positive :=  9);           -- data port width
42
  port(
43
    CLK  : in slbit;                    -- clock
44
    EN   : in slbit;                    -- enable
45
    WE   : in slbit;                    -- write enable
46
    ADDR : in slv(AWIDTH-1 downto 0);   -- address
47
    DI   : in slv(DWIDTH-1 downto 0);   -- data in
48
    DO   : out slv(DWIDTH-1 downto 0)   -- data out
49
  );
50
end ram_1swsr_wfirst_gen;
51
 
52
 
53
architecture syn of ram_1swsr_wfirst_gen is
54
begin
55
 
56
  UMEM: ram_1swsr_xfirst_gen_unisim
57
    generic map (
58
      AWIDTH     => AWIDTH,
59
      DWIDTH     => DWIDTH,
60
      WRITE_MODE => "WRITE_FIRST")
61
    port map (
62
      CLK  => CLK,
63
      EN   => EN,
64
      WE   => WE,
65
      ADDR => ADDR,
66
      DI   => DI,
67
      DO   => DO
68
    );
69
 
70
end syn;

powered by: WebSVN 2.1.0

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