Modeling and simulation of analog and digital communication systems