Hi,
Do u have sine-wave/square wave generator or do u even need to design it with IC 8038.
Assuming u have square-pulse(0V - 5V) & a sine-wane(-1V - 1V).
Use two comparators such that,when your square wave is higher than (2.5 V) 1st comparator is switched on (2nd off) & when it is lower than 2.5V 2nd comparator is on(1st off).
When sq.wave.in > 2.5 V,1st comparator is on giving logic '1',multiply this with sine wave using IC 633 & use a half-wave rectifier(diode) to give positive pulses of sine wave.
When sq.wave.in < 2.5V ,2nd comparator is on giving logic '1',multiply this with sine wave & use a half wave rectifier in reverse fashion to give negative pulses of sine wave.
U'll have 2 outputs in ur circuit.U'll get positive pulses on one & negative on other.If u want a single output then just add using an adder circuit to get a single output