adpated to litescript compiler v0.8.7