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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [vlib/] [memlib/] [ram_1swar_gen.vhd] - Diff between revs 2 and 13

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 13
Line 1... Line 1...
-- $Id: ram_1swar_gen.vhd 314 2010-07-09 17:38:41Z mueller $
-- $Id: ram_1swar_gen.vhd 422 2011-11-10 18:44:06Z mueller $
--
--
-- Copyright 2006-2008 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
-- Copyright 2006-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
--
--
-- This program is free software; you may redistribute and/or modify it under
-- This program is free software; you may redistribute and/or modify it under
-- the terms of the GNU General Public License as published by the Free
-- the terms of the GNU General Public License as published by the Free
-- Software Foundation, either version 2, or at your option any later version.
-- Software Foundation, either version 2, or at your option any later version.
--
--
Line 20... Line 20...
--                 force in XST a synthesis as distributed RAM.
--                 force in XST a synthesis as distributed RAM.
--
--
-- Dependencies:   -
-- Dependencies:   -
-- Test bench:     -
-- Test bench:     -
-- Target Devices: generic Spartan, Virtex
-- Target Devices: generic Spartan, Virtex
-- Tool versions:  xst 8.1, 8.2, 9.1, 9.2; ghdl 0.18-0.25
-- Tool versions:  xst 8.2, 9.1, 9.2, 13.1; ghdl 0.18-0.29
-- Revision History: 
-- Revision History: 
-- Date         Rev Version  Comment
-- Date         Rev Version  Comment
-- 2008-03-08   123   1.0.1  use std_logic_arith, not _unsigned; use unsigned()
-- 2011-11-08   422   1.0.2  now numeric_std clean
 
-- 2008-03-08   123   1.0.1  use std_..._arith, not _unsigned; use unsigned()
-- 2007-06-03    45   1.0    Initial version 
-- 2007-06-03    45   1.0    Initial version 
--
--
-- Some synthesis results:
-- Some synthesis results:
-- - 2007-12-31 ise 8.2.03 for xc3s1000-ft256-4:
-- - 2007-12-31 ise 8.2.03 for xc3s1000-ft256-4:
--   AWIDTH DWIDTH  LUTl LUTm   Comments
--   AWIDTH DWIDTH  LUTl LUTm   Comments
Line 36... Line 37...
--        6     16    18   64   32*RAM32X1S  Note: A(4) via F5MUX, A(5) via LUT
--        6     16    18   64   32*RAM32X1S  Note: A(4) via F5MUX, A(5) via LUT
------------------------------------------------------------------------------
------------------------------------------------------------------------------
 
 
library ieee;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.numeric_std.all;
 
 
use work.slvtypes.all;
use work.slvtypes.all;
 
 
entity ram_1swar_gen is                 -- RAM, 1 sync w asyn r port
entity ram_1swar_gen is                 -- RAM, 1 sync w asyn r port
  generic (
  generic (
Line 67... Line 68...
 
 
begin
begin
 
 
  proc_clk: process (CLK)
  proc_clk: process (CLK)
  begin
  begin
    if CLK'event and CLK='1' then
    if rising_edge(CLK) then
      if WE = '1' then
      if WE = '1' then
        RAM(conv_integer(unsigned(ADDR))) <= DI;
        RAM(to_integer(unsigned(ADDR))) <= DI;
      end if;
      end if;
    end if;
    end if;
  end process proc_clk;
  end process proc_clk;
 
 
  DO <= RAM(conv_integer(unsigned(ADDR)));
  DO <= RAM(to_integer(unsigned(ADDR)));
 
 
end syn;
end syn;
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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