[BB-FIFO]
- renamed ports - added quick 'n dirty half full git-svn-id: http://moon:8086/svn/vhdl/trunk@1349 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
+6
-4
@@ -40,8 +40,9 @@ entity bbfifo is
|
||||
clk : in STD_LOGIC;
|
||||
re : in STD_LOGIC;
|
||||
we : in STD_LOGIC;
|
||||
ready : out STD_LOGIC;
|
||||
avail : out STD_LOGIC;
|
||||
full : out STD_LOGIC;
|
||||
half_full : out STD_LOGIC;
|
||||
dout_vld : out STD_LOGIC;
|
||||
din : in unsigned(data_width-1 downto 0);
|
||||
dout : out unsigned(data_width-1 downto 0)
|
||||
);
|
||||
@@ -58,8 +59,9 @@ begin
|
||||
|
||||
Q(0) <= we;
|
||||
ce(depth+1) <= re;
|
||||
ready <= ce(1);
|
||||
avail <= Q(depth);
|
||||
full <= not ce(1);
|
||||
half_full <= not ce(1+depth/2);
|
||||
dout_vld <= Q(depth);
|
||||
bucket_array(0) <= din;
|
||||
dout <= bucket_array(depth);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user