aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sf2/cells_sim.v: add IOSTD parameter to I/O cellsTristan Gingold2022-08-311-0/+11
| | | | | This parameter is set by LiberoSoc IPs, so it is needed to avoid errors when using those IPs.
* synth_sf2: add -discard-ffinit option to discard ff initial valueTristan Gingold2022-08-311-1/+11
| | | | | | sf2 ff have no initial values, but some IP cores use initial values. In order to use those cores on sf2, it is required to discard the initial value (to be carefully used).
* Bump versiongithub-actions[bot]2022-08-301-1/+1
|
* Merge pull request #3463 from YosysHQ/micko/hierarchy_fixMiodrag Milanović2022-08-293-0/+16
|\ | | | | Makes sure to set initial_top when top change, fixes #3462
| * Add test for bug 3462Miodrag Milanovic2022-08-292-0/+15
| |
| * Makes sure to set initial_top when change, fixes #3462Miodrag Milanovic2022-08-261-0/+1
| |
* | Fix mingw buildMiodrag Milanovic2022-08-291-0/+3
|/
* Bump versiongithub-actions[bot]2022-08-261-1/+1
|
* Merge pull request #3461 from YosysHQ/aki/hashlib_assertN. Engelhardt2022-08-251-1/+1
|\
| * kernel: hashlib: cleaned up message about table size in cases where ↵Aki Van Ness2022-08-251-1/+1
| | | | | | | | `sizeof(int) == 4`, (closes #3440)
* | Merge pull request #3449 from YosysHQ/aki/show_pathrwN. Engelhardt2022-08-251-0/+1
|\ \ | |/ |/|
| * yosys: passes: cmds: show: added filename re-writing to `show -lib`Aki Van Ness2022-08-221-0/+1
| |
* | use inttypes format specifiersN. Engelhardt2022-08-251-3/+3
| |
* | dump runtime information for passes to jsonN. Engelhardt2022-08-251-1/+28
| |
* | Merge pull request #3457 from KrystalDelusion/docs_widthN. Engelhardt2022-08-2535-184/+198
|\ \ | |/ |/|
| * Fitting help messages to 80 character widthKrystalDelusion2022-08-2435-184/+198
|/ | | | | | | | | 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.
* Bump versiongithub-actions[bot]2022-08-191-1/+1
|
* Merge pull request #3450 from jix/write_aiger_nonffJannis Harder2022-08-182-1/+8
|\ | | | | write_aiger: Fix non-$_FF_ FFs
| * write_aiger: Fix non-$_FF_ FFsJannis Harder2022-08-182-1/+8
|/ | | | This broke while switching sby's formal flows to always use $_FF_'s.
* Bump versiongithub-actions[bot]2022-08-171-1/+1
|
* Merge pull request #3434 from jix/witness_flowJannis Harder2022-08-1633-167/+2255
|\ | | | | Updated formal flow with new witness format
| * sim: -hdlname option to preserve flattened hierarchy in sim outputJannis Harder2022-08-162-9/+43
| |
| * smtbmc: Set step range for --yw and dont skip steps for --check-witnessJannis Harder2022-08-161-2/+14
| |
| * Update CEX minimization patches for abcJannis Harder2022-08-161-1/+1
| |
| * clk2fflogic: Generate less unused logic when using verificJannis Harder2022-08-161-1/+4
| | | | | | | | | | | | Verific generates a lot of FFs with an unused async load and we cannot always optimize that away before running clk2fflogic, so check for that special case here.
| * rename: Add -witness modeJannis Harder2022-08-162-0/+83
| |
| * yosys-witness: Add stats commandJannis Harder2022-08-161-0/+18
| |
| * smtbmc: Add --check-witness modeJannis Harder2022-08-161-1/+22
| | | | | | | | | | This verifies that the given constraints force an assertion failure. This is useful to debug witness trace conversion (and minimization).
| * aiger: Add yosys-witness supportJannis Harder2022-08-163-2/+320
| | | | | | | | | | Adds a new json based aiger map file and yosys-witness converters to us this to convert between native and AIGER witness files.
| * smtbmc: Add native json based witness format + smt2 backend supportJannis Harder2022-08-169-113/+983
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a native json based witness trace format. By having a common format that includes everything we support, and providing a conversion utility (yosys-witness) we no longer need to implement every format for every tool that deals with witness traces, avoiding a quadratic opportunity to introduce subtle bugs. Included: * smt2: New yosys-smt2-witness info lines containing full hierarchical paths without lossy escaping. * yosys-smtbmc --dump-yw trace.yw: Dump results in the new format. * yosys-smtbmc --yw trace.yw: Read new format as constraints. * yosys-witness: New tool to convert witness formats. Currently this can only display traces in a human-readable-only format and do a passthrough read/write of the new format. * ywio.py: Small python lib for reading and writing the new format. Used by yosys-smtbmc and yosys-witness to avoid duplication.
| * btor: Support $anyinit cellsJannis Harder2022-08-161-1/+1
| |
| * aiger: Support $anyinit cellsJannis Harder2022-08-161-0/+11
| |
| * smt2: Support $anyinit cellsJannis Harder2022-08-161-10/+11
| |
| * memory_map: Add -formal optionJannis Harder2022-08-162-17/+68
| | | | | | | | | | | | This maps memories for a global clock based formal verification flow. This implies -keepdc, uses $ff cells for ROMs and sets hdlname attributes.
| * setundef: Do not add anyseq / anyconst to unused memory port clocksJannis Harder2022-08-161-0/+24
| | | | | | | | Instead set those unused clocks to zero.
| * wreduce: Keep more x-bits with -keepdcJannis Harder2022-08-161-4/+4
| |
| * formalff: New -setundef optionJannis Harder2022-08-161-0/+335
| | | | | | | | | | | | | | Find FFs with undefined initialization values for which changing the initialization does not change the observable behavior and initialize them. For -ff2anyinit, this reduces the number of generated $anyinit cells that drive wires with private names.
| * formalff: Set new replaced_by_gclk attribute on removed dff's clksJannis Harder2022-08-164-0/+44
| | | | | | | | | | | | This attribute can be used by formal backends to indicate which clocks were mapped to the global clock. Update the btor and smt2 backend which already handle clock inputs to understand this attribute.
| * Add the $anyinit cell and the formalff passJannis Harder2022-08-1616-8/+271
|/ | | | | | | These can be used to protect undefined flip-flop initialization values from optimizations that are not sound for formal verification and can help mapping all solver-provided values in witness traces for flows that use different backends simultaneously.
* Bump versiongithub-actions[bot]2022-08-121-1/+1
|
* Merge pull request #3425 from YosysHQ/lofty/stat-jsonN. Engelhardt2022-08-111-38/+109
|\
| * stat: add option for machine-readable json outputLofty2022-08-111-38/+109
| |
* | Merge pull request #3277 from YosysHQ/lofty/rename-scramble_nameN. Engelhardt2022-08-112-0/+87
|\ \ | |/ |/|
| * rename: add -scramble-name option to randomly rename selectionsLofty2022-08-082-0/+87
| |
* | Bump versiongithub-actions[bot]2022-08-111-1/+1
| |
* | Merge pull request #3443 from YosysHQ/micko/resetall_undefineallMiodrag Milanović2022-08-101-0/+5
|\ \ | | | | | | resetall does not affect text defines, but undefineall does
| * | set default_nettype to wire for resetallMiodrag Milanovic2022-08-101-0/+1
| | |
| * | resetall does not affect text defines, but undefineall doesMiodrag Milanovic2022-08-101-0/+4
|/ /
* | Merge pull request #3322 from Forty-Bot/default_assignment_firstN. Engelhardt2022-08-101-10/+38
|\ \
| * | Order ports with default assignments firstSean Anderson2022-08-091-10/+38
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Although the current style is allowed by the standard, Icarus verilog doesn't parse default assignments using an implicit net type: techlibs/ice40/cells_sim.v:305: syntax error techlibs/ice40/cells_sim.v:1: Errors in port declarations. Fix this by making sure that ports with default assignments first on their line. Fixes: 46d3f03d2 ("Add default assignments to other SB_* simulation models") Signed-off-by: Sean Anderson <seanga2@gmail.com>