From c882f1d4690fa4e55e8c118237e61e821d82ee40 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 14 Jan 2009 20:26:29 +0000 Subject: [PATCH] - changed read, write order (should have no effect) git-svn-id: http://moon:8086/svn/vhdl/trunk@243 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/misc/dpram_2w2r.vhd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/misc/dpram_2w2r.vhd b/lib/misc/dpram_2w2r.vhd index 33152f3..e5a9e6a 100644 --- a/lib/misc/dpram_2w2r.vhd +++ b/lib/misc/dpram_2w2r.vhd @@ -21,7 +21,7 @@ -- For questions and ideas, please contact the author at jens@jayfield.org ----------------------------------------------------------------------- --- $Header: /tmp/cvsroot/VHDL/lib/misc/dpram_2w2r.vhd,v 1.1 2008-08-23 08:20:29 Jens Exp $ +-- $Header: /tmp/cvsroot/VHDL/lib/misc/dpram_2w2r.vhd,v 1.2 2009-01-14 20:26:29 Jens Exp $ ----------------------------------------------------------------------- library IEEE; @@ -63,10 +63,10 @@ process (clk_a) begin if clk_a'event and clk_a = '1' then if en_a = '1' then - dout_a <= RAM(to_integer(addr_a)); if we_a = '1' then RAM(to_integer(addr_a)) := din_a; end if; + dout_a <= RAM(to_integer(addr_a)); end if; end if; end process; @@ -75,10 +75,10 @@ process (clk_b) begin if clk_b'event and clk_b = '1' then if en_b = '1' then - dout_b <= RAM(to_integer(addr_b)); if we_b = '1' then RAM(to_integer(addr_b)) := din_b; end if; + dout_b <= RAM(to_integer(addr_b)); end if; end if; end process;