Tips on linking SW and HW simulation.
A good source for this kind of information is DVCon.org papers. I wrote a paper on Easy Steps Towards Virtual Prototyping using the SystemVerilog DPI that should give you a basic introduction a where to start.