Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the Race condition in Verilog?

Status
Not open for further replies.

viju

Member level 4
Member level 4
Joined
Nov 26, 2006
Messages
71
Helped
16
Reputation
32
Reaction score
9
Trophy points
1,288
Location
Bangalore
Activity points
1,815
Hi I am new to this group.

Can any please tell me what is race ? Is it with flip flop or in verilog statement ?

Thanks,
VJ
 

Re: Race ?

Hi VJ,

There are two kind of race.
One with the digital hardware(i.e. in flip flop ) and
second is with the verilog simulation.
Both situations are considered as a race condition.

Hope this helps...

Let me know if you want to know in details...
 

    viju

    Points: 2
    Helpful Answer Positive Rating
Re: Race ?

viju said:
Hi I am new to this group.

Can any please tell me what is race ? Is it with flip flop or in verilog statement ?

Thanks,
VJ

Race condition in Verilog context refers to a condition wherein the results are unpredictable. For e.g. consider:


Code:
always @(a)
  b = ~a;

always @(a)
  $display ("a %b b %b ",a,b);

Without going into why one would write such a code, this is one kind of behavior that's termed as race in Verilog. Problem is that Verilog LRM has several loose ends such as order of execution of blocks etc. that lead to such cases. Lint tools help in isolating, checking them for RTL. A good RTL coder will avoid such styles. However when it comes to Testbench/Verification, people tend to take it lightly and go fancy about it thereby ending up with so many issues that result in loss of productivity. I touch upon this very topic in my recently launched training

Comprehensive Functional Verification (CFV)

See: www.noveldv.com for details. We offer this in Bangalore for now.

HTH
Ajeetha, CVC
www.noveldv.com
 

Re: Race ?

race can be avoided in verilog using non-blocking stmts appropriatley.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top