Re: xPC FIFO blocks behaviour.



Pablo,

The fifo read block updates the read index after copying characters to
the output port. If you don't change the read index, then nothing is
removed from the fifo storage. You can modify the fifo read to do lots
of different checks that fit your specific need. I suggest you give a
new name to your modified version and point a new block to it. That way
you can still use the old ones.

For instance, the new ascii read header version of fifo read will only
return characters if it finds an entire sequence from the specified
header to the termination string in the fifo. If the sequence isn't
complete, then nothing is removed from the fifo on that time step.

Gordon Weast
xPC Target Development
The Mathworks

Pablo Ausin wrote:

Hi Gordon:

Last was clear. Now i have a new question about fifo reading. If i do
not manipulate pointer signal (from a FIFO Read block), does it read
from the FIFO?

In my USART at the beginning of each cycle i want to test if the
previous message was sent correctly, otherwise i would like not to
lose bytes by fifo reading in those cases.

Thanks a lot.
.



Relevant Pages

  • Re: Block Rams
    ... Write a sequence of data words into the FIFO, and read them out in the ... synchronous operation in their respective clock domain. ... Even more complex is the decoding of Almost Empty and Almost Full ...
    (comp.arch.fpga)
  • Re: Open append text files for update simultaneously
    ... How many records you expect the FIFO to grow to(not including deleted ... sql = "SELECT MAX(Sequence) AS MaxSeq FROM tblFIFO ORDER BY Sequence" ... Look for "vb fifo class" to find sample code. ...
    (microsoft.public.vb.bugs)
  • Re: Newbie: How to insert facts at prompt?
    ... > derivates of the abstract "FIFO". ... There is only one sequence of clauses, ... Prev by Date: ...
    (comp.lang.prolog)