Can we execute two commands in one when statement as following
A <= B WHEN C = '1' ELSE
'0';
In the above code if else condition comes I want that an assertion shall also fire. Can we execute two statements in one when statement. Actually I don't want to use PROCESS for implementing this logic.
Do you actually mean an assert statement? It don't understand how it's related to the conditional assignment? It woul be placed as an concurrent independent statement.
Writing 'small code' has NO bearing on the final output; you're ultimately creating hardware NOT writing software. 'Small code' is usually hard-to-understand code. I think the answer to your question is:
No, you can't have two assignments in a single WHEN statement.