- read_counter now decremented, if local side really has read
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@983 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-----------------------------------------------------------------------
|
||||
-- $Header: /tmp/cvsroot/VHDL/lib/JBUS/src/tb_busmaster_sync.vhd,v 1.2 2013-05-27 11:16:22 jens Exp $
|
||||
-- $Header: /tmp/cvsroot/VHDL/lib/JBUS/src/tb_busmaster_sync.vhd,v 1.3 2013-07-21 09:10:13 jens Exp $
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
LIBRARY ieee;
|
||||
@@ -207,7 +207,7 @@ inst_uut : entity work.busmaster_sync
|
||||
GENERIC MAP
|
||||
(
|
||||
DATA_WIDTH => 32,
|
||||
FIFO_DEPTH => 4
|
||||
FIFO_DEPTH => 2
|
||||
)
|
||||
PORT MAP
|
||||
(
|
||||
@@ -275,7 +275,7 @@ CLK_GEN: process
|
||||
else
|
||||
res := ram_data(31 downto 0) & ram_data(63 downto 32);
|
||||
end if;
|
||||
else -- WE=1
|
||||
elsif MRDY_O = '1' then -- WE=1
|
||||
ram_data := ram64(to_integer(ADDR_O(31 downto 3)));
|
||||
ram_data := (others => '-');
|
||||
if ADDR_O(2) = '0' then
|
||||
@@ -297,7 +297,9 @@ CLK_GEN: process
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
MDAT_I_64 <= res;
|
||||
if (CYC_O and MRDY_O) = '1' then
|
||||
MDAT_I_64 <= res;
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
@@ -324,6 +326,8 @@ STIMULUS: process
|
||||
|
||||
din <= data;
|
||||
din_we <= '1';
|
||||
wait until rising_edge(CLK_O) and din_rdy = '1';
|
||||
din_we <= '0';
|
||||
|
||||
cmd_in.rw <= '1';
|
||||
cmd_in.sel <= sel;
|
||||
@@ -331,7 +335,6 @@ STIMULUS: process
|
||||
cmd_we <= '1';
|
||||
wait until rising_edge(CLK_O) and cmd_rdy = '1';
|
||||
cmd_we <= '0';
|
||||
din_we <= '0';
|
||||
|
||||
end procedure cmd_write_single;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user