Thanks Sharath. i used initial block in that module.
One more question.. I used a inout signal in one module. Now im calling that module from another module. I want to instantiate that module(which uses inout signal). here is my code.
Logic_Controller M2(.logic_controller_enable(logic_controller_enable),.input_to_lc(input_type),.read_enable(read_enable),.write_enable(mem_write),.CLK(CLK),.bus_lc(bus));
Memory M3(.mem_read(mem_read),.mem_write(mem_write),.CLK(CLK),.bus(bus));
here bus_lc and bus are inout signals. When i try to synthesize this, im getting error as "Multiple drivers are connected".