preethi19
Full Member level 5
- Joined
- Jun 30, 2014
- Messages
- 273
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 16
- Activity points
- 3,474
can anyone tell me the difference between initial and always block.... it was put initial block initializes variables for simulation and its not synthesizable... what is the need to initialize variables... initializing variables does that mean we assign a value to the variable??? ok suppose take an and gate... we declare the input variables a and b.... so like now i want to assign values to these variables... we use assign keyword to just assign the condition right ie (a & b). to assign the values do we use intial blocks??? then wat is always block used for.... do we assign condition using assign or always block??? like if initial and always block are same then why do we use an initial block and is initial and always block dependent on each other like wer the always block conditions gets its variable values assigned in initial block.... sorry if i am wrong but totally confused.. pls help