uart fifo full

OP (Company: ISO) #4583003
Rate this post
useful
not useful
hello.

from pang chu book

"""The full and empty status of the respective FIFO buffers can be
tested by consecutively receiving and transmitting more than four data 
words.
my question is it possible to increase the number of data word that fifo 
can contain"""


in the uart code the fifo just 4 data words like when u send from 
hypertermianl word "" hello""
the fpga board turn it back like this "hellh"

it is possible to increase it, to make the word " hello " when i send 
from hypertermianl to fpga .. the fpga turn it back to hyperwindow " 
hello" not hellh"?

if it possible how can i do it ? if it not, why??!

thanks alot ..
OP (Company: ISO) #4583288
Rate this post
useful
not useful
do u mean
1
library IEEE;
2
use IEEE.STD_LOGIC_1164.ALL;
3
use IEEE.NUMERIC_STD.ALL;
4

5
entity fifo is
6
  generic(
7
    B: natural := 8;  -- Number of bits
8
    W: natural := 4    -- Number of address bits
9
  );
10
  port(
11
    clk, rst: in std_logic;
12
    rd, wr: in std_logic;
13
    w_data: in std_logic_vector(B-1 downto 0);
14
    empty, full: out std_logic;
15
    r_data: out std_logic_vector(B-1 downto 0)
16
  );

do u mean the w to change to 5? this is the number of adress bits in 
fifo ..

add it already the number of bits is 8
(Company: www.dossmatik.de) #4583671
Rate this post
useful
not useful
Anan H. wrote:
> do u mean
>
>
1
library IEEE;
2
> use IEEE.STD_LOGIC_1164.ALL;
3
> use IEEE.NUMERIC_STD.ALL;
4
> 
5
> entity fifo is
6
>   generic(
7
>     B: natural := 8;  -- Number of bits
8
>     W: natural := 4    -- Number of address bits
9
>   );
10
>   port(
11
>     clk, rst: in std_logic;
12
>     rd, wr: in std_logic;
13
>     w_data: in std_logic_vector(B-1 downto 0);
14
>     empty, full: out std_logic;
15
>     r_data: out std_logic_vector(B-1 downto 0)
16
>   );
>
> do u mean the w to change to 5? this is the number of adress bits in
> fifo ..
>
> add it already the number of bits is 8

B have to be 8. This is 8bit -> 1byte

I mean W.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now