May 14, 2007 #1 D dsairajkiran Member level 3 Joined Aug 16, 2006 Messages 63 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Location india Activity points 1,626 can anyone explain how if and case statements infer logic after synthesis ?
May 14, 2007 #2 A arp Junior Member level 3 Joined Jan 27, 2005 Messages 31 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 318 if vs case verilog If statement used for priority encoder where as case statement is used for Mux
May 14, 2007 #3 D deepu_s_s Full Member level 5 Joined Mar 24, 2007 Messages 305 Helped 15 Reputation 30 Reaction score 5 Trophy points 1,298 Activity points 3,021 Re: if vs case verilog these are conditional statements and any synthesizer infer them as a mux.
May 14, 2007 #4 N naveenkrishnan Junior Member level 1 Joined May 14, 2007 Messages 16 Helped 4 Reputation 8 Reaction score 0 Trophy points 1,281 Activity points 1,365 Re: if vs case verilog It all depends on how you code. Even with if, you can create parallel mux implementation. Similarly, you can get a priority encoder with case and proper synopsys synthesis directives. Read the following papers: http://www.sunburst-design.com/papers/CummingsSNUG1999Boston_FullParallelCase.pdf **broken link removed** Naveen www.vlsiforum.com
Re: if vs case verilog It all depends on how you code. Even with if, you can create parallel mux implementation. Similarly, you can get a priority encoder with case and proper synopsys synthesis directives. Read the following papers: http://www.sunburst-design.com/papers/CummingsSNUG1999Boston_FullParallelCase.pdf **broken link removed** Naveen www.vlsiforum.com