This is a simulation diagram. As far as the simulation diagram is concerned, the zero-crossing pulse signal synchronized with alternating current can be output.
That 7805 (not 7038) is regulated and outputs 5V voltage, which is necessary. That 74LS 14, that is, waveform shaping and inversion, is also needed.
When simulating, you can connect the input and output of 74LS 14 to the oscilloscope, and just look at the waveform.