yosys.git
3 years agonexus: Add MULTADDSUB9X9WIDE sim model
David Shah [Tue, 8 Dec 2020 15:49:20 +0000 (15:49 +0000)]
nexus: Add MULTADDSUB9X9WIDE sim model

Signed-off-by: David Shah <dave@ds0.me>
3 years agonexus: Add LRAM inference
David Shah [Mon, 7 Dec 2020 13:27:17 +0000 (13:27 +0000)]
nexus: Add LRAM inference

Signed-off-by: David Shah <dave@ds0.me>
3 years agonexus: More efficient CO mapping
David Shah [Wed, 2 Dec 2020 17:08:39 +0000 (17:08 +0000)]
nexus: More efficient CO mapping

Signed-off-by: David Shah <dave@ds0.me>
3 years agoMerge pull request #2460 from pepijndevos/simple-gowin
Miodrag Milanović [Tue, 1 Dec 2020 08:18:37 +0000 (09:18 +0100)]
Merge pull request #2460 from pepijndevos/simple-gowin

add -noalu and -json option for apicula

3 years agoadd -noalu and -json option for apicula
Pepijn de Vos [Mon, 30 Nov 2020 10:43:12 +0000 (11:43 +0100)]
add -noalu and -json option for apicula

3 years agoBump version
Yosys Bot [Thu, 26 Nov 2020 00:10:09 +0000 (00:10 +0000)]
Bump version

3 years agoMerge pull request #2452 from whitequark/rtlil-remove-dot-identifiers
whitequark [Wed, 25 Nov 2020 21:22:14 +0000 (21:22 +0000)]
Merge pull request #2452 from whitequark/rtlil-remove-dot-identifiers

rtlil: remove dotted identifiers

3 years agoMerge pull request #2453 from YosysHQ/mmicko/verilog_assignments
Miodrag Milanović [Wed, 25 Nov 2020 18:15:11 +0000 (19:15 +0100)]
Merge pull request #2453 from YosysHQ/mmicko/verilog_assignments

Generate only simple assignments in verilog backend

3 years agoAdd verilog backend option for simple_lhs
Miodrag Milanovic [Wed, 25 Nov 2020 17:21:41 +0000 (18:21 +0100)]
Add verilog backend option for simple_lhs

3 years agortlil: remove dotted identifiers.
whitequark [Wed, 25 Nov 2020 16:47:20 +0000 (16:47 +0000)]
rtlil: remove dotted identifiers.

No one knows where they came from and they never did anything useful.

3 years agogenerate only simple assignments in verilog backend
Miodrag Milanovic [Wed, 25 Nov 2020 16:43:28 +0000 (17:43 +0100)]
generate only simple assignments in verilog backend

3 years agoMerge pull request #2133 from dh73/nodev_head
Claire Xen [Wed, 25 Nov 2020 08:44:23 +0000 (09:44 +0100)]
Merge pull request #2133 from dh73/nodev_head

Adding latch tests for shift&mask AST dynamic part-select enhancements

3 years agoMerge pull request #2442 from cr1901/sccache
whitequark [Wed, 25 Nov 2020 02:48:39 +0000 (02:48 +0000)]
Merge pull request #2442 from cr1901/sccache

Makefile: Add disabled-by-default ENABLE_SCCACHE config option.

3 years agoMerge pull request #2450 from nitz/sim-vcd-filename
whitequark [Wed, 25 Nov 2020 02:48:10 +0000 (02:48 +0000)]
Merge pull request #2450 from nitz/sim-vcd-filename

Add rewrite_filename for sim -vcd argument.

3 years agoMakefile: Update ABCREV to bring in sccache fixes.
William D. Jones [Wed, 25 Nov 2020 02:32:27 +0000 (21:32 -0500)]
Makefile: Update ABCREV to bring in sccache fixes.

3 years agoBump version
Yosys Bot [Wed, 25 Nov 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

3 years agoAdd rewrite_filename for sim -vcd argument.
Chris Dailey [Tue, 24 Nov 2020 20:17:16 +0000 (15:17 -0500)]
Add rewrite_filename for sim -vcd argument.

3 years agoMerge pull request #2428 from whitequark/check-processes
whitequark [Tue, 24 Nov 2020 15:04:42 +0000 (15:04 +0000)]
Merge pull request #2428 from whitequark/check-processes

check: add support for processes

3 years agoMerge pull request #2448 from nitz/tcl-script-documentation-fixes
Miodrag Milanović [Tue, 24 Nov 2020 06:51:56 +0000 (07:51 +0100)]
Merge pull request #2448 from nitz/tcl-script-documentation-fixes

Tcl script documentation fixes

3 years agoMerge pull request #2295 from epfl-vlsc/firrtl_blackbox_generic_parameters
Miodrag Milanović [Tue, 24 Nov 2020 06:50:17 +0000 (07:50 +0100)]
Merge pull request #2295 from epfl-vlsc/firrtl_blackbox_generic_parameters

Add firrtl backend support for generic parameters in blackbox components

3 years agotcl -h message only if YOSYS_ENABLE_TCL defined.
nitz [Tue, 24 Nov 2020 02:48:44 +0000 (21:48 -0500)]
tcl -h message only if YOSYS_ENABLE_TCL defined.

3 years agoFormatting fixes
Sahand Kashani [Mon, 23 Nov 2020 09:43:59 +0000 (10:43 +0100)]
Formatting fixes

4 years agoBump version
Yosys Bot [Sat, 21 Nov 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2443 from YosysHQ/dave/nexus-mult-infer
Miodrag Milanović [Fri, 20 Nov 2020 09:30:56 +0000 (10:30 +0100)]
Merge pull request #2443 from YosysHQ/dave/nexus-mult-infer

nexus: Multiplier inference support

4 years agonexus: DSP inference support
David Shah [Fri, 20 Nov 2020 08:26:58 +0000 (08:26 +0000)]
nexus: DSP inference support

Signed-off-by: David Shah <dave@ds0.me>
4 years agoMakefile: Add disabled-by-default ENABLE_SCCACHE config option.
William D. Jones [Thu, 19 Nov 2020 18:23:54 +0000 (13:23 -0500)]
Makefile: Add disabled-by-default ENABLE_SCCACHE config option.

4 years agoBump version
Yosys Bot [Thu, 19 Nov 2020 00:10:10 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2441 from YosysHQ/dave/nexus_dsp_sim
Miodrag Milanović [Wed, 18 Nov 2020 11:22:05 +0000 (12:22 +0100)]
Merge pull request #2441 from YosysHQ/dave/nexus_dsp_sim

nexus: Add DSP simulation model

4 years agonexus: Add DSP simulation model
David Shah [Tue, 17 Nov 2020 11:56:18 +0000 (11:56 +0000)]
nexus: Add DSP simulation model

Signed-off-by: David Shah <dave@ds0.me>
4 years agoFix duplicated parameter name typo
Miodrag Milanovic [Wed, 18 Nov 2020 09:03:57 +0000 (10:03 +0100)]
Fix duplicated parameter name typo

4 years agoBump version
Yosys Bot [Tue, 17 Nov 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agobackends/blif: Remove unused vector of strings (#2420)
William Woodruff [Mon, 16 Nov 2020 08:31:48 +0000 (03:31 -0500)]
backends/blif: Remove unused vector of strings (#2420)

* backends/blif: Remove unused vector of strings

For reasons that are unclear to me, this was being used to store every
result of `cstr` before returning them. The vector was never accessed otherwise,
resulting in a huge unnecessary memory sink when emitting to BLIF.

* backends/blif: Remove CSTR macro

* backends/blif: Actually call str()

4 years agoMerge pull request #2438 from kbeckmann/gowin_rpll
Miodrag Milanović [Mon, 16 Nov 2020 08:30:54 +0000 (09:30 +0100)]
Merge pull request #2438 from kbeckmann/gowin_rpll

synth_gowin: Add rPLL blackbox

4 years agosynth_gowin: Add rPLL blackbox
Konrad Beckmann [Wed, 11 Nov 2020 16:01:50 +0000 (17:01 +0100)]
synth_gowin: Add rPLL blackbox

4 years agoBump version
Yosys Bot [Wed, 11 Nov 2020 00:10:17 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2433 from YosysHQ/paths_as_globals
Miodrag Milanović [Tue, 10 Nov 2020 07:05:42 +0000 (08:05 +0100)]
Merge pull request #2433 from YosysHQ/paths_as_globals

Expose abc and data paths as globals for pyosys

4 years agoBump version
Yosys Bot [Sun, 8 Nov 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2414 from zeldin/abc-depend-clang-fix
whitequark [Sat, 7 Nov 2020 18:48:03 +0000 (18:48 +0000)]
Merge pull request #2414 from zeldin/abc-depend-clang-fix

Prevent CXXFLAGS from leaking to abc Makefile

4 years agoPrevent CXXFLAGS from leaking to abc Makefile
Marcus Comstedt [Tue, 27 Oct 2020 13:04:28 +0000 (14:04 +0100)]
Prevent CXXFLAGS from leaking to abc Makefile

This fixes an issue with abc/depends.sh when the compiler is clang.

4 years agoMerge pull request #2432 from Xiretza/nexus-tests
Miodrag Milanović [Sat, 7 Nov 2020 14:07:45 +0000 (15:07 +0100)]
Merge pull request #2432 from Xiretza/nexus-tests

Update nexus arch tests to new harness

4 years agoExpose abc and data paths as globals
Miodrag Milanovic [Fri, 6 Nov 2020 13:17:15 +0000 (14:17 +0100)]
Expose abc and data paths as globals

4 years agocheck: add support for processes.
whitequark [Tue, 3 Nov 2020 15:36:27 +0000 (15:36 +0000)]
check: add support for processes.

4 years agocheck: reformat log/help text to match most other passes
whitequark [Mon, 2 Nov 2020 06:33:03 +0000 (06:33 +0000)]
check: reformat log/help text to match most other passes

4 years agoBump version
Yosys Bot [Tue, 3 Nov 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2426 from whitequark/cxxrtl-auto-top
whitequark [Mon, 2 Nov 2020 20:58:10 +0000 (20:58 +0000)]
Merge pull request #2426 from whitequark/cxxrtl-auto-top

cxxrtl: run `hierarchy -auto-top` if no top module is present

4 years agocxxrtl: run `hierarchy -auto-top` if no top module is present.
whitequark [Mon, 2 Nov 2020 19:18:56 +0000 (19:18 +0000)]
cxxrtl: run `hierarchy -auto-top` if no top module is present.

In most cases, a CXXRTL simulation would use a top module, either
because this module serves as an entry point to the CXXRTL C API,
or because the outputs of a top module are unbuffered, improving
performance. Taking this into account, the CXXRTL backend now runs
`hierarchy -auto-top` if there is no top module. For the few cases
where this behavior is unwanted, it now accepts a `-nohierarchy`
option.

Fixes #2373.

4 years agoBump version
Yosys Bot [Mon, 2 Nov 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2425 from whitequark/cxxrtl-meminit-constness
whitequark [Sun, 1 Nov 2020 17:08:42 +0000 (17:08 +0000)]
Merge pull request #2425 from whitequark/cxxrtl-meminit-constness

cxxrtl: don't assert on non-constant $meminit inputs

4 years agocxxrtl: don't assert on non-constant $meminit inputs.
whitequark [Sun, 1 Nov 2020 15:25:55 +0000 (15:25 +0000)]
cxxrtl: don't assert on non-constant $meminit inputs.

Fixes #2129.

4 years agoMerge pull request #2424 from whitequark/cxxrtl-multiple-drivers
whitequark [Sun, 1 Nov 2020 13:52:59 +0000 (13:52 +0000)]
Merge pull request #2424 from whitequark/cxxrtl-multiple-drivers

cxxrtl: don't assert on wires with multiple drivers

4 years agocxxrtl: don't assert on wires with multiple drivers.
whitequark [Sun, 1 Nov 2020 12:49:20 +0000 (12:49 +0000)]
cxxrtl: don't assert on wires with multiple drivers.

Fixes #2374.

4 years agoBump version
Yosys Bot [Sun, 1 Nov 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2416 from QuantamHD/master
whitequark [Sat, 31 Oct 2020 07:59:44 +0000 (07:59 +0000)]
Merge pull request #2416 from QuantamHD/master

Adds support for defining abc location at runtime

4 years agoBump version
Yosys Bot [Sat, 31 Oct 2020 00:10:15 +0000 (00:10 +0000)]
Bump version

4 years agoUpdate verific version
Miodrag Milanovic [Fri, 30 Oct 2020 07:32:59 +0000 (08:32 +0100)]
Update verific version

4 years agoUpdate nexus arch tests to new harness
Xiretza [Thu, 29 Oct 2020 13:42:07 +0000 (14:42 +0100)]
Update nexus arch tests to new harness

4 years agoThis patch adds support for defining the ABC location at runtime instead of at compil...
Ethan Mahintorabi [Thu, 29 Oct 2020 01:59:59 +0000 (18:59 -0700)]
This patch adds support for defining the ABC location at runtime instead of at compile time. This is helpful in build systems like bazel which do not have stable locations for binaries or directories during the compilation phase.

This change should be backwards compatible with the existing behavior.

4 years agoBump version
Yosys Bot [Sun, 25 Oct 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

4 years agoxilinx: Fix attributes_test.ys
Marcelina Kościelnicka [Fri, 23 Oct 2020 17:04:00 +0000 (19:04 +0200)]
xilinx: Fix attributes_test.ys

This test pretty much passes by accident — the `prep` command runs
memory_collect without memory_dff first, which prevents merging read
register into the memory, and thus blocks block RAM inference for a
reason completely unrelated to the attribute.

The attribute setting didn't actually work because it was set on the
containing module instead of the actual memory.

4 years agoBump version
Yosys Bot [Fri, 23 Oct 2020 00:10:07 +0000 (00:10 +0000)]
Bump version

4 years agonexus: Add make_transp to BRAMs
David Shah [Thu, 22 Oct 2020 14:11:59 +0000 (15:11 +0100)]
nexus: Add make_transp to BRAMs

Signed-off-by: David Shah <dave@ds0.me>
4 years agoMerge pull request #2403 from nakengelhardt/sim_timescale
N. Engelhardt [Thu, 22 Oct 2020 12:01:24 +0000 (14:01 +0200)]
Merge pull request #2403 from nakengelhardt/sim_timescale

sim -vcd: add date, version, and option for timescale

4 years agomemory_dff: Fix needlessly duplicating enable bits.
Marcelina Kościelnicka [Thu, 22 Oct 2020 08:37:44 +0000 (10:37 +0200)]
memory_dff: Fix needlessly duplicating enable bits.

When the register being merged into the EN signal happens to be a $sdff,
the current code creates a new $mux for every bit, even if they happen
to be identical (as is usually the case), preventing proper grouping
further down the flow.  Fix this by adding a simple cache.

Fixes #2409.

4 years agoBump version
Yosys Bot [Thu, 22 Oct 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agobtor: Use Mem helper.
Marcelina Kościelnicka [Sun, 18 Oct 2020 01:28:36 +0000 (03:28 +0200)]
btor: Use Mem helper.

4 years agosmt2: Use Mem helper.
Marcelina Kościelnicka [Sun, 18 Oct 2020 01:09:45 +0000 (03:09 +0200)]
smt2: Use Mem helper.

4 years agoverilog_backend: Use Mem helper.
Marcelina Kościelnicka [Sat, 17 Oct 2020 19:48:38 +0000 (21:48 +0200)]
verilog_backend: Use Mem helper.

4 years agosim: Use Mem helper.
Marcelina Kościelnicka [Sat, 17 Oct 2020 13:49:36 +0000 (15:49 +0200)]
sim: Use Mem helper.

4 years agoclk2fflogic: Use Mem helper.
Marcelina Kościelnicka [Fri, 16 Oct 2020 23:39:22 +0000 (01:39 +0200)]
clk2fflogic: Use Mem helper.

4 years agoopt_mem: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:21:05 +0000 (22:21 +0200)]
opt_mem: Use Mem helpers.

4 years agomemory_bram: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:20:55 +0000 (22:20 +0200)]
memory_bram: Use Mem helpers.

4 years agomemory_map: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:20:32 +0000 (22:20 +0200)]
memory_map: Use Mem helpers.

4 years agomemory_unpack: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:20:47 +0000 (22:20 +0200)]
memory_unpack: Use Mem helpers.

4 years agomemory_collect: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:20:24 +0000 (22:20 +0200)]
memory_collect: Use Mem helpers.

4 years agomemory_nordff: Use Mem helpers.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:20:16 +0000 (22:20 +0200)]
memory_nordff: Use Mem helpers.

4 years agoAdd new helper structures to represent memories.
Marcelina Kościelnicka [Sat, 17 Oct 2020 20:19:34 +0000 (22:19 +0200)]
Add new helper structures to represent memories.

4 years agouse strftime instead of put_time for gcc 4.8 compatibility
N. Engelhardt [Wed, 21 Oct 2020 15:47:00 +0000 (17:47 +0200)]
use strftime instead of put_time for gcc 4.8 compatibility

4 years agoBump version
Yosys Bot [Wed, 21 Oct 2020 00:10:07 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2405 from byuccl/fix_xilinx_cells
clairexen [Tue, 20 Oct 2020 15:11:36 +0000 (17:11 +0200)]
Merge pull request #2405 from byuccl/fix_xilinx_cells

xilinx/cells_sim.v: Move signal declaration to before first use

4 years agoMerge pull request #2404 from YosysHQ/claire/fixrpcargs
clairexen [Tue, 20 Oct 2020 09:32:35 +0000 (11:32 +0200)]
Merge pull request #2404 from YosysHQ/claire/fixrpcargs

Fix argument handling in connect_rpc

4 years agoBump version
Yosys Bot [Tue, 20 Oct 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoMove signal declarations to before first use
Jeff Goeders [Mon, 19 Oct 2020 22:09:04 +0000 (16:09 -0600)]
Move signal declarations to before first use

Signed-off-by: Jeff Goeders <jeff.goeders@gmail.com>
4 years agoFix argument handling in connect_rpc
Claire Xenia Wolf [Mon, 19 Oct 2020 11:40:57 +0000 (13:40 +0200)]
Fix argument handling in connect_rpc

Signed-off-by: Claire Xenia Wolf <claire@symbioticeda.com>
4 years agoMerge pull request #2397 from daveshah1/nexus
Miodrag Milanović [Mon, 19 Oct 2020 09:20:56 +0000 (11:20 +0200)]
Merge pull request #2397 from daveshah1/nexus

synth_nexus: Initial implementation

4 years agowild guessing at the problem because it builds fine on my machines
N. Engelhardt [Fri, 16 Oct 2020 16:46:59 +0000 (18:46 +0200)]
wild guessing at the problem because it builds fine on my machines

4 years agosim -vcd: add date, version, and option for timescale
N. Engelhardt [Fri, 16 Oct 2020 16:19:58 +0000 (18:19 +0200)]
sim -vcd: add date, version, and option for timescale

4 years agoBump version
Yosys Bot [Fri, 16 Oct 2020 00:10:07 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2398 from jakobwenzel/smtbmc-escape
clairexen [Thu, 15 Oct 2020 16:08:59 +0000 (18:08 +0200)]
Merge pull request #2398 from jakobwenzel/smtbmc-escape

smtbmc: escape identifiers in verilog testbench

4 years agosynth_nexus: Initial implementation
David Shah [Thu, 1 Oct 2020 10:15:54 +0000 (11:15 +0100)]
synth_nexus: Initial implementation

Signed-off-by: David Shah <dave@ds0.me>
4 years agoBump version
Yosys Bot [Tue, 13 Oct 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoextend verific library API for formal apps and generators
Miodrag Milanovic [Mon, 12 Oct 2020 12:56:15 +0000 (14:56 +0200)]
extend verific library API for formal apps and generators

4 years agoBump version
Yosys Bot [Fri, 9 Oct 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

4 years agoopt_clean: Better memory handling.
Marcelina Kościelnicka [Thu, 8 Oct 2020 11:33:47 +0000 (13:33 +0200)]
opt_clean: Better memory handling.

Previously, `$memwr` and `$meminit` cells were always preserved (along
with the memory itself).  With this change, they are instead part of the
main cell mark-and-sweep pass: a memory (and its `$meminit` and `$memwr`
cells) is only preserved iff any associated `$memrd` cell needs to be
preserved.

4 years agosmtbmc: escape identifiers in verilog testbench
Jakob Wenzel [Tue, 6 Oct 2020 09:24:29 +0000 (11:24 +0200)]
smtbmc: escape identifiers in verilog testbench

4 years agoBump version
Yosys Bot [Tue, 6 Oct 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoUpdate required Verific version
Miodrag Milanović [Mon, 5 Oct 2020 11:27:27 +0000 (13:27 +0200)]
Update required Verific version

4 years agoBump version
Yosys Bot [Sat, 3 Oct 2020 00:10:06 +0000 (00:10 +0000)]
Bump version

4 years agoMerge pull request #2396 from YosysHQ/claire/empty-param
clairexen [Fri, 2 Oct 2020 08:16:23 +0000 (10:16 +0200)]
Merge pull request #2396 from YosysHQ/claire/empty-param

Ignore empty parameters in Verilog module instantiations

4 years agoBump version
Yosys Bot [Fri, 2 Oct 2020 00:10:05 +0000 (00:10 +0000)]
Bump version

4 years agoIgnore empty parameters in Verilog module instantiations
Claire Xenia Wolf [Thu, 1 Oct 2020 16:26:53 +0000 (18:26 +0200)]
Ignore empty parameters in Verilog module instantiations

Fixes #2394

Signed-off-by: Claire Xenia Wolf <claire@symbioticeda.com>