Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法指定在 Specman 中测试结束时应该调用一个函数?
我正在寻找类似于 C 的 atexit() 的东西。
finalize()还没有尝试过我自己,但是您可能应该看看quit()为any_struct. 您可以尝试将其扩展为sys.
finalize()
quit()
any_struct
sys
extend sys { finalize() is also { // ... }; };
干杯,丹尼尔