Eddie Hung [Tue, 21 Apr 2020 19:30:25 +0000 (12:30 -0700)]
abc9_ops: cleanup; -prep_dff -> -prep_dff_submod
Eddie Hung [Tue, 21 Apr 2020 19:22:39 +0000 (12:22 -0700)]
abc9_ops: add -prep_bypass for auto bypass boxes; refactor
Eliminate need for abc9_{,un}map.v in xilinx
-prep_dff_{hier,unmap} -> -prep_hier
Eddie Hung [Thu, 16 Apr 2020 21:03:54 +0000 (14:03 -0700)]
abc9_ops: -reintegrate to handle $_FF_; cleanup
Eddie Hung [Thu, 16 Apr 2020 21:02:42 +0000 (14:02 -0700)]
xaiger: no longer use nonstandard even/odd to designate +ve/-ve polarity
Eddie Hung [Thu, 16 Apr 2020 21:01:54 +0000 (14:01 -0700)]
aiger: -xaiger to return $_FF_ flops
Eddie Hung [Thu, 16 Apr 2020 19:08:59 +0000 (12:08 -0700)]
abc9: not enough to techmap_fail on (* init=1 *), hide them using $__
Eddie Hung [Thu, 16 Apr 2020 17:49:33 +0000 (10:49 -0700)]
abc9: test to use box file instead of auto
Eddie Hung [Thu, 16 Apr 2020 17:40:33 +0000 (10:40 -0700)]
abc9: restore selected_modules()
Eddie Hung [Thu, 16 Apr 2020 17:25:41 +0000 (10:25 -0700)]
synth_*: no need to explicitly read +/abc9_model.v
Eddie Hung [Thu, 16 Apr 2020 17:25:22 +0000 (10:25 -0700)]
Revert "Merge pull request #1917 from YosysHQ/eddie/abc9_delay_check"
This reverts commit
759283fa65b1195ebe3a5bc6890ec622febca0eb, reversing
changes made to
f41c7ccfff4bf104c646ca4b85e079a0f91c9151.
Eddie Hung [Thu, 16 Apr 2020 17:24:02 +0000 (10:24 -0700)]
abc9: add flop boxes to basic $_DFF_P_ and $_DFF_N_ too
Eddie Hung [Thu, 16 Apr 2020 17:21:08 +0000 (10:21 -0700)]
kernel: TimingInfo to clamp -ve setup/edge-sensitive delays to zero
Eddie Hung [Wed, 15 Apr 2020 23:29:11 +0000 (16:29 -0700)]
abc9_ops: -prep_dff_map to error if async flop found
Eddie Hung [Wed, 19 Feb 2020 01:59:33 +0000 (17:59 -0800)]
Uncomment negative setup times; clamp to zero for connectivity
Eddie Hung [Wed, 15 Apr 2020 23:18:37 +0000 (16:18 -0700)]
abc9: remove redundant wbflip
Eddie Hung [Wed, 15 Apr 2020 23:16:30 +0000 (16:16 -0700)]
xaiger: always sort input/output bits by port id
redundant for normal design, but necessary for holes
Eddie Hung [Wed, 15 Apr 2020 23:13:57 +0000 (16:13 -0700)]
abc9: generate $abc9_holes design instead of <name>$holes
Eddie Hung [Wed, 15 Apr 2020 22:50:57 +0000 (15:50 -0700)]
abc9_ops: more robust
Eddie Hung [Wed, 15 Apr 2020 22:41:55 +0000 (15:41 -0700)]
abc9: suppress warnings when no compatible + used flop boxes formed
Eddie Hung [Wed, 15 Apr 2020 19:28:03 +0000 (12:28 -0700)]
xilinx: update abc9_dff tests
Eddie Hung [Wed, 15 Apr 2020 19:27:26 +0000 (12:27 -0700)]
xilinx: remove no-longer-relevant test
Eddie Hung [Wed, 15 Apr 2020 19:15:36 +0000 (12:15 -0700)]
aiger/xaiger: use odd for negedge clk, even for posedge
Since abc9 doesn't like negative mergeability values
Eddie Hung [Wed, 15 Apr 2020 16:38:29 +0000 (09:38 -0700)]
abc9: cleanup
Eddie Hung [Tue, 14 Apr 2020 19:56:28 +0000 (12:56 -0700)]
Revert "ecp5: replace ecp5_ffinit with techmap rules + dff2dffs -match-init"
This reverts commit
8c702b6cc0221a00021a3e4661c883bb591c924b.
Eddie Hung [Tue, 14 Apr 2020 19:35:12 +0000 (12:35 -0700)]
abc9_ops: -prep_dff_map to check $_DFF_[NP]_.Q drives module output
Eddie Hung [Tue, 14 Apr 2020 18:38:44 +0000 (11:38 -0700)]
abc9_ops: do away with '$abc9_cells' selection
Eddie Hung [Tue, 14 Apr 2020 18:10:48 +0000 (11:10 -0700)]
abc9_ops: use new 'design -delete' and 'select -unset'
Eddie Hung [Tue, 14 Apr 2020 17:36:07 +0000 (10:36 -0700)]
ecp5: (* abc9_flop *) gated behind YOSYS
Eddie Hung [Tue, 14 Apr 2020 15:53:07 +0000 (08:53 -0700)]
submod: revert accidental change
Eddie Hung [Tue, 14 Apr 2020 15:18:04 +0000 (08:18 -0700)]
Revert "Merge branch 'eddie/kernel_makeblackbox' into eddie/abc9_auto_dff"
This reverts commit
e08497c7c9d8a6f7a3eccddf2149c45d9ecff207, reversing
changes made to
e366fd55122236a21c6daee6765724add840a1f9.
Eddie Hung [Tue, 14 Apr 2020 15:03:58 +0000 (08:03 -0700)]
xaiger: update help text
Eddie Hung [Tue, 14 Apr 2020 14:51:23 +0000 (07:51 -0700)]
ecp5: add synth_ecp5 -dff to work with -abc9
Eddie Hung [Tue, 14 Apr 2020 14:49:55 +0000 (07:49 -0700)]
abc9_ops: -prep_dff_map to warn if no specify cells
Eddie Hung [Tue, 14 Apr 2020 14:48:37 +0000 (07:48 -0700)]
ice40: synth_ice40 cleanup
Eddie Hung [Tue, 14 Apr 2020 14:31:07 +0000 (07:31 -0700)]
ecp5: replace ecp5_ffinit with techmap rules + dff2dffs -match-init
Eddie Hung [Tue, 14 Apr 2020 02:08:46 +0000 (19:08 -0700)]
kernel: Module::makeblackbox() to clear connections + delete wires last
Eddie Hung [Tue, 14 Apr 2020 00:32:21 +0000 (17:32 -0700)]
ice40: add synth_ice40 -dff option, support with -abc9
Eddie Hung [Tue, 14 Apr 2020 00:31:44 +0000 (17:31 -0700)]
ice40: split out cells_map.v into ff_map.v
Eddie Hung [Tue, 14 Apr 2020 00:30:29 +0000 (17:30 -0700)]
abc9_ops: -prep_dff_map to cope with plain $_DFF_[NP]_ flops
Eddie Hung [Mon, 13 Apr 2020 23:21:08 +0000 (16:21 -0700)]
synth_xilinx: rename dff_mode -> dff
Eddie Hung [Mon, 13 Apr 2020 23:20:15 +0000 (16:20 -0700)]
xaiger: do not treat (* init=1'bx *) as 1'b0
Eddie Hung [Mon, 13 Apr 2020 20:12:45 +0000 (13:12 -0700)]
abc9: cleanup
Eddie Hung [Mon, 13 Apr 2020 20:12:37 +0000 (13:12 -0700)]
abc9_ops: do not use (* abc9_init *)
Eddie Hung [Mon, 13 Apr 2020 20:11:25 +0000 (13:11 -0700)]
aiger: -xaiger to parse initial state back into (* init *) on Q wire
Eddie Hung [Mon, 13 Apr 2020 20:10:57 +0000 (13:10 -0700)]
xaiger: when -dff use (* init *) for initial state
Eddie Hung [Mon, 13 Apr 2020 16:38:07 +0000 (09:38 -0700)]
abc9_ops: add 'dff' label for auto handling of (* abc9_flop *) boxes
Eddie Hung [Thu, 9 Apr 2020 21:42:43 +0000 (14:42 -0700)]
abc9: fix behaviour and help for -box option
Eddie Hung [Thu, 9 Apr 2020 21:31:14 +0000 (14:31 -0700)]
aiger: -xaiger to read $_DFF_[NP]_ back with new clocks created
according to mergeability class, and init state as cell attr
Eddie Hung [Thu, 9 Apr 2020 21:26:52 +0000 (14:26 -0700)]
xaiger: output $_DFF_[NP]_ with mergeability if -dff option
Eddie Hung [Thu, 14 May 2020 16:45:54 +0000 (09:45 -0700)]
Merge pull request #2045 from YosysHQ/eddie/fix2042
verilog: error if no direction given for task arguments, default to input in SV mode
Claire Wolf [Thu, 14 May 2020 16:45:13 +0000 (18:45 +0200)]
Merge pull request #2052 from YosysHQ/claire/verific_memfix
Add support for non-power-of-two mem chunks in verific importer
Claire Wolf [Thu, 14 May 2020 16:31:16 +0000 (18:31 +0200)]
Merge pull request #2050 from YosysHQ/eddie/opt_clean_fixes
opt_clean: remove (* init *) regardless of -purge, remove (* init *) when consistent with sigmap, clean to behave identically
Claire Wolf [Thu, 14 May 2020 16:06:18 +0000 (18:06 +0200)]
Merge pull request #2027 from YosysHQ/eddie/verilog_neg_upto
ast: swap range regardless of range_left >= 0
Eddie Hung [Thu, 14 May 2020 15:36:36 +0000 (08:36 -0700)]
test: add another testcase as per @nakengelhardt
Claire Wolf [Thu, 14 May 2020 12:38:13 +0000 (14:38 +0200)]
Add support for non-power-of-two mem chunks in verific importer
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Eddie Hung [Thu, 14 May 2020 07:59:38 +0000 (00:59 -0700)]
opt_clean: improve warning message
Eddie Hung [Thu, 14 May 2020 07:26:23 +0000 (00:26 -0700)]
opt_clean: add init test
Eddie Hung [Thu, 14 May 2020 07:24:23 +0000 (00:24 -0700)]
opt_clean: rminit without -purge; also remove if consistent with const..
warn otherwise
Eddie Hung [Thu, 14 May 2020 07:19:58 +0000 (00:19 -0700)]
opt_clean: really make 'clean' identical to 'opt_clean' by rminit too
Eddie Hung [Wed, 13 May 2020 20:33:37 +0000 (13:33 -0700)]
verilog: default to input in sv mode if task/func has no dir ...
otherwise error
Eddie Hung [Wed, 13 May 2020 17:11:45 +0000 (10:11 -0700)]
tests: update/extend task argument tests
Eddie Hung [Tue, 12 May 2020 22:40:48 +0000 (15:40 -0700)]
ice40: fix ICESTORM_LC process sensitivity
Eddie Hung [Tue, 12 May 2020 22:40:13 +0000 (15:40 -0700)]
ice40: fix whitespace
David Shah [Tue, 12 May 2020 20:12:26 +0000 (21:12 +0100)]
ecp5: Add missing SERDES parameters
Signed-off-by: David Shah <dave@ds0.me>
Eddie Hung [Mon, 11 May 2020 20:00:36 +0000 (13:00 -0700)]
verilog: error out when non-ANSI task/func arguments
Eddie Hung [Mon, 11 May 2020 18:05:19 +0000 (11:05 -0700)]
tests: add #2042 testcase
Eddie Hung [Mon, 11 May 2020 17:30:20 +0000 (10:30 -0700)]
Setup tests/verilog properly
Claire Wolf [Fri, 8 May 2020 08:40:25 +0000 (10:40 +0200)]
Merge pull request #2038 from nakengelhardt/no-libdir-flag
Remove yosys libdir from LDFLAGS (and fix a typo)
Claire Wolf [Fri, 8 May 2020 08:13:39 +0000 (10:13 +0200)]
Fix clang compiler warning
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
whitequark [Fri, 8 May 2020 05:30:32 +0000 (05:30 +0000)]
Merge pull request #2022 from Xiretza/fallthroughs
Avoid switch fall-through warnings
Dan Ravensloft [Thu, 16 Apr 2020 11:24:04 +0000 (12:24 +0100)]
intel_alm: direct LUTRAM cell instantiation
By instantiating the LUTRAM cell directly, we avoid a trip through
altsyncram, which speeds up Quartus synthesis time. This also gives
a little more flexibility, as Yosys can build RAMs out of individual
32x1 LUTRAM cells.
While working on this, I discovered that the mem_init0 parameter of
<family>_mlab_cell gets ignored by Quartus.
N. Engelhardt [Thu, 7 May 2020 17:28:18 +0000 (19:28 +0200)]
Remove yosys libdir from LDFLAGS (and fix a typo)
Claire Wolf [Thu, 7 May 2020 16:11:48 +0000 (18:11 +0200)]
Merge pull request #2005 from YosysHQ/claire/fix1990
Add "nowrshmsk" attribute, fix shift-and-mask bit slice write for signed offset
Eddie Hung [Thu, 7 May 2020 15:07:42 +0000 (08:07 -0700)]
Merge pull request #2034 from YosysHQ/eddie/abc_remote
Makefile: git fetch $(ABCURL) explicitly for local ABC checkout
Xiretza [Thu, 7 May 2020 09:44:38 +0000 (11:44 +0200)]
Reorder cases to avoid fall-through warning
log_assert(false) never returns and thus can't fall through, but gcc
doesn't seem to think that far. Making it the last case avoids the
problem entirely.
Xiretza [Mon, 4 May 2020 19:12:30 +0000 (21:12 +0200)]
Add YS_FALLTHROUGH macro to mark case fall-through
C++17 introduced [[fallthrough]], GCC and clang had their own vendored
attributes before that. MSVC doesn't seem to have such a warning at all.
Eddie Hung [Wed, 6 May 2020 23:23:46 +0000 (16:23 -0700)]
Makefile: git fetch all commits from $(ABCURL) repo
Eddie Hung [Wed, 6 May 2020 19:10:28 +0000 (12:10 -0700)]
Merge pull request #2028 from zachjs/master
verilog: allow null gen-if then block
Zachary Snow [Tue, 5 May 2020 00:22:16 +0000 (20:22 -0400)]
verilog: allow null gen-if then block
Eddie Hung [Tue, 5 May 2020 15:01:27 +0000 (08:01 -0700)]
techlibs/common: more robustness when *_WIDTH = 0
Eddie Hung [Tue, 5 May 2020 14:59:40 +0000 (07:59 -0700)]
Merge pull request #2025 from YosysHQ/eddie/frontend_cleanup
frontend: cleanup to use more ID::*, more dict<> instead of map<>
whitequark [Tue, 5 May 2020 14:03:40 +0000 (14:03 +0000)]
Merge pull request #2012 from whitequark/fix-wasi-abc-build
Fix WASI builds with abc enabled
Eddie Hung [Tue, 5 May 2020 13:49:36 +0000 (06:49 -0700)]
Merge pull request #2026 from YosysHQ/eddie/scratchpad_abc9_W
synth_ice40/ecp5/xilinx: allow abc9.W to be overridden via scratchpad
Eddie Hung [Tue, 5 May 2020 13:49:18 +0000 (06:49 -0700)]
Merge pull request #2024 from YosysHQ/eddie/primitive_src
verilog: set src attribute for primitives
Eddie Hung [Tue, 5 May 2020 13:49:06 +0000 (06:49 -0700)]
Merge pull request #2023 from YosysHQ/eddie/specify_src
verilog: fix specify src attribute
Eddie Hung [Mon, 4 May 2020 19:18:20 +0000 (12:18 -0700)]
ast: swap range regardless of range_left >= 0
Eddie Hung [Mon, 4 May 2020 19:18:02 +0000 (12:18 -0700)]
test: add failing test
Eddie Hung [Mon, 4 May 2020 18:44:00 +0000 (11:44 -0700)]
synth_ice40/ecp5/xilinx: allow abc9.W to be overridden via scratchpad
Eddie Hung [Mon, 4 May 2020 17:53:06 +0000 (10:53 -0700)]
verilog: fix specify src attribute
Eddie Hung [Mon, 4 May 2020 17:48:37 +0000 (10:48 -0700)]
frontend: cleanup to use more ID::*, more dict<> instead of map<>
Eddie Hung [Mon, 4 May 2020 17:22:05 +0000 (10:22 -0700)]
verilog: set src attribute for primitives
Eddie Hung [Mon, 4 May 2020 17:21:47 +0000 (10:21 -0700)]
tests: add tests for primitives' src
Eddie Hung [Mon, 4 May 2020 15:58:50 +0000 (08:58 -0700)]
Merge pull request #1996 from boqwxp/rtlil_source_locations
frontend: Include complete source location instead of just `location.first_line` in `frontends/ast/genrtlil.cc`.
whitequark [Sun, 3 May 2020 16:19:42 +0000 (16:19 +0000)]
Merge pull request #2000 from whitequark/log_error-trap
kernel: Trap in `log_error()` when a debugger is attached
whitequark [Fri, 24 Apr 2020 19:37:47 +0000 (19:37 +0000)]
kernel: Trap in `log_error()` when a debugger is attached.
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>
Claire Wolf [Sun, 3 May 2020 09:56:29 +0000 (11:56 +0200)]
Merge pull request #2014 from YosysHQ/claire/fixoptalu
Fix the other "opt_expr -fine" bug introduced in
213a89558
Eddie Hung [Sat, 2 May 2020 21:22:37 +0000 (14:22 -0700)]
test: add test for #2014
Eddie Hung [Sat, 2 May 2020 21:16:10 +0000 (14:16 -0700)]
Merge pull request #2013 from YosysHQ/eddie/aiger_fixes
aiger: fixes for ports that have start_offset != 0
Claire Wolf [Sat, 2 May 2020 19:34:24 +0000 (21:34 +0200)]
Fix the other "opt_expr -fine" bug introduced in
213a89558
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Claire Wolf [Sat, 2 May 2020 19:34:24 +0000 (21:34 +0200)]
Fix the other "opt_expr -fine" bug introduced in
213a89558
Signed-off-by: Claire Wolf <claire@symbioticeda.com>