Project

General

Profile

IP documentation » History » Version 9

Jean-Christophe Pellion, 27/02/2014 04:01 PM

1 1 Jean-Christophe Pellion
h1. IP documentation
2
3
h2. General Purpose
4
5
----
6
7
h3. Synchronizer
8
9 8 Jean-Christophe Pellion
10 1 Jean-Christophe Pellion
{{collapse(SyncFF)
11 8 Jean-Christophe Pellion
Sync_FF permit to synchronize a signal A in the clock domain clk. Normally, the A signal must be the output of a FF cloked in an other domain. You shouldtn't have "logic" between the 2 domain.
12
You can configure the FF number (default 2). This number is depending of the MTBF(Mean Time Between Failure).
13
14
p=. !{width: 25%}SYNC_FF.png! <pre><code class="vhdl">
15
  COMPONENT SYNC_FF_LPP_JCP
16
    GENERIC (
17
      NB_FF_OF_SYNC : INTEGER);
18
    PORT (
19
      clk    : IN  STD_LOGIC;
20
      rstn   : IN  STD_LOGIC;
21
      A      : IN  STD_LOGIC;
22
      A_sync : OUT STD_LOGIC);
23
  END COMPONENT;
24
</code></pre>
25
26
27
|_.Parameter   |_.Type         |_.Size  |_.Description         |_.Default   |
28
|NB_FF_OF_SYNC |Integer        |        |Number of FF          |2            |
29
|\5.|
30
|_.Signal      |_.Direction    |_.Size  |_.Function            |_. Active   |
31 7 Jean-Christophe Pellion
|clk           |input          |1       |clock                 |rising edge |
32
|rstn          |input          |1       |reset                 |low         |
33 6 Jean-Christophe Pellion
|A             |input          |1       |data in               |            |
34 3 Jean-Christophe Pellion
|A_sync        |ouput          |1       |data out synchronized |            |
35 2 Jean-Christophe Pellion
36
}}