xsim有时会遇到fatal error,迭代次数超限的问题。 这个问题一般都是状态机跳转错误导致的,跳转会陷入死循环。 排查方法可以是设置process trace on。 在tcl控制台中输入ptrace on,这样仿真的时候就会输出卡住的process所在的模块以及对应的行。 xsim还是八太行,不知道modelsim有没有那种类似单步调试或者断点调试的功能。