Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Two near-identicial clocks?
- 08-25-2003
August 25, 2003, 7:43 pm

Hello! I have an app where I have byte-wide data coming in at 125 MHz,
and a system clock running at 125 Mhz, but they're not driven by the
same source (alas). Thus, the source clock could be slightly faster
or slightly slower than the internal system clock. Is there a standard
way of dealing with these sorts of clock-async issues that doesn't
involve an asynchronous FIFO?
I would just use one of the standard FIFOs discussed in the xilinx app
notes and save myself some time and headache, but I read something at
free-ip (http://www.free-ip.com/ramlib/fifo.html ) suggesting that the
implementation in the app-notes was patented, and thus even a
reimplementation of their approach wouldn't be allowed in an
open-source hardware project.
So, I was hoping there might be some non-FIFO implementation that
might work :) Are there any classical approaches to this?
...Eric
and a system clock running at 125 Mhz, but they're not driven by the
same source (alas). Thus, the source clock could be slightly faster
or slightly slower than the internal system clock. Is there a standard
way of dealing with these sorts of clock-async issues that doesn't
involve an asynchronous FIFO?
I would just use one of the standard FIFOs discussed in the xilinx app
notes and save myself some time and headache, but I read something at
free-ip (http://www.free-ip.com/ramlib/fifo.html ) suggesting that the
implementation in the app-notes was patented, and thus even a
reimplementation of their approach wouldn't be allowed in an
open-source hardware project.
So, I was hoping there might be some non-FIFO implementation that
might work :) Are there any classical approaches to this?
...Eric

Re: Two near-identicial clocks?
), then a FIFO is your only choice. And you have to have a strategy for
FIFO overflow/underflow, which will inevitably happen.
A Xilinx patent should never be a hindrance to implement such a FIFO in
a Xilinx device. Obviously.
Using a dual-ported RAM for a FIFO is straightforward. The trickery is
in the implementation of FULL and EMPTY signals ( or also ALMOST FULL
and ALMOST EMPTY ).
Peter Alfke (invented the first integrated circuit FIFO, the Fairchild
3341, in 1971)
==================
Eric wrote:


Re: Two near-identicial clocks?
Hi,

the FiFo-depth of 1 is only enough if the read-speed the double (or faster)
when the write speed. If you have only a littel bit more than you need a
FiFo-depth of 2 or 3 (se the double/tribble-buffering on videoprojektors that
translate 50Hz input-framrate (europa-PAL) into 60Hz LCD-framerate).
@Eric :
how long is an incomming datapacket an how long the delay (for addressing and
others) between the datapackets ??
how big is the diferenz between the clocks ?? (more than 1%)
if you have both answers you can calculate the needet FiFo-depth (+1 for savety)
in my projekt i use 3 buffers(registers) with its own statemaschine in serias
for this problem, if you are interisted on my code then mailto: snipped-for-privacy@uni.de
Regards,
Erik

the FiFo-depth of 1 is only enough if the read-speed the double (or faster)
when the write speed. If you have only a littel bit more than you need a
FiFo-depth of 2 or 3 (se the double/tribble-buffering on videoprojektors that
translate 50Hz input-framrate (europa-PAL) into 60Hz LCD-framerate).
@Eric :
how long is an incomming datapacket an how long the delay (for addressing and
others) between the datapackets ??
how big is the diferenz between the clocks ?? (more than 1%)
if you have both answers you can calculate the needet FiFo-depth (+1 for savety)
in my projekt i use 3 buffers(registers) with its own statemaschine in serias
for this problem, if you are interisted on my code then mailto: snipped-for-privacy@uni.de
Regards,
Erik
--
sorry for my terible english, my favorit language is assembler
sorry for my terible english, my favorit language is assembler
Site Timeline
- » Re: TIG Constraint
- — Next thread in » Field-Programmable Gate Arrays
-
- » Re: What is the context switching time
- — Previous thread in » Field-Programmable Gate Arrays
-
- » Division Algorithms
- — Newest thread in » Field-Programmable Gate Arrays
-
- » Zeitschaltuhr Hilfe gesucht...
- — The site's Newest Thread. Posted in » Electronics (German)
-