Repository navigation
Conversation
Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdmentionslec_mainonly as a one-line link under "Utilities", anddocs_src/tools.mdhas no entry for it. This adds alec_mainsection totools.mdwith 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 theQCHECKs inmain) and, for constraints,xls/solvers/z3_lec.cc/z3_lec.h: required--ir_pathand--netlist_path, exactly one of--cell_lib_path/--cell_proto_path,--stageand--auto_stageneeding--schedule_pathand excluding each other, the 8-bit multiply heuristic behind--auto_stage, and the constraint function rules (including that--auto_stagereturns before constraints are added, and thatLec::AddConstraintsrejects per-stage checks other than stage 0).Not verified: I could not build or run
lec_mainhere (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 anchorsolvers.md#ir-to-netlist-logical-equivalence-checking-lecis derived from the heading text and is not checked against rendered output.Refs #960