Can use case statement inside if else block

hai all

one quick question: can we use case statement inside the if else block.

eg: if(reset)
case(selection)
2’b00:
2’b0l:
2’b10:
else
(condition fail)

In reply to vickyvinay:

You can if you use the right syntax for a case statement.

In reply to dave_59:

yes deve i have done it, its working fine.