Finish top level generate.

Signed-off-by: servanter <fengshang@126.com>