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.

Verilog doubts about sensitivity list code

Status
Not open for further replies.

vikas_lakhanpal27

Member level 1
Joined
Jan 16, 2008
Messages
39
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,522
Verilog doubts

In two years of my exp in VLSI industry first time I saw a code in verilog in which senstivity list looks like

always @(posedge clk or negedge rst or negedge pwrfail)

I am trying to see how will Dc synthsize it. In between wat u ppl think is it good way to write code? And any idea how will DC synthsize it?

Acc to me we should check only one negedge or posedge + another signals in the senstivity list.

please give ur valucable comments!

regards,
Vikas
 

Verilog doubts

the sensitivity list is acceptable
 

Verilog doubts

Hi parmod,
thanks for the reply.I agreed that it is acceptable but is it a good design practice?
 

Re: Verilog doubts

You should consider that a sensitivity list with a clock usually infers a group of flip-flops with synchronous clock and asynchronous reset. The expression only appearing in the sensitivity list is the clock, the others make up the reset. If the reset condition in your example would be (~reset || ~pwrfail), it could act as one. A negedge with positive reset condition would cause an error with most Verilog compilers, probably this is also the case with impossible signal combinations.
 

Re: Verilog doubts

I think you should rethink about the DFT rules even if its synthesized with a negative sensitive reset and a positive edge triggred clock
 

Verilog doubts

Hi Vikas, there will be an or gate on the next two sensitive list member. This should not pose any DFT issue as the reset signal entering the flop will be muxed, so i dont see any such issue. But one thing i want to pint out, U should not write that. Any bug or issue is difficult to analyze.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top