-- $Id: s3_sram_dummy.vhd 314 2010-07-09 17:38:41Z mueller $
|
-- $Id: s3_sram_dummy.vhd 426 2011-11-18 18:14:08Z mueller $
|
--
|
--
|
-- Copyright 2007-2010 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
-- Copyright 2007-2010 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.
|
--
|
--
|
-- This program is distributed in the hope that it will be useful, but
|
-- This program is distributed in the hope that it will be useful, but
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
-- for complete details.
|
-- for complete details.
|
--
|
--
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- Module Name: s3_sram_dummy - syn
|
-- Module Name: s3_sram_dummy - syn
|
-- Description: s3board: SRAM protection dummy
|
-- Description: s3board: SRAM protection dummy
|
--
|
--
|
-- Dependencies: -
|
-- Dependencies: -
|
-- Test bench: -
|
-- Test bench: -
|
-- Target Devices: generic
|
-- Target Devices: generic
|
-- Tool versions: xst 8.1, 8.2, 9.1, 9.2, 11.4; ghdl 0.18-0.26
|
-- Tool versions: xst 8.1, 8.2, 9.1, 9.2, 11.4; ghdl 0.18-0.26
|
-- Revision History:
|
-- Revision History:
|
-- Date Rev Version Comment
|
-- Date Rev Version Comment
|
-- 2010-04-17 278 1.0.2 renamed from sram_dummy
|
-- 2010-04-17 278 1.0.2 renamed from sram_dummy
|
-- 2007-12-09 101 1.0.1 use _N for active low
|
-- 2007-12-09 101 1.0.1 use _N for active low
|
-- 2007-12-08 100 1.0 Initial version
|
-- 2007-12-08 100 1.0 Initial version
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
|
|
library ieee;
|
library ieee;
|
use ieee.std_logic_1164.all;
|
use ieee.std_logic_1164.all;
|
use ieee.std_logic_arith.all;
|
|
|
|
use work.slvtypes.all;
|
use work.slvtypes.all;
|
|
|
entity s3_sram_dummy is -- SRAM protection dummy
|
entity s3_sram_dummy is -- SRAM protection dummy
|
port (
|
port (
|
O_MEM_CE_N : out slv2; -- sram: chip enables (act.low)
|
O_MEM_CE_N : out slv2; -- sram: chip enables (act.low)
|
O_MEM_BE_N : out slv4; -- sram: byte enables (act.low)
|
O_MEM_BE_N : out slv4; -- sram: byte enables (act.low)
|
O_MEM_WE_N : out slbit; -- sram: write enable (act.low)
|
O_MEM_WE_N : out slbit; -- sram: write enable (act.low)
|
O_MEM_OE_N : out slbit; -- sram: output enable (act.low)
|
O_MEM_OE_N : out slbit; -- sram: output enable (act.low)
|
O_MEM_ADDR : out slv18; -- sram: address lines
|
O_MEM_ADDR : out slv18; -- sram: address lines
|
IO_MEM_DATA : inout slv32 -- sram: data lines
|
IO_MEM_DATA : inout slv32 -- sram: data lines
|
);
|
);
|
end s3_sram_dummy;
|
end s3_sram_dummy;
|
|
|
|
|
architecture syn of s3_sram_dummy is
|
architecture syn of s3_sram_dummy is
|
begin
|
begin
|
|
|
O_MEM_CE_N <= "11"; -- disable sram chips
|
O_MEM_CE_N <= "11"; -- disable sram chips
|
O_MEM_BE_N <= "1111";
|
O_MEM_BE_N <= "1111";
|
O_MEM_WE_N <= '1';
|
O_MEM_WE_N <= '1';
|
O_MEM_OE_N <= '1';
|
O_MEM_OE_N <= '1';
|
O_MEM_ADDR <= (others=>'0');
|
O_MEM_ADDR <= (others=>'0');
|
IO_MEM_DATA <= (others=>'0');
|
IO_MEM_DATA <= (others=>'0');
|
|
|
end syn;
|
end syn;
|
|
|