--- Quote Start ---
To the OP: I dont know enough about single wire interface. But from your code, you didnt post a testbench. How does it work in simulation? can you recreate the problems in a simulation to help debug the problem?
--- Quote End ---
If you wrote the code from the scratch, it's unlikely that it has no errors at all. So a regular debugging phase should be planned for the project.
I must confess that I'm not motivated to check your code against the OW specification or design a testbench for it. That's definitely your job.
If you try to avoid writing a testbnch, you can check the basic design functionality in SignalTap. But due to the large delays needed for OW interface, it's not very comfortable.