How do I make the circuits act like this block diagram in Verilog?

Top