Professional Documents
Culture Documents
VLSI JAGRITI A
AM
A Mooonnnttthhhlllyyy M
M M mJJJB
Maaagggaaazzziiinnneee fffrrrooom
m BTTTeeeccchhhIIIN
B ND
N DIIIA
D A
A
IIN
NSSPPIIR
REEIINNA
SSPS
A PP
PSIIR
IIR
REERAEESPPIIRREE
AS
“Three things are necessary to A Message from Director
make every man great, every
nation great”
1. Conviction of the powers of Seeing industry requirement our IT team has setup the Linux Based
goodness EDA Environment, for RTL Design / verification / simulation /
2. Absence of jealousy and suspicion synthesis. This has enabled us to start with module to work on Linux
3. Helping all who are trying to be based automation to improve the productivity and know-how skill
and do good
--Swami Vivekananda further.
“Neither money pays, nor name
pays, nor fame, nor learning; it is -B.B. Singh
(Director JBTech INDIA)
(Clock Domain Crossing)
Tech Byte
Clock Domain Crossing Only automatic formal verification techniques can ensure that multiclock
1. Introduction designs are correct prior to tapeout. The CDC verification solution must
Shrinking device sizes and increasingly complex designs have created address this verification challenge, while maximizing overall productivity
multimillion-transistor systems running with multiple asynchronous clocks and effectiveness. The CDC solution needs to cover clock domain analysis
with frequencies as high as multiple gigahertz. SoC systems have multiple and structural and functional verification, addressing both register-transfer–
interfaces, some using standards with very different clock frequencies. level (RTL) and gate-level verification needs. Utilizing the CDC solution
Several modern serial interfaces are inherently asynchronous from the rest of enables development teams to reduce the overall verification effort and
the chip. There is also a trend toward designing major sub-blocks of SoCs to lessen the risk of costly re-spins due to asynchronous clock domain crossing
run on independent clocks to ease the problem of clock skew across large errors.
chips.
Design methodologies have traditionally focused on partition-based 2. CDC Basics
implementation and verification. Often these partitions are based on clock The design issues and challenges of handling the signal crossing domains
domains. The cross-clock domain crossing (CDC) signals pose a unique and will be discussed later in this newsletter. First, let’s look at some CDC
challenging issue for verification. Traditional functional simulation is basics.
inadequate to verify clock domain crossings. While static timing analysis • 2.1 CLOCK DOMAINS
(STA) is an integral part of the timing closure solution, little attention has A clock domain is defined as that part of the design driven by either
been paid to addressing proper clock domain implementation and verification. a single clock or clocks that have constant phase relationships. A clock and
Existing methods provide an ad hoc partial verification that is manual, time its inverted clock or its derived divide-by-two clocks are considered a clock
consuming, and error prone. domain (synchronous). Conversely, domains that have clocks with variable
If the sources of potential errors are not addressed and verified early on, phase and time relationships are considered different clock domains. In
designs can end up with functional errors that are only detected late in the Figure 1, the design has a single clock domain because the divCLK is the
design cycle—or even worse, during post-silicon verification. The cost of derived divide-by-two clock of the master clock CLK.
fixing errors at this stage is enormous. We know of large system houses in
which chips are “dead in the water” due to CDC problems.
Several errors could be caused by cross-CDC signals:
• Structural issues (sCDC): If the data input to a storage element changes
too close to a clock edge, the element may go into a metastable state and
the output cannot be reliably used. Asynchronous clock domain
crossings are particularly prone to metastability failures. To address this
issue, the circuit must be designed to “buy time” so the metastable signal
can settle to a stable value, typically using synchronizers.
After completing the synchronization, the structures beyond the
synchronizers still matter. For example, the design must ensure that the
synchronized signals do not converge. Reconvergence can create
functional errors.
• Functional errors (fCDC): Designers must ensure that the stability Fig 1 : single clock domain
and functionality on either side of the CDC circuit are handed In Figure 2, multiple clocks come from different sources. The sections of
over properly. Otherwise, there could be loss of signal values for logic elements driven by clocks are called clock domains, and the signals
signals passing between clock domains, with data instability in that interface between these asynchronous clock
the receiving clock domain are called the clock domain crossing (CDC) paths. The DA signal is
considered an asynchronous signal the clock domain—no constant phase and
time relationship exists between CLK A and CLK B.
Fig 2: CDC Path
or metastability. Figure 5, the control signals are usually flop-synchronized while the
As Figure 3 illustrates, if CLK B samples DA while DA is changing (at the data paths use the synced-in control signals to synchronize the data
rising edge of CLK and falling edge of D), then DB will be metastable. path. The data path uses a controlled synchronizer MUX to do the
domain crossing. This control MUX is sometimes called D-MUX,
MUX synchronizer, or sync MUX. We use the term MUX
synchronizer, which is a synonym for MUX synchronization scheme.
Fig 3: Metastability basics Fig 5: Control path and data path synchronization
Metastability cannot be avoided, but a solution for handling the The MUX synchronizer has a critical requirement for all input in
metastable signal enables proper functioning of the design. terms of the domains and functionality:
• Mean time between failures • The select input of the MUX comes from the destination domain
The metastability occurrences can be predicted by using the mean time (domain into which the signal is being synchronized)
between failures (MTBF) formula: • One of the MUX inputs is coming from the destination domain—
that is, the holding loop
• The MUX inputs can be source, destination, or user-specified static
signals
• The logic between the MUX synchronizer and the destination flop
is driven by the destination domain or static signals
Where C1 and C2 are constants that depend on the technology used to build
Convergence In The Crossover Path
the flip-flop; tMET is the duration of the metastable output; and fclk and
fdata are the frequencies of the synchronous clock and Clock domain crossover paths are false paths for timing tools; any
the asynchronous input, respectively. logic in this path must be carefully crafted and verified, because the
logic can cause glitches and create functional errors downstream.
3 Structural Designs for Synchronization (Scdc) In Figure 6, although the two source flops give the pulse at the same
Synchronization (Control Paths):
time, the propagation delay (Td) in post-layout masks out the pulse.
Designers can use special metastable hardened flops for increasing the
MTBF. For example, in Figure 4, a synchronizer flop is used following the Since it is a false path (ignored by the timing tool), the design
signal DB. So, instead of the metastable signal DB being used in the function techniques should consider these occurrences.
downstream as in Figure 3, the stable signal DB2 is used in the logic
downstream.
A divergence in the metastable signal can cause functional errors, as
seen in Figure 9: DB1 and DB2 came out at two different clock edges
as the settling and latching values of these metastable signals to the
two flops are at different times.
domains, which can cause unpredictable results. CLK 1 to CLK 2; and another rule (for example, R2) may specify a two-flop
For multi bit signals such as buses, the usual solution is to use a Gray code synchronizer from CLK 3 to CLK 2. The reconvergence check should start
when crossing a clock domain boundary. A Gray code ensures that only a analysis after three flops to data paths from CLK 1 to CLK 2 and two flops to
single bit changes as the bus counts up or down. This makes it possible to data paths from CLK 3 to CLK 2, and see if the two CDC paths converge.
detect whether all bits have been captured together by the receiving clock Once the structural analysis has been completed, the formal analysis and
or if they have been skewed across multiple clock cycles due to techniques can be used to verify the stability of all the signals in the CDC
metastability or differing delays among the bus bits. path. This formal analysis checks that the hold logic and the latching logic
For example, in an asynchronous FIFO, the read and write pointers cross have correct functionality. For vectors that are flop-synchronized, formal
over to the write and read clock domains, respectively. These pointers are analysis can be used to create a property to ensure that the vector is Gray-
control signals that are flop-synchronized. The signals are Gray encoded encoded.
prior to the crossover. Functional Check and Details
As shown in Figure 14 and Figure 15, the functional check can be broadly
5. A Complete CDC Solution classified into five checks:
Current methodologies that focus on timing closure run the risk of re-spins • Source data (SD) stability
and iteration due to the clock domain issues previously discussed. • Destination data (DD) stability
However, timing closure ensures that the violations within a clock domain • MUX enable (ME) stability that applies only to MUX schemes
are fixed, while those between the domains are false paths, that is, • Single-bit (SB) checks that apply only to vectors that are flop-
unchecked. As part of the verification strategy, the synchronization synchronized
errors—i.e., between clock domains—should be eliminated at the RTL • Handshake (HS) assertion for the flop-based signals
stage itself. In the timing-closure–only methodology (see Figure 12), these
errors are checked during the end stages of the design cycle, i.e., in the
gate simulation with SDF back annotation, a static verification tool adds
value.
A complete CDC solution addresses all the functional aspects of
multiclock SoC design verification. The structural checks are done for
sCDC issues, and formal analysis is used to validate the fCDC issues.
Failures should be viewed with a proper schematic viewer that uses color-
coding to depict different domains for ease of use. Also, back annotation to
the source code helps in debugging and fixing the code. The waveform can
be shown for the failures in the functional stability checks.
6. EDA Tools: -
Many EDA tools with different business models are on the market. EDA
vendors include Cadence, 0-In, Atrenta, @HDL, Mentor, and Synopsys.
Cadence Encounter Conformal CDC capability (part of Encounter
Conformal ASIC Equivalence Checker) is one of the leading products in
this area. Its strength lies in its quality, flow, ease of diagnosis, and gate-
level modeling expertise drawn from Encounter Conformal LEC (Logic
Equivalence Checker). Leading SoC design houses are using the product to
create complete CDC solutions.
7. Conclusions
With a growing number of clocks in today’s SoC designs, increased design
complexity, and pressure for first silicon success, all clock and timing Fig1. Facility cost trends.
issues have become a verification challenge. From figure 1 it can be seen that while the cost of a Fab has been increasing
Existing methods provide an ad hoc partial verification that is time exponentially, the capital cost per unit of output has been decreasing exponentially, i.e.,
consuming and error prone. Automatic formal verification techniques are the increases in capital cost are more than offset by the productivity gains. This analysis
suggests that Fabs are becoming more economical. It is however a fact that the price per
needed to ensure that multiclock designs are correct prior to tapeout. The
function is decreasing exponentially over time (see the next section) and capital costs
solution must also prevent sources of failures in multiclock designs, such as are becoming an increasingly large component of the overall manufacturing cost of a
metastability. product, suggesting that capital economics are not improving as rapidly as prices are
A clock domain crossing (CDC) verification solution must address this decreasing.
verification challenge, while maximizing overall productivity and
Fab cost as a percentage of industry revenue
effectiveness. It needs to cover clock domain analysis and structural and Another measure of Fab affordability is to compare the cost of a Fab to the size of the
functional verification, addressing both RTL and gate-level verification overall semiconductor industry. In 1960 the average Fab cost represented 0.125% of the
needs. With the Cadence Encounter Conformal CDC solution, development total industry revenue, by 2000 the latest 300mm Fabs have reached 1.28% of total
teams can reduce the overall verification effort and the risk of related re- industry revenue, although the average Fab is also much bigger and this may be driven
spins. by consolidation as much as anything.
How will the cost trend affect the industry?
Even if Fabs are becoming more economical the huge costs will limit the number of
companies able to afford a Fab. This suggests that very large Integrated Device
Manufacturers such as Intel, Toshiba, NEC, Samsung and TI will still build their own
Fabs, but that many mid tier players may be forced to foundries. Another result of the
trend in Fab costs may be consolidation in certain product segments. Our reasoning is
as follows. We believe that a well run Fab at an IDM or at a foundry running at similar
utilizations will have similar costs. Historically foundries have enjoyed higher
utilizations than IDMs due to the immaturity of the foundry business model - foundries
were still capturing market share. Over time, and we may be seeing this in the latest
downturn, foundry utilization should fluctuate as much or more than IDMs. This
suggests to us that foundry manufacturing costs will be similar to IDM manufacturing
costs and since foundries want to make a profit, foundry customers will pay more for a
foundry wafer than it would cost to make the same wafer themselves. For products
where design value added is high, foundries are and will continue to be an economically
viable option. For commodity products such as DRAM, Flash, and even X86 type
microprocessors, competitiveness will require that companies make their own product.
If Fabs are too expensive for all but the largest companies, then consolidation in
commodity products to large IDMs or consortiums of IDMs should occur. It should be
pointed out here that of the 43 - 300mm Fabs in the IC Knowledge database that are
either planned or actively underway, 13 are some kind of multi-company partnership.
Think Small
The next time you admire the latest functions in Your cells phone, laptop, or play station, or Stare in awe at complex medical and manufacturing
computers, remember that these devices are run by a tiny silicon wafer, commonly called a chip. Chip designers the world over work to make faster,
cheaper, and more innovative chips that can automate parts or the entire function of electronic devices.
INDUSTRY..TALK
It is now globally recognized that India has built core competence in chip design. Today, 19 of the top 25 semiconductor companies in the
world have Indian operations, and there are more than 200 Indian small and large semiconductor companies. In the world have Indian operations,
and there are more than 200 Indian small And large semiconductor companies. In addition to the obvious benefits of joining the global chip
design force, an interesting option is the opportunity for a budding chip designer to come up with innovations for the existing the existing medical,
automotive and engineering companies. In fact, the trend of small, high-end design boutiques focusing on one area in chip design might become
commonplace in India. The India Semiconductor Association (ISA) and IDC India, in their recent report 'India semiconductor and embedded design
service industry (2007-2010)' state that the Indian semiconductor and embedded design services market is expected to cross $7.37 billion in
2008. To achieve this phase of growth, the industry needs to focus on availability of quality manpower and focus on value creation through
innovation. "With the growing expertise and capabilities in complex end-to-end design, strong IP development, and increasing talent pool, India's
growth is nearly 22%, which is three times the global growth rate," says ISA president, Poornima Shenoy. The domestic market is also one of the
fastest growing, in Asia as well as globally. . . . . .
A
Arrcchhiitteeccttuurraall lleevveell LLooggiicc lleevveell C
Ciirrccuuiitt lleevveell
B
Beehhaavviioorraall V
for
a
(i=0;i<=15;i=i+1)
begin
1 b
s[i] = a[i] + b[i] +
cin;
---- 2 4
----- c
end
Viieew
3
tp
w
Arrcchhiitteeccttuurraall
A LLooggiicc CCiirrccuuiitt
SSyynntthheessiiss SSyynntthheessiiss SSyynntthheessiiss
SSttrruuccttuurraall V
mem
a
fsm
a
Viieew
D>
w
JBTech INDIA
VLSI Design Solutions & Project Training
JBTech INDIA
Royal Krishna Apra Plaza, D-2, F-09, Alpha-I,
Commercial Belt, Greater Noida (U.P), INDIA
Tel: +91-0120-2323100, 9911676774
Email: info@jbtechindia.com
Website: www.jbtechindia.com