aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/select.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rst docs conversion (#3496)KrystalDelusion2022-11-151-0/+2
| | | Rst docs conversion
* Fitting help messages to 80 character widthKrystalDelusion2022-08-241-1/+1
| | | | | | | | | Uses the regex below to search (using vscode): ^\t\tlog\("(.{10,}(?<!\\n)|.{81,}\\n)"\); Finds any log messages double indented (which help messages are) and checks if *either* there are is no newline character at the end, *or* the number of characters before the newline is more than 80.
* have 'select -count' save the count to scratchpad entry 'select.count'N. Engelhardt2022-06-011-0/+3
|
* select: Fix -assert-none and -assert-any error output and docsJannis Harder2022-05-191-8/+10
| | | | | | | | | | | | | | | Both of these options consider a selection containing only empty modules as non-empty. This wasn't mentioned in the documentation nor did the error message when using `select -assert-none` list those empty modules, which produced a very confusing error message complaining about a non-empty selection followed by an empty listing of the selection. This fixes the documentation and changes the `-assert-none` and `-assert-any` assertion error messages to also output fully selected modules (this includes selected empty modules). It doesn't change the messages for `-assert-count` etc. as they don't count modules.
* Fixing old e-mail addresses and deadnamesClaire Xenia Wolf2021-06-081-1/+1
| | | | | | | | s/((Claire|Xen|Xenia|Clifford)\s+)+(Wolf|Xen)\s+<(claire|clifford)@(symbioticeda.com|clifford.at|yosyshq.com)>/Claire Xenia Wolf <claire@yosyshq.com>/gi; s/((Nina|Nak|N\.)\s+)+Engelhardt\s+<nak@(symbioticeda.com|yosyshq.com)>/N. Engelhardt <nak@yosyshq.com>/gi; s/((David)\s+)+Shah\s+<(dave|david)@(symbioticeda.com|yosyshq.com|ds0.me)>/David Shah <dave@ds0.me>/gi; s/((Miodrag)\s+)+Milanovic\s+<(miodrag|micko)@(symbioticeda.com|yosyshq.com)>/Miodrag Milanovic <micko@yosyshq.com>/gi; s,https?://www.clifford.at/yosys/,http://yosyshq.net/yosys/,g;
* Use C++11 final/override keywords.whitequark2020-06-181-6/+6
|
* Pass some more args by reference in select.ccRupert Swarbrick2020-05-271-7/+7
| | | | | | | | | Before this patch, the code passed around std::string objects by value. It's probably not a hot-spot, but it can't hurt to avoid the copying. Removing the copy and clean-up code means the resulting code is ~6.1kb smaller when compiled with GCC 9.3 and standard settings.
* Minor optimisations in select.cc's match_ids functionRupert Swarbrick2020-05-271-9/+11
| | | | | | | | | | - Pass a string argument by reference - Avoid multiple calls to IdString::str and IdString::c_str - Avoid combining checks for size > 0 and first char (C strings are null terminated, so foo[0] != '\0' implies that foo has positive length)
* Silence warning in select.ccRupert Swarbrick2020-05-271-1/+4
| | | | | | | | | | | With GCC 9.3, at least, compiling select.cc spits out a warning about an implausible bound being passed to strncmp. This comes from inlining IdString::compare(): it turns out that passing std::string::npos as a bound to strncmp triggers it. This patch replaces the compare call with a memcmp with the same effect. The repeated calls to IdString::c_str are slightly inefficient, but I'll address that in a follow-up commit.
* Merge pull request #1949 from YosysHQ/eddie/select_blackboxEddie Hung2020-04-221-9/+26
|\ | | | | select: do not select inside black-/white- boxes unless '=' prefix used
| * Update passes/cmds/select.ccClaire Wolf2020-04-221-2/+2
| | | | | | Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
| * select: do not select black/white boxes by default, '=' prefix to do soEddie Hung2020-04-221-5/+5
| |
| * Add '=' selection pattern prefix for non-blackbox only patternsClaire Wolf2020-04-211-12/+26
| | | | | | | | Signed-off-by: Claire Wolf <claire@symbioticeda.com>
| * select: do not select inside blackboxesEddie Hung2020-04-161-0/+3
| |
* | select: add select -unset optionEddie Hung2020-04-161-3/+22
|/
* Do not warn on empty selection with prefixed `arg_memb`.Alberto Gonzalez2020-03-231-1/+2
| | | | Co-Authored-By: N. Engelhardt <nak@symbioticeda.com>
* Suppress warnings for empty `select` arguments when `-count` or `-assert-*` ↵Alberto Gonzalez2020-03-231-4/+5
| | | | options are set.
* Warn on empty selection for `add` command.Alberto Gonzalez2020-03-231-6/+36
|
* Add N:* to select language, fix some old codeClaire Wolf2020-03-171-4/+9
| | | | Signed-off-by: Claire Wolf <claire@symbioticeda.com>
* Further clean up `passes/cmds/select.cc`.Alberto Gonzalez2020-03-161-11/+9
| | | | Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
* Cleanup code style and pseudo-private member usage in `passes/cmds/select.cc`.Alberto Gonzalez2020-03-161-162/+159
|
* Fix select command error msg, fixes issue #1081Miodrag Milanovic2019-09-011-2/+2
|
* substr() -> compare()Eddie Hung2019-08-071-25/+25
|
* stoi -> atoiEddie Hung2019-08-071-8/+8
|
* Use std::stoi instead of atoi(<str>.c_str())Eddie Hung2019-08-061-8/+8
|
* Fix typographical and grammatical errors and inconsistencies.whitequark2019-01-021-1/+1
| | | | | | | | | | | | The initial list of hits was generated with the codespell command below, and each hit was evaluated and fixed manually while taking context into consideration. DIRS="kernel/ frontends/ backends/ passes/ techlibs/" DIRS="${DIRS} libs/ezsat/ libs/subcircuit" codespell $DIRS -S *.o -L upto,iff,thru,synopsys,uint More hits were found by looking through comments and strings manually.
* select: print selection if a -assert-* flag causes an error.whitequark2018-12-161-8/+50
|
* Consistent use of 'override' for virtual methods in derived classes.Henner Zeller2018-07-201-7/+7
| | | | | | | | | o Not all derived methods were marked 'override', but it is a great feature of C++11 that we should make use of. o While at it: touched header files got a -*- c++ -*- for emacs to provide support for that language. o use YS_OVERRIDE for all override keywords (though we should probably use the plain keyword going forward now that C++11 is established)
* Recognize stand-alone obj pattern even when it contains a slashClifford Wolf2018-02-131-0/+3
|
* Add support for "yosys -E"Clifford Wolf2018-01-071-0/+2
| | | | Signed-off-by: Clifford Wolf <clifford@clifford.at>
* More intuitive handling of "cd .." for singleton modulesClifford Wolf2017-08-191-2/+38
|
* Replaced "select -assert-limit" with -assert-max and -assert-minClifford Wolf2016-07-011-42/+29
|
* Added 'assert-limit' option for 'select' commandeshellko2016-07-011-5/+42
| | | For resource limited designs such as FPGA it can be useful to specify limit of specific resources available on board. So user can check if he should change RTL as early as mapping done.
* Added %R select expressionClifford Wolf2015-12-201-0/+50
|
* Another block of spelling fixesLarry Doolittle2015-08-141-3/+3
| | | | Smaller this time
* Re-created command-reference-manual.tex, copied some doc fixes to online helpClifford Wolf2015-08-141-1/+1
|
* Spell check (by Larry Doolittle)Clifford Wolf2015-08-141-2/+2
|
* Some fixes in "select" commandClifford Wolf2015-07-161-1/+3
|
* Fixed trailing whitespacesClifford Wolf2015-07-021-7/+7
|
* Added %M and %C select operatorsClifford Wolf2015-04-071-1/+38
|
* Added "select %xe %cie %coe"Clifford Wolf2015-02-181-7/+28
|
* Fixed eval_select_op() apiClifford Wolf2015-02-081-1/+1
|
* Added eval_select_args() and eval_select_op()Clifford Wolf2015-02-081-4/+27
|
* Added "select -read"Clifford Wolf2015-02-061-5/+39
|
* Using selections in "ls" commandClifford Wolf2015-02-011-34/+30
|
* Fixed a bug in "select %ci %co %x"Clifford Wolf2014-12-301-4/+5
|
* Added Yosys::{dict,nodict,vector} container typesClifford Wolf2014-12-261-2/+2
|
* Added log_warning() APIClifford Wolf2014-11-091-1/+1
|
* Various win32 / vs build fixesClifford Wolf2014-10-171-5/+5
|
* Moved patmatch() to yosys.ccClifford Wolf2014-10-101-1/+0
|