1
0
mirror of synced 2026-02-06 08:44:43 +00:00
Files
YosysHQ.yosys/kernel
Natalia fb864e91ee Add Design::run_pass() API for programmatic pass execution
This commit adds a new run_pass() method to the RTLIL::Design class,
providing a convenient API for executing Yosys passes programmatically.

This is particularly useful for PyYosys users who want to run passes
on a design object without needing to manually construct Pass::call()
invocations. The method wraps Pass::call() with appropriate logging
to maintain consistency with command-line pass execution.

Example usage (from Python):
    design = ys.Design()
    # ... build or load design ...
    design.run_pass("hierarchy")
    design.run_pass("proc")
    design.run_pass("opt")

Changes:
- kernel/rtlil.h: Add run_pass() method declaration
- kernel/rtlil.cc: Implement run_pass() method
- tests/unit/kernel/test_design_run_pass.cc: Add unit tests
2026-01-14 17:35:45 -08:00
..
2025-09-16 03:17:23 +00:00
2025-09-16 03:17:23 +00:00
2025-12-10 12:41:13 +01:00
2025-09-16 03:17:23 +00:00
2025-12-09 11:58:57 +01:00
2025-09-16 03:17:23 +00:00
2025-11-19 15:20:50 +01:00
2025-11-19 15:20:50 +01:00
2025-09-16 03:17:23 +00:00
2025-05-12 12:48:01 +12:00
2025-03-19 13:43:44 +01:00
2026-01-08 04:21:39 +00:00
2025-08-06 13:52:12 +12:00
2025-12-04 16:27:13 +01:00
2025-09-16 03:17:23 +00:00
2025-09-16 03:17:23 +00:00
2025-09-16 03:17:23 +00:00
2026-01-13 14:23:51 +01:00
2025-11-19 15:25:22 +01:00
2025-12-04 12:09:04 +01:00
2025-12-04 12:09:04 +01:00
2026-01-13 14:23:51 +01:00
2025-12-09 11:58:43 +01:00
2025-09-16 03:17:23 +00:00
2025-01-14 12:39:15 +01:00