start implementing the cosim interface
split vpi and cosim routines