- Cleaned up
git-svn-id: http://moon:8086/svn/vhdl/trunk@101 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -29,7 +29,8 @@ USE IEEE.NUMERIC_STD.ALL;
|
|||||||
use work.fifo_ctrl_pkg.all;
|
use work.fifo_ctrl_pkg.all;
|
||||||
|
|
||||||
entity fifo_sync is
|
entity fifo_sync is
|
||||||
Generic (
|
Generic
|
||||||
|
(
|
||||||
addr_width : natural := 4;
|
addr_width : natural := 4;
|
||||||
data_width : natural := 8;
|
data_width : natural := 8;
|
||||||
almost_full_thresh : integer := 12;
|
almost_full_thresh : integer := 12;
|
||||||
@@ -72,7 +73,7 @@ begin
|
|||||||
fifo_afull <= almost_full;
|
fifo_afull <= almost_full;
|
||||||
fifo_aempty <= almost_empty;
|
fifo_aempty <= almost_empty;
|
||||||
|
|
||||||
inst_sync_fifo_ctrl: entity work.sync_fifo_ctrl
|
inst_sync_fifo_ctrl: entity work.sync_fifo_ctrl
|
||||||
GENERIC MAP
|
GENERIC MAP
|
||||||
(
|
(
|
||||||
addr_width => addr_width,
|
addr_width => addr_width,
|
||||||
@@ -96,8 +97,9 @@ begin
|
|||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
inst_dpram_1w1r: entity work.dpram_1w1r
|
inst_dpram_1w1r: entity work.dpram_1w1r
|
||||||
GENERIC MAP (
|
GENERIC MAP
|
||||||
|
(
|
||||||
addr_width => addr_width,
|
addr_width => addr_width,
|
||||||
data_width => data_width
|
data_width => data_width
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ STIMULUS: process
|
|||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '1';
|
STB_O <= '1';
|
||||||
WE_O <= '1';
|
WE_O <= '1';
|
||||||
DAT_O <= X"0000_0000";
|
SDAT_I <= X"0000_0000";
|
||||||
ADDR_O <= X"0000_0008";
|
ADDR_O <= X"0000_0008";
|
||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '0';
|
STB_O <= '0';
|
||||||
@@ -168,7 +168,7 @@ STIMULUS: process
|
|||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '1';
|
STB_O <= '1';
|
||||||
WE_O <= '1';
|
WE_O <= '1';
|
||||||
DAT_O <= X"0000_0000";
|
SDAT_I <= X"0000_0000";
|
||||||
ADDR_O <= X"0000_0010";
|
ADDR_O <= X"0000_0010";
|
||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '0';
|
STB_O <= '0';
|
||||||
@@ -176,7 +176,7 @@ STIMULUS: process
|
|||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '1';
|
STB_O <= '1';
|
||||||
WE_O <= '1';
|
WE_O <= '1';
|
||||||
DAT_O <= X"0000_0035";
|
SDAT_I <= X"0000_0035";
|
||||||
ADDR_O <= X"0000_0004";
|
ADDR_O <= X"0000_0004";
|
||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '0';
|
STB_O <= '0';
|
||||||
@@ -184,7 +184,7 @@ STIMULUS: process
|
|||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '1';
|
STB_O <= '1';
|
||||||
WE_O <= '1';
|
WE_O <= '1';
|
||||||
DAT_O <= X"0000_0035";
|
SDAT_I <= X"0000_0035";
|
||||||
ADDR_O <= X"0000_0020";
|
ADDR_O <= X"0000_0020";
|
||||||
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
wait until rising_edge(CLK_O) and SRDY_I = '1';
|
||||||
STB_O <= '0';
|
STB_O <= '0';
|
||||||
|
|||||||
Reference in New Issue
Block a user