In reply to Ashokraj:
You have declared the clock as reg which is a 4 state data type having default value x. So either initialize it or use 2 state data type to declare clk.
In reply to Ashokraj:
You have declared the clock as reg which is a 4 state data type having default value x. So either initialize it or use 2 state data type to declare clk.