The following is one simple 4 bit up counter verilog code I made using a 4 bit adder verilog code ( a working file , tested). I happens that when I include the adder instantiation the clock stops working and hence entire code stops working. Any suggestions of what possibly went wrong????
Also note that you cannot use assign in an always block. When you use an assign statement, it is a continuous assignment and thus cannot be further defined by saying assign only on posedge clock.
Found the problem, I was not thinking of it as hardware, but as a normal C problem with variables. Instead thought of the hardware first and then made its verilog code. Am commenting the changes made which made it work.