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.

Case statement inside if-else in verilog

Status
Not open for further replies.

sun_ray

Advanced Member level 3
Advanced Member level 3
Joined
Oct 3, 2011
Messages
772
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Visit site
Activity points
6,828
Can a case statement be written inside the if-else statement in Verilog? For example, can the case statement be inside the else part of an if-else statement?

Regards,

sun_ray
 

But if I have an if else statement for a sequential circuit like. flip flop or any other sequential circuit. Can we nest case statement inside that i--else statment by writing a case statement inside the else portion?

Regards
 

In terms of the Verilog LRM, a conditional or case statement can be used in place of a simple statement (See A.6.4 Statements) This already answers your question.
 

FVM

I do not have the LRM now open in front of me. Can you please let me know what this simple statement mean?
Can you also please answer my question directly?

Regads
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top