Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up extraneous buffer. | Alberto Gonzalez | 2020-05-14 | 1 | -5/+2 |
| | |||||
* | Replace `std::map` with `dict` for `unique_bit_id`. | Alberto Gonzalez | 2020-05-14 | 1 | -1/+1 |
| | |||||
* | Replace `std::map` with `dict` for `port_new2old_map`, `port_connmap`, and ↵ | Alberto Gonzalez | 2020-05-14 | 1 | -3/+3 |
| | | | | `cellbits_to_tplbits`. | ||||
* | Replace `std::map` with `dict` for `connbits_map`, `cell_to_inbit`, and ↵ | Alberto Gonzalez | 2020-05-14 | 1 | -3/+3 |
| | | | | `outbit_to_cell`. | ||||
* | Replace `std::map` with `dict` for `TechmapWires` type. | Alberto Gonzalez | 2020-05-14 | 1 | -1/+1 |
| | |||||
* | Replace `std::map` with `dict` for `celltypeMap`. | Alberto Gonzalez | 2020-05-14 | 1 | -3/+3 |
| | |||||
* | Replace `std::set` with `pool` for `handled_cells` and `techmap_wire_names`. | Alberto Gonzalez | 2020-05-14 | 1 | -4/+4 |
| | |||||
* | Replace `std::map` with `dict` for `positional_ports`. | Alberto Gonzalez | 2020-05-14 | 1 | -1/+1 |
| | |||||
* | Add specialized `hash()` for type `dict` and use a `dict` instead of a ↵ | Alberto Gonzalez | 2020-05-14 | 3 | -10/+25 |
| | | | | `std::map` for `techmap_cache` and `techmap_do_cache`. | ||||
* | Replace `std::map` with `dict` for `simplemap_mappers`. | Alberto Gonzalez | 2020-05-14 | 3 | -5/+5 |
| | |||||
* | Use `nullptr` instead of `NULL` in `passes/techmap/techmap.cc`. | Alberto Gonzalez | 2020-05-14 | 1 | -10/+10 |
| | |||||
* | Replace `std::string` and `RTLIL::IdString` with `IdString` in ↵ | Alberto Gonzalez | 2020-05-14 | 1 | -21/+21 |
| | | | | | | `passes/techmap/techmap.cc`. Co-Authored-By: Eddie Hung <eddie@fpgeh.com> | ||||
* | Do not modify design modules while iterating over `modules()`. | Alberto Gonzalez | 2020-05-14 | 1 | -1/+4 |
| | | | | Co-Authored-By: Eddie Hung <eddie@fpgeh.com> | ||||
* | Clean up pseudo-private member usage, superfluous `std::vector` ↵ | Alberto Gonzalez | 2020-05-14 | 1 | -76/+70 |
| | | | | instantiation, and `RTLIL::id2cstr()` usage in `passes/techmap/techmap.cc`. | ||||
* | Merge pull request #2025 from YosysHQ/eddie/frontend_cleanup | Eddie Hung | 2020-05-05 | 7 | -31/+34 |
|\ | | | | | frontend: cleanup to use more ID::*, more dict<> instead of map<> | ||||
| * | frontend: cleanup to use more ID::*, more dict<> instead of map<> | Eddie Hung | 2020-05-04 | 7 | -31/+34 |
| | | |||||
* | | Merge pull request #2012 from whitequark/fix-wasi-abc-build | whitequark | 2020-05-05 | 1 | -3/+3 |
|\ \ | | | | | | | Fix WASI builds with abc enabled | ||||
| * | | Update ABC to include WASI support fixes. | whitequark | 2020-05-02 | 1 | -1/+1 |
| | | | |||||
| * | | Fix WASI builds with abc enabled. | whitequark | 2020-05-01 | 1 | -2/+2 |
| | | | | | | | | | | | | This PR works around #2011. | ||||
* | | | Merge pull request #2026 from YosysHQ/eddie/scratchpad_abc9_W | Eddie Hung | 2020-05-05 | 3 | -11/+34 |
|\ \ \ | | | | | | | | | synth_ice40/ecp5/xilinx: allow abc9.W to be overridden via scratchpad | ||||
| * | | | synth_ice40/ecp5/xilinx: allow abc9.W to be overridden via scratchpad | Eddie Hung | 2020-05-04 | 3 | -11/+34 |
| | |/ | |/| | |||||
* | | | Merge pull request #2024 from YosysHQ/eddie/primitive_src | Eddie Hung | 2020-05-05 | 3 | -2/+22 |
|\ \ \ | | | | | | | | | verilog: set src attribute for primitives | ||||
| * | | | verilog: set src attribute for primitives | Eddie Hung | 2020-05-04 | 2 | -2/+6 |
| | | | | |||||
| * | | | tests: add tests for primitives' src | Eddie Hung | 2020-05-04 | 1 | -0/+16 |
| |/ / | |||||
* | | | Merge pull request #2023 from YosysHQ/eddie/specify_src | Eddie Hung | 2020-05-05 | 2 | -18/+26 |
|\ \ \ | |/ / |/| | | verilog: fix specify src attribute | ||||
| * | | verilog: fix specify src attribute | Eddie Hung | 2020-05-04 | 2 | -18/+26 |
|/ / | |||||
* | | Merge pull request #1996 from boqwxp/rtlil_source_locations | Eddie Hung | 2020-05-04 | 1 | -13/+13 |
|\ \ | | | | | | | frontend: Include complete source location instead of just `location.first_line` in `frontends/ast/genrtlil.cc`. | ||||
| * | | frontend: Include complete source location instead of just ↵ | Alberto Gonzalez | 2020-05-01 | 1 | -13/+13 |
| | | | | | | | | | | | | `location.first_line` in `frontends/ast/genrtlil.cc`. | ||||
* | | | Merge pull request #2000 from whitequark/log_error-trap | whitequark | 2020-05-03 | 2 | -3/+44 |
|\ \ \ | | | | | | | | | kernel: Trap in `log_error()` when a debugger is attached | ||||
| * | | | kernel: Trap in `log_error()` when a debugger is attached. | whitequark | 2020-05-03 | 2 | -3/+44 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The workflow of debugging fatal pass errors in Yosys is flawed in three ways: 1. Running Yosys under a debugger is sufficient for the debugger to catch some fatal errors (segfaults, aborts, STL exceptions) but not others (`log_error()`, `log_cmd_error()`). This is neither obvious nor easy to remember. 2. To catch Yosys-specific fatal errors, it is necessary to set a breakpoint at `logv_error_with_prefix()`, or at least, `logv_error()`. This is neither obvious nor easy to remember, and GDB's autocomplete takes many seconds to suggest function names due to the large amount of symbols in Yosys. 3. If a breakpoint is not set and Yosys encounters with such a fatal error, the process terminates. When debugging a crash that takes a long time to reproduce (or a nondeterministic crash) this can waste a significant amount of time. To solve this problem, add a macro `YS_DEBUGTRAP` that acts as a hard breakpoint (if available), and a macro `YS_DEBUGTRAP_IF_DEBUGGING` that acts as a hard breakpoint only if debugger is present. Then, use `YS_DEBUGTRAP_IF_DEBUGGING` in `logv_error_with_prefix()` to obviate the need for a breakpoint on nearly every platform. Co-Authored-By: Alberto Gonzalez <boqwxp@airmail.cc> | ||||
* | | | | Merge pull request #2014 from YosysHQ/claire/fixoptalu | Claire Wolf | 2020-05-03 | 2 | -7/+31 |
|\ \ \ \ | | | | | | | | | | | Fix the other "opt_expr -fine" bug introduced in 213a89558 | ||||
| * | | | | test: add test for #2014 | Eddie Hung | 2020-05-02 | 1 | -0/+12 |
| | | | | | |||||
| * | | | | Fix the other "opt_expr -fine" bug introduced in 213a89558 | Claire Wolf | 2020-05-02 | 1 | -7/+19 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Claire Wolf <claire@symbioticeda.com> | ||||
* | | | | | Merge pull request #2013 from YosysHQ/eddie/aiger_fixes | Eddie Hung | 2020-05-02 | 6 | -42/+101 |
|\ \ \ \ \ | |/ / / / |/| | | | | aiger: fixes for ports that have start_offset != 0 | ||||
| * | | | | abc9_ops: -reintegrate to be sensitive to start_offset too | Eddie Hung | 2020-05-02 | 1 | -3/+5 |
| | | | | | |||||
| * | | | | tests: aiger test for wire->start_offset != 0 | Eddie Hung | 2020-05-02 | 2 | -0/+41 |
| | | | | | |||||
| * | | | | aiger: fixes for ports that have start_offset != 0 | Eddie Hung | 2020-05-02 | 3 | -39/+55 |
|/ / / / | |||||
* | | | | Merge pull request #2010 from YosysHQ/claire/fixopt | Claire Wolf | 2020-05-02 | 2 | -7/+29 |
|\ \ \ \ | |_|_|/ |/| | | | Fix "opt_expr -fine" bug introduced in 213a89558 | ||||
| * | | | Add testcase for #2010 | Eddie Hung | 2020-05-01 | 1 | -0/+10 |
| | | | | |||||
| * | | | Fix "opt_expr -fine" bug introduced in 213a89558 | Claire Wolf | 2020-05-01 | 1 | -7/+19 |
| | | | | | | | | | | | | | | | | Signed-off-by: Claire Wolf <claire@symbioticeda.com> | ||||
* | | | | Merge pull request #2001 from whitequark/wasi | whitequark | 2020-05-01 | 17 | -29/+166 |
|\ \ \ \ | |/ / / |/| | | | Add WASI platform support | ||||
| * | | | Add WASI platform support. | whitequark | 2020-04-30 | 17 | -30/+167 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the following significant changes: * Patching ezsat and minisat to disable resource limiting code on WASM/WASI, since the POSIX functions they use are unavailable. * Adding a new definition, YOSYS_DISABLE_SPAWN, present if platform does not support spawning subprocesses (i.e. Emscripten or WASI). This definition hides the definition of `run_command()`. * Adding a new Makefile flag, DISABLE_SPAWN, present in the same condition. This flag disables all passes that require spawning subprocesses for their function. | ||||
* | | | | Merge pull request #1997 from whitequark/document-ootb | Claire Wolf | 2020-05-01 | 4 | -14/+29 |
|\ \ \ \ | | | | | | | | | | | Explain how to do out-of-tree builds in README | ||||
| * | | | | README: explain how to do out-of-tree builds. | whitequark | 2020-04-24 | 1 | -1/+8 |
| | | | | | |||||
| * | | | | Fix out-of-tree builds configured as `SMALL := 1`. | whitequark | 2020-04-24 | 1 | -11/+11 |
| | | | | | |||||
| * | | | | gowin,ecp5: remove generated files in `make clean`. | whitequark | 2020-04-24 | 2 | -2/+10 |
| | | | | | |||||
* | | | | | Merge pull request #1981 from YosysHQ/claire/fix1837 | Claire Wolf | 2020-05-01 | 1 | -0/+4 |
|\ \ \ \ \ | |_|/ / / |/| | | | | Clear current_scope when done with RTLIL generation | ||||
| * | | | | Clear current_scope when done with RTLIL generation, fixes #1837 | Claire Wolf | 2020-04-22 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Claire Wolf <claire@symbioticeda.com> | ||||
* | | | | | Merge pull request #1999 from YosysHQ/eddie/verific_enum_again | Eddie Hung | 2020-04-30 | 2 | -30/+68 |
|\ \ \ \ \ | | | | | | | | | | | | | verific: recover wiretype/enum attr as part of import_attributes() | ||||
| * | | | | | verific: ignore anonymous enums | Eddie Hung | 2020-04-30 | 1 | -1/+4 |
| | | | | | |