wired everything up.

Finally I have wired everything up in the top module. Now I must
implement the logic in both of the sub modules.