Skip to content

Commit

Permalink
Merge pull request #70 from YosysHQ/imctk-engine
Browse files Browse the repository at this point in the history
Add support for the imctk-eqy-engine ("use imctk")
  • Loading branch information
mmicko authored Sep 16, 2024
2 parents 7b16456 + 18cadee commit d327440
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/eqy.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,38 @@ def write(self, job, partition):
"""[1:-1]), file=run_f)


class EqyImctkStrategy(EqySbyStrategy):
default_scfg = dict(
engine='aiger imctk-eqy-engine',
depth=5,
xprop=True,
rarity_sim_rounds=5,
window_min=3,
window_max=8,
timeout=None,
option=()
)
parse_opt_rarity_sim_rounds = EqyStrategy.int_opt_parser
parse_opt_window_min = EqyStrategy.int_opt_parser
parse_opt_window_max = EqyStrategy.int_opt_parser
def parse_opt_engine(self, *line):
self.parse_other_option(*line)


def write(self, job, partition):
self.scfg.engine = ' '.join([
'aiger imctk-eqy-engine',
f'--rarity-sim-rounds {self.scfg.rarity_sim_rounds}',
f'--window-min {self.scfg.window_min}',
f'--window-max {self.scfg.window_max}',
])
super().write(job, partition)

strategy_types = {
"dummy": EqyDummyStrategy,
"sat": EqySatStrategy,
"sby": EqySbyStrategy,
"imctk": EqyImctkStrategy
# add strategies here
}

Expand Down

0 comments on commit d327440

Please sign in to comment.