yosys.git
3 years agokernel/mem: Add model for wide ports.
Marcelina Kościelnicka [Sat, 22 May 2021 14:48:46 +0000 (16:48 +0200)]
kernel/mem: Add model for wide ports.

Such ports cannot actually be created or used yet, this just adds the
necessary plumbing in the helper.  Subsequent commits will gradually
add wide port support to various yosys passes.

3 years agokernel/mem: Add priority_mask to model.
Marcelina Kościelnicka [Sat, 22 May 2021 15:00:20 +0000 (17:00 +0200)]
kernel/mem: Add priority_mask to model.

This is going to be used to store arbitrary priority masks in the
future.  Right now, it is not supported by our cell library, so the
priority_mask is computed from port order on helper construction,
and discarded when emitted.  However, this allows us to already convert
helper-using passes to the new model.

3 years agoopt_mem_feedback: Rewrite feedback path finding logic.
Marcelina Kościelnicka [Mon, 24 May 2021 19:21:51 +0000 (21:21 +0200)]
opt_mem_feedback: Rewrite feedback path finding logic.

Fixes #2766.

3 years agoopt_mem_feedback: Convert to Mem helpers.
Marcelina Kościelnicka [Sun, 23 May 2021 15:20:55 +0000 (17:20 +0200)]
opt_mem_feedback: Convert to Mem helpers.

3 years agohashlib: Add a hash for bool.
Marcelina Kościelnicka [Mon, 24 May 2021 19:27:29 +0000 (21:27 +0200)]
hashlib: Add a hash for bool.

3 years agoAdd a .mailmap file.
Marcelina Kościelnicka [Mon, 24 May 2021 15:37:29 +0000 (17:37 +0200)]
Add a .mailmap file.

3 years agoMerge pull request #2779 from YosysHQ/mwk/nuke-travis
Miodrag Milanović [Mon, 24 May 2021 15:24:01 +0000 (17:24 +0200)]
Merge pull request #2779 from YosysHQ/mwk/nuke-travis

Remove Travis CI.

3 years agoRemove Travis CI.
Marcelina Kościelnicka [Mon, 24 May 2021 15:18:03 +0000 (17:18 +0200)]
Remove Travis CI.

It has been replaced by GitHub Actions, and travis-ci.org is shutting
down in a few days anyway.

3 years agobackend/firrtl: Convert to use Mem helpers.
Marcelina Kościelnicka [Sun, 23 May 2021 22:41:31 +0000 (00:41 +0200)]
backend/firrtl: Convert to use Mem helpers.

3 years agogithub actions: Test on several gcc and clang versions on Linux.
Marcelina Kościelnicka [Sun, 23 May 2021 19:20:04 +0000 (21:20 +0200)]
github actions: Test on several gcc and clang versions on Linux.

Fixes #2776.

3 years agomemory_share: Use Mem helpers.
Marcelina Kościelnicka [Sun, 23 May 2021 15:20:51 +0000 (17:20 +0200)]
memory_share: Use Mem helpers.

3 years agoextract_rdff: Add initvals parameter.
Marcelina Kościelnicka [Sun, 23 May 2021 16:29:44 +0000 (18:29 +0200)]
extract_rdff: Add initvals parameter.

This is not used yet, but will be needed when read port reset/initial
value support lands.

3 years agobtor: Use is_mem_cell in one more place.
Marcelina Kościelnicka [Sun, 23 May 2021 16:08:34 +0000 (18:08 +0200)]
btor: Use is_mem_cell in one more place.

3 years agomemory_share: Split off feedback path finding as a separate pass.
Marcelina Kościelnicka [Sun, 23 May 2021 13:42:51 +0000 (15:42 +0200)]
memory_share: Split off feedback path finding as a separate pass.

memory_share is actually three passes in a trenchcoat.  Split off the
one that has the least in common with the other two as a separate pass.

3 years agoAdd new helper class for merging FFs into cells, use for memory_dff.
Marcelina Kościelnicka [Mon, 15 Mar 2021 14:38:45 +0000 (15:38 +0100)]
Add new helper class for merging FFs into cells, use for memory_dff.

Fixes #1854.

3 years agoopt_mem: Remove write ports with const-0 EN.
Marcelina Kościelnicka [Sat, 22 May 2021 18:27:51 +0000 (20:27 +0200)]
opt_mem: Remove write ports with const-0 EN.

Fixes #2765.

3 years agomemory_memx: Use Mem helper.
Marcelina Kościelnicka [Sat, 22 May 2021 18:19:00 +0000 (20:19 +0200)]
memory_memx: Use Mem helper.

3 years agokernel/rtlil: Extract some helpers for checking memory cell types.
Marcelina Kościelnicka [Sat, 22 May 2021 17:14:13 +0000 (19:14 +0200)]
kernel/rtlil: Extract some helpers for checking memory cell types.

There will soon be more (versioned) memory cells, so handle passes that
only care if a cell is memory-related by a simple helper call instead of
a hardcoded list.

3 years agokernel/mem: Add a check() function.
Marcelina Kościelnicka [Sat, 22 May 2021 14:36:50 +0000 (16:36 +0200)]
kernel/mem: Add a check() function.

3 years agokernel/mem: defer port removal to emit()
Marcelina Kościelnicka [Sat, 22 May 2021 14:10:18 +0000 (16:10 +0200)]
kernel/mem: defer port removal to emit()

3 years agomemory_dff: Use Mem helper.
Marcelina Kościelnicka [Fri, 23 Oct 2020 15:48:00 +0000 (17:48 +0200)]
memory_dff: Use Mem helper.

3 years agoRun VS build on PRs and each push
Miodrag Milanović [Thu, 20 May 2021 17:21:34 +0000 (19:21 +0200)]
Run VS build on PRs and each push

3 years agoBump version
Marcelina Kościelnicka [Thu, 20 May 2021 10:50:32 +0000 (12:50 +0200)]
Bump version

3 years agotests/blif: Add missing gitignore
Marcelina Kościelnicka [Thu, 20 May 2021 10:49:51 +0000 (12:49 +0200)]
tests/blif: Add missing gitignore

3 years agoVisual Studio build action
Miodrag Milanovic [Mon, 17 May 2021 08:24:30 +0000 (10:24 +0200)]
Visual Studio build action

3 years agointel_alm: Fix illegal carry chains
gatecat [Sat, 15 May 2021 13:40:37 +0000 (14:40 +0100)]
intel_alm: Fix illegal carry chains

Signed-off-by: gatecat <gatecat@ds0.me>
3 years agointel_alm: Add global buffer insertion
gatecat [Sat, 15 May 2021 13:34:48 +0000 (14:34 +0100)]
intel_alm: Add global buffer insertion

Signed-off-by: gatecat <gatecat@ds0.me>
3 years agointel_alm: Add IO buffer insertion
gatecat [Sat, 15 May 2021 13:23:22 +0000 (14:23 +0100)]
intel_alm: Add IO buffer insertion

Signed-off-by: gatecat <gatecat@ds0.me>
3 years agoChange the type of current_module to Module
Rupert Swarbrick [Mon, 20 Apr 2020 13:41:55 +0000 (14:41 +0100)]
Change the type of current_module to Module

The current_module global is needed so that genRTLIL has somewhere to
put cells and wires that it generates as it makes sense of expressions
that it sees. However, that doesn't actually need to be an AstModule:
the Module base class is enough.

This patch should cause no functional change, but the point is that
it's now possible to call genRTLIL with a module that isn't an
AstModule as "current_module". This will be needed for 'bind' support.

3 years agoUse range-based for loop in AST::process
Rupert Swarbrick [Mon, 20 Apr 2020 15:24:57 +0000 (16:24 +0100)]
Use range-based for loop in AST::process

No functional change: just get rid of the explicit iterator and
replace (*it)-> with child->. It's even the same number of characters,
but is hopefully a little easier to read.

3 years agoAdd missing parameters for MULT18X18D and ALU54B to ECP5 techlib.
Adam Greig [Wed, 27 Jan 2021 18:51:19 +0000 (18:51 +0000)]
Add missing parameters for MULT18X18D and ALU54B to ECP5 techlib.

3 years agosv: check validity of package end label
Zachary Snow [Mon, 10 May 2021 15:06:02 +0000 (11:06 -0400)]
sv: check validity of package end label

3 years agoblif: Use library cells' start_offset and upto for wideports.
Marcelina Kościelnicka [Wed, 5 May 2021 18:31:27 +0000 (20:31 +0200)]
blif: Use library cells' start_offset and upto for wideports.

Fixes #2729.

3 years agoconnect: Add -assert option, fix non-working sigmap.
Marcelina Kościelnicka [Wed, 5 May 2021 18:32:07 +0000 (20:32 +0200)]
connect: Add -assert option, fix non-working sigmap.

Should be useful for writing tests.

3 years agoopt_dff: Fix NOT gates wired in reverse.
Marcelina Kościelnicka [Tue, 4 May 2021 17:14:24 +0000 (19:14 +0200)]
opt_dff: Fix NOT gates wired in reverse.

3 years agoMerge pull request #2738 from mdko/xilinx-blif
Miodrag Milanović [Tue, 27 Apr 2021 09:46:41 +0000 (11:46 +0200)]
Merge pull request #2738 from mdko/xilinx-blif

Fix use of blif name in synth_xilinx command

3 years agoFix use of blif name in synth_xilinx command
Michael Christensen [Tue, 27 Apr 2021 09:29:52 +0000 (02:29 -0700)]
Fix use of blif name in synth_xilinx command

3 years agoMerge pull request #2737 from YosysHQ/claire/fix2736
Claire Xen [Mon, 26 Apr 2021 15:54:30 +0000 (17:54 +0200)]
Merge pull request #2737 from YosysHQ/claire/fix2736

Remove duplicates from conns array in JSON front-end, fixes #2736

3 years agoRemove duplicates from conns array in JSON front-end, fixes #2736
Claire Xenia Wolf [Mon, 26 Apr 2021 14:31:44 +0000 (16:31 +0200)]
Remove duplicates from conns array in JSON front-end, fixes #2736

3 years agoMerge pull request #2669 from YosysHQ/claire/ice40defaults
Claire Xen [Wed, 21 Apr 2021 10:24:07 +0000 (12:24 +0200)]
Merge pull request #2669 from YosysHQ/claire/ice40defaults

Add input default assignments to iCE40 cell library

3 years agoAdd default assignments to other SB_* simulation models
Claire Xenia Wolf [Tue, 20 Apr 2021 16:52:36 +0000 (18:52 +0200)]
Add default assignments to other SB_* simulation models

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
3 years agoAdd default assignments to SB_LUT4
Claire Xenia Wolf [Mon, 15 Mar 2021 22:27:55 +0000 (23:27 +0100)]
Add default assignments to SB_LUT4

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
3 years agoquicklogic: ABC9 synthesis
Lofty [Mon, 12 Apr 2021 09:33:40 +0000 (10:33 +0100)]
quicklogic: ABC9 synthesis

3 years agosf2: fix name of AND modules ls180
Stefan Riesenberger [Fri, 9 Apr 2021 13:44:08 +0000 (15:44 +0200)]
sf2: fix name of AND modules

3 years agoMerge pull request #2724 from whitequark/flatten-rewrite-memwr-memid
whitequark [Fri, 9 Apr 2021 14:22:36 +0000 (14:22 +0000)]
Merge pull request #2724 from whitequark/flatten-rewrite-memwr-memid

flatten: rewrite memid in memwr actions

3 years agoflatten: rewrite memid in memwr actions.
whitequark [Fri, 9 Apr 2021 09:46:53 +0000 (09:46 +0000)]
flatten: rewrite memid in memwr actions.

3 years agopreproc: test coverage for #2712
Zachary Snow [Tue, 30 Mar 2021 13:38:00 +0000 (09:38 -0400)]
preproc: test coverage for #2712

3 years agoequiv: Suggest running async2sync or clk2fflogic where appropriate.
Marcelina Kościelnicka [Tue, 30 Mar 2021 02:00:45 +0000 (04:00 +0200)]
equiv: Suggest running async2sync or clk2fflogic where appropriate.

See #2713.

3 years agoverilog: revise hot comment warnings
Zachary Snow [Mon, 29 Mar 2021 15:03:46 +0000 (11:03 -0400)]
verilog: revise hot comment warnings

3 years agoabc9: uniquify blackboxes like whiteboxes (#2695)
Eddie Hung [Tue, 30 Mar 2021 05:02:06 +0000 (22:02 -0700)]
abc9: uniquify blackboxes like whiteboxes (#2695)

* abc9_ops: uniquify blackboxes too

* abc9_ops: update comment

* abc9_ops: allow bypass for param-less blackboxes

* Add tests

3 years agoabc9: fix SCC issues (#2694)
Eddie Hung [Tue, 30 Mar 2021 05:01:57 +0000 (22:01 -0700)]
abc9: fix SCC issues (#2694)

* xilinx: add SCC test for DSP48E1

* xilinx: Gate DSP48E1 being a whitebox behind ALLOW_WHITEBOX_DSP48E1

Have a test that checks it works through ABC9 when enabled

* abc9 to break SCCs using $__ABC9_SCC_BREAKER module

* Add test

* abc9_ops: remove refs to (* abc9_keep *) on wires

* abc9_ops: do not bypass cells in an SCC

* Add myself to CODEOWNERS for abc9*

* Fix compile

* abc9_ops: run -prep_hier before scc

* Fix tests

* Remove bug reference pending fix

* abc9: fix for -prep_hier -dff

* xaiger: restore PI handling

* abc9_ops: -prep_xaiger sigmap

* abc9_ops: -mark_scc -> -break_scc

* abc9: eliminate hard-coded abc9.box from tests

Also tidy up

* Address review

3 years agoBump version
Marcelina Kościelnicka [Tue, 30 Mar 2021 00:30:17 +0000 (02:30 +0200)]
Bump version

3 years agopreproc: Fix up conditional handling.
Marcelina Kościelnicka [Mon, 29 Mar 2021 23:15:49 +0000 (01:15 +0200)]
preproc: Fix up conditional handling.

Fixes #2710.
Fixes #2711.

3 years agogha: trim macOS dependencies
Zachary Snow [Sun, 28 Mar 2021 21:45:38 +0000 (17:45 -0400)]
gha: trim macOS dependencies

- Only install needed dependencies rather than using Brewfile
- Remove brew update (recent enough formulae already baked in)
- Saves ~16 minutes in macOS CI

3 years agogha: combine jobs using matrix
Zachary Snow [Sun, 28 Mar 2021 19:28:23 +0000 (15:28 -0400)]
gha: combine jobs using matrix

3 years agortlil: add const accessors for modules, wires, and cells
Zachary Snow [Wed, 24 Mar 2021 15:23:23 +0000 (11:23 -0400)]
rtlil: add const accessors for modules, wires, and cells

3 years agoMerge pull request #2702 from modwizcode/patch-1
whitequark [Wed, 24 Mar 2021 23:39:19 +0000 (23:39 +0000)]
Merge pull request #2702 from modwizcode/patch-1

Clarify bugpoint documentation regarding output

3 years agoClarify bugpoint documentation regarding output
Iris Johnson [Wed, 24 Mar 2021 21:24:33 +0000 (16:24 -0500)]
Clarify bugpoint documentation regarding output

Bugpoint's current documentation does specify that the result of a run is stored as the current design,
however it's easy to skim over what that means in practice.

Add a documentation comment to explain specifically that an after bugpoint `write_xyz` pass is required to save
the reduced design.

3 years agoast: make design available to process_module()
Zachary Snow [Tue, 23 Mar 2021 16:49:11 +0000 (12:49 -0400)]
ast: make design available to process_module()

3 years agortlil: Fix process memwr roundtrip.
Marcelina Kościelnicka [Tue, 23 Mar 2021 16:39:06 +0000 (17:39 +0100)]
rtlil: Fix process memwr roundtrip.

Fixes #2646 fallout.

3 years agoMerge pull request #2696 from nakengelhardt/guidelines
N. Engelhardt [Tue, 23 Mar 2021 16:41:13 +0000 (17:41 +0100)]
Merge pull request #2696 from nakengelhardt/guidelines

split CodingReadme into multiple files

3 years agoquicklogic: Add .gitignore file for test outputs.
Marcelina Kościelnicka [Tue, 23 Mar 2021 13:51:37 +0000 (14:51 +0100)]
quicklogic: Add .gitignore file for test outputs.

3 years agojson: Improve the "processes in module" message a bit.
Marcelina Kościelnicka [Tue, 23 Mar 2021 13:47:32 +0000 (14:47 +0100)]
json: Improve the "processes in module" message a bit.

3 years agosplit CodingReadme into multiple files
N. Engelhardt [Mon, 22 Mar 2021 18:16:25 +0000 (19:16 +0100)]
split CodingReadme into multiple files

3 years agoverilog: check entire user type stack for type definition
Xiretza [Thu, 18 Mar 2021 20:53:02 +0000 (21:53 +0100)]
verilog: check entire user type stack for type definition

3 years agosv: allow typenames as function return types
Zachary Snow [Thu, 18 Mar 2021 17:38:25 +0000 (13:38 -0400)]
sv: allow typenames as function return types

3 years agoMerge pull request #2681 from msinger/fix-issue2606
Miodrag Milanović [Fri, 19 Mar 2021 07:47:07 +0000 (08:47 +0100)]
Merge pull request #2681 from msinger/fix-issue2606

Fix check for bad std::regex

3 years agoverilog: rebuild user_type_stack from globals before parsing file
Xiretza [Tue, 16 Mar 2021 15:42:14 +0000 (16:42 +0100)]
verilog: rebuild user_type_stack from globals before parsing file

This was actually a ticking UB bomb: after running the parser, the type
maps contain pointers to children of the current AST, which is
recursively deleted after the pass has executed. This leaves the
pointers in user_type_stack dangling, which just happened to never be a
problem due to another bug that causes typedefs from higher-level type
maps to never be considered.

Rebuilding the type stack from the design's globals ensures the AstNode
pointers are valid.

3 years agoAdd simple CI using github actions.
Marcelina Kościelnicka [Wed, 17 Mar 2021 18:32:50 +0000 (19:32 +0100)]
Add simple CI using github actions.

3 years agomodtools: fix use-after-free of cell pointers in ModWalker
Xiretza [Mon, 15 Mar 2021 14:55:18 +0000 (15:55 +0100)]
modtools: fix use-after-free of cell pointers in ModWalker

cell_inputs and cell_outputs retain cell pointers as their keys across
invocations of setup(), which may however be invalidated in the meantime
(as happens in e.g. passes/opt/share.cc:1432). A later rehash of the
dicts (caused by inserting in ModWalker::add_wire()) will cause them to
be dereferenced.

3 years agoquicklogic: PolarPro 3 support
Lofty [Wed, 17 Mar 2021 02:34:30 +0000 (02:34 +0000)]
quicklogic: PolarPro 3 support

Co-authored-by: Grzegorz Latosiński <glatosinski@antmicro.com>
Co-authored-by: Maciej Kurc <mkurc@antmicro.com>
Co-authored-by: Tarachand Pagarani <tpagarani@quicklogic.com>
Co-authored-by: Lalit Sharma <lsharma@quicklogic.com>
Co-authored-by: kkumar23 <kkumar@quicklogic.com>
3 years agoast: Use better parameter serialization for paramod names.
Marcelina Kościelnicka [Wed, 17 Mar 2021 17:30:49 +0000 (18:30 +0100)]
ast: Use better parameter serialization for paramod names.

Calling log_signal is problematic for several reasons:

- with recent changes, empty string is serialized as { }, which violates
  the "no spaces in IdString" rule
- the type (plain / real / signed / string) is dropped, wrongly conflating
  functionally different values and potentially introducing a subtle
  elaboration bug

Instead, use a custom simple serialization scheme.

3 years agoFix check for bad std::regex (fixes #2606)
Michael Singer [Wed, 17 Mar 2021 22:22:50 +0000 (23:22 +0100)]
Fix check for bad std::regex (fixes #2606)

3 years agoBlackbox all whiteboxes after synthesis
gatecat [Wed, 17 Mar 2021 12:16:53 +0000 (12:16 +0000)]
Blackbox all whiteboxes after synthesis

This prevents issues like processes in whiteboxes triggering an error in
the JSON backend.

Signed-off-by: gatecat <gatecat@ds0.me>
3 years agobugpoint: add runner option
Zachary Snow [Tue, 16 Mar 2021 14:54:22 +0000 (10:54 -0400)]
bugpoint: add runner option

3 years agosv: carry over global typedefs from previous files
Zachary Snow [Tue, 16 Mar 2021 15:06:40 +0000 (11:06 -0400)]
sv: carry over global typedefs from previous files

This breaks the ability to use a global typename as a standard
identifier in a subsequent input file. This is otherwise backwards
compatible, including for sources which previously included conflicting
typedefs in each input file.

3 years agoverilog: fix buf/not primitives with multiple outputs
Xiretza [Tue, 16 Mar 2021 23:18:36 +0000 (00:18 +0100)]
verilog: fix buf/not primitives with multiple outputs

From IEEE1364-2005, section 7.3 buf and not gates:

> These two logic gates shall have one input and one or more outputs.
> The last terminal in the terminal list shall connect to the input of the
> logic gate, and the other terminals shall connect to the outputs of
> the logic gate.

yosys does not follow this and instead interprets the first argument as
the output, the second as the input and ignores the rest.

3 years agoblackbox: Include whiteboxed modules
gatecat [Wed, 17 Mar 2021 12:06:09 +0000 (12:06 +0000)]
blackbox: Include whiteboxed modules

Signed-off-by: gatecat <gatecat@ds0.me>
3 years agoReplace assert in get_reference with more useful error message
Lofty [Wed, 17 Mar 2021 02:43:25 +0000 (02:43 +0000)]
Replace assert in get_reference with more useful error message

3 years agoverilog: support module scope identifiers in parametric modules
Zachary Snow [Thu, 4 Mar 2021 19:07:56 +0000 (14:07 -0500)]
verilog: support module scope identifiers in parametric modules

3 years agojson: Add support for memories.
Marcelina Kościelnicka [Tue, 9 Mar 2021 19:42:14 +0000 (20:42 +0100)]
json: Add support for memories.

Previously, memories were silently discarded by the JSON backend, making
round-tripping modules with them crash.

Since there are already some users using JSON to implement custom
external passes that use memories (and infer width/size from memory
ports), let's fix this by just making JSON backend and frontend support
memories as first-class objects.

Processes are still not supported, and will now cause a hard error.

Fixes #1908.

3 years agoproc_arst: Add special-casing of clock signal in conditionals.
Marcelina Kościelnicka [Fri, 12 Mar 2021 16:05:39 +0000 (17:05 +0100)]
proc_arst: Add special-casing of clock signal in conditionals.

The already-existing special case for conditionals on clock has been
remade as follows:

- now triggered for the last remaining edge trigger after all others
  have been converted to async reset, not just when there is only one
  sync rule in the first place
- does not require all contained assignments to be constant, as opposed
  to a reset conditional — merely const-folds the condition

In addition, the code has been refactored a bit; as a bonus, the
priority order of async resets found is now preserved in resulting sync
rule ordering (though this is not yet respected by proc_dff).

Fixes #2656.

3 years agoopt_clean: Remove init attribute bits together with removed DFFs.
Marcelina Kościelnicka [Tue, 9 Mar 2021 20:32:16 +0000 (21:32 +0100)]
opt_clean: Remove init attribute bits together with removed DFFs.

Fixes #2546.

3 years agortlil: Disallow 0-width chunks in SigSpec.
Marcelina Kościelnicka [Tue, 9 Mar 2021 01:54:56 +0000 (02:54 +0100)]
rtlil: Disallow 0-width chunks in SigSpec.

Among other problems, this also fixes equality comparisons between
SigSpec by enforcing a canonical form.

Also fix another minor issue with possible non-canonical SigSpec.

Fixes #2623.

3 years agoMerge pull request #2658 from zachjs/parameters-across-files
whitequark [Sun, 14 Mar 2021 15:02:16 +0000 (15:02 +0000)]
Merge pull request #2658 from zachjs/parameters-across-files

sv: allow globals in one file to depend on globals in another

3 years agosv: allow globals in one file to depend on globals in another
Zachary Snow [Thu, 11 Mar 2021 18:05:04 +0000 (13:05 -0500)]
sv: allow globals in one file to depend on globals in another

This defers the simplification of globals so that globals in one file
may depend on globals in other files. Adds a simplify() call downstream
because globals are appended at the end.

3 years agoMerge pull request #2653 from zachjs/global-parameter
whitequark [Fri, 12 Mar 2021 01:34:06 +0000 (01:34 +0000)]
Merge pull request #2653 from zachjs/global-parameter

verilog: disallow overriding global parameters

3 years agoMerge pull request #2642 from whitequark/cxxrtl-noproc-fixes
whitequark [Thu, 11 Mar 2021 20:01:10 +0000 (20:01 +0000)]
Merge pull request #2642 from whitequark/cxxrtl-noproc-fixes

CXXRTL: some -noproc fixes

3 years agoverilog: disallow overriding global parameters
Zachary Snow [Thu, 11 Mar 2021 16:49:15 +0000 (11:49 -0500)]
verilog: disallow overriding global parameters

It was previously possible to override global parameters on a
per-instance basis. This could be dangerous when using positional
parameter bindings, hiding oversupplied parameters.

3 years agoAdd _pm.h files to GENLIST, fixes vcxsrc target
Miodrag Milanovic [Thu, 11 Mar 2021 14:56:32 +0000 (15:56 +0100)]
Add _pm.h files to GENLIST, fixes vcxsrc target

3 years agoReplace assert in xaiger with more useful error message
Dan Ravensloft [Wed, 10 Mar 2021 19:31:55 +0000 (19:31 +0000)]
Replace assert in xaiger with more useful error message

3 years agoMerge pull request #2643 from zachjs/fix-param-no-default-log
whitequark [Tue, 9 Mar 2021 00:36:03 +0000 (16:36 -0800)]
Merge pull request #2643 from zachjs/fix-param-no-default-log

Fix param without default log line

3 years agoBump version
Marcelina Kościelnicka [Mon, 8 Mar 2021 19:18:11 +0000 (20:18 +0100)]
Bump version

3 years agomemory_dff: Remove now-useless write port handling. working-ls180
Marcelina Kościelnicka [Tue, 23 Feb 2021 18:42:51 +0000 (19:42 +0100)]
memory_dff: Remove now-useless write port handling.

3 years agoverilog: Use proc memory writes in the frontend.
Marcelina Kościelnicka [Tue, 23 Feb 2021 15:48:29 +0000 (16:48 +0100)]
verilog: Use proc memory writes in the frontend.

3 years agoAdd support for memory writes in processes.
Marcelina Kościelnicka [Mon, 22 Feb 2021 23:21:46 +0000 (00:21 +0100)]
Add support for memory writes in processes.

3 years agosim: Avoid a crash on empty cell connection.
Marcelina Kościelnicka [Mon, 1 Mar 2021 19:01:39 +0000 (20:01 +0100)]
sim: Avoid a crash on empty cell connection.

Fixes #2513.

3 years agoproc_dff: Fix emitted FF when a register is not assigned in async reset
Marcelina Kościelnicka [Sat, 6 Mar 2021 02:59:03 +0000 (03:59 +0100)]
proc_dff: Fix emitted FF when a register is not assigned in async reset

Fixes #2619.

3 years agomemory_dff: Remove code looking for $mux cells.
Marcelina Kościelnicka [Fri, 5 Mar 2021 00:23:25 +0000 (01:23 +0100)]
memory_dff: Remove code looking for $mux cells.

This job is now performed by `opt_dff`, which runs before this pass.

3 years agotests/bram: Do not generate write address collisions.
Marcelina Kościelnicka [Thu, 4 Mar 2021 16:55:57 +0000 (17:55 +0100)]
tests/bram: Do not generate write address collisions.

These have no defined semantics, making the tests non-deterministic.