3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-10-31 04:52:30 +00:00

Add cycle_width option for sim's new -width option

This commit is contained in:
Jannis Harder 2025-10-20 14:57:38 +02:00
parent dbbc25a139
commit 6d0a1ed960
3 changed files with 8 additions and 0 deletions

View file

@ -1395,6 +1395,9 @@ class SbyTask(SbyConfig):
self.handle_bool_option("vcd", True)
self.handle_bool_option("vcd_sim", False)
self.handle_bool_option("fst", False)
self.handle_int_option("cycle_width", 10)
if self.opt_cycle_width < 2 or self.opt_cycle_width % 2 != 0:
self.error(f"cycle_width option must be an even number >= 2, but is {self.opt_cycle_width}")
self.handle_bool_option("witrename", True)
self.handle_bool_option("aigfolds", False)