Combining dynamic and static scheduling in high-level synthesis