8000 docs: describe lec_main and its flags in the tools page by MaxonT · Pull Request #5561 · google/xls · GitHub
[go: up one dir, main page]

Skip to content

docs: describe lec_main and its flags in the tools page - #5561

Open
MaxonT wants to merge 1 commit into
google:mainfrom
MaxonT:contrib/960-auto
Open

MaxonT wants to merge 1 commit into
google:mainfrom
MaxonT:contrib/960-auto

Conversation

@MaxonT
@MaxonT MaxonT commented Nov 25, 2026
Copy link
Copy Markdown

I noticed lec_main had no entry on the tools page, so I wrote one from its flag definitions in the source; I couldn't build it here, so the usage example is a template.

docs_src/solvers.md mentions lec_main only as a one-line link under "Utilities", and docs_src/tools.md has no entry for it. This adds a lec_main section to tools.md with the required and optional flags, and links to it from the solvers page.

Every flag description is taken from xls/tools/lec_main.cc (flag help strings and the QCHECKs in main) and, for constraints, xls/solvers/z3_lec.cc/z3_lec.h: required --ir_path and --netlist_path, exactly one of --cell_lib_path/--cell_proto_path, --stage and --auto_stage needing --schedule_path and excluding each other, the 8-bit multiply heuristic behind --auto_stage, and the constraint function rules (including that --auto_stage returns before constraints are added, and that Lec::AddConstraints rejects per-stage checks other than stage 0).

Not verified: I could not build or run lec_main here (no Bazel on my machine), so the usage example is a command template with placeholder file names, not output from a real run. The issue also asks for a runnable example and a Bazel rule; I did not add either, so this uses Refs rather than Fixes. I did not build the mkdocs site, so the new anchor solvers.md#ir-to-netlist-logical-equivalence-checking-lec is derived from the heading text and is not checked against rendered output.

Refs #960

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
@MaxonT
MaxonT commented Nov 28, 2026
Copy link
Copy Markdown
Author

Hi team, could you please review this when you have a moment?

In short: Describe lec_main and its flags in the tools page.

I think this will be really valuable. You may want to take a look. Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0