[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:
2016-12-19 18:55:37 +00:00
parent 4cd0065434
commit b8b6cfcd81
3 changed files with 40 additions and 35 deletions
+6 -4
View File
@@ -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);