yosys.git
6 years agoMerge Verific SVA preprocessor and SVA importer
Clifford Wolf [Sun, 18 Feb 2018 12:28:08 +0000 (13:28 +0100)]
Merge Verific SVA preprocessor and SVA importer

6 years agoMerge branch 'master' of github.com:cliffordwolf/yosys
Clifford Wolf [Fri, 16 Feb 2018 13:22:11 +0000 (14:22 +0100)]
Merge branch 'master' of github.com:cliffordwolf/yosys

6 years agoImprove handling of "bus" pins in liberty front-end (some files use bus.pin.direction)
Clifford Wolf [Thu, 15 Feb 2018 16:36:08 +0000 (17:36 +0100)]
Improve handling of "bus" pins in liberty front-end (some files use bus.pin.direction)

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoFix verific PRIM_SVA_AT handling in properties with PRIM_SVA_DISABLE_IFF
Clifford Wolf [Thu, 15 Feb 2018 14:26:37 +0000 (15:26 +0100)]
Fix verific PRIM_SVA_AT handling in properties with PRIM_SVA_DISABLE_IFF

6 years agoFixed yosys-config for binary distributions with Verific
Clifford Wolf [Tue, 13 Feb 2018 14:22:50 +0000 (15:22 +0100)]
Fixed yosys-config for binary distributions with Verific

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoRecognize stand-alone obj pattern even when it contains a slash
Clifford Wolf [Tue, 13 Feb 2018 13:55:24 +0000 (14:55 +0100)]
Recognize stand-alone obj pattern even when it contains a slash

6 years agoFix handling of zero-length cell connections in SMT2 back-end
Clifford Wolf [Thu, 8 Feb 2018 18:12:12 +0000 (19:12 +0100)]
Fix handling of zero-length cell connections in SMT2 back-end

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoMerge branch 'master' of github.com:cliffordwolf/yosys
Clifford Wolf [Sat, 3 Feb 2018 14:05:08 +0000 (15:05 +0100)]
Merge branch 'master' of github.com:cliffordwolf/yosys

6 years agoDo not create deep backtraces unless in ENABLE_DEBUG mode
Clifford Wolf [Sat, 3 Feb 2018 14:04:39 +0000 (15:04 +0100)]
Do not create deep backtraces unless in ENABLE_DEBUG mode

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoMerge pull request #488 from azonenberg/for_clifford
Clifford Wolf [Sat, 3 Feb 2018 13:45:23 +0000 (14:45 +0100)]
Merge pull request #488 from azonenberg/for_clifford

coolrunner2: Move LOC attributes onto the IO cells

6 years agoFixed gcc 7.2 "statement will never be executed" warning
Clifford Wolf [Sat, 3 Feb 2018 13:31:47 +0000 (14:31 +0100)]
Fixed gcc 7.2 "statement will never be executed" warning

6 years agoFix single-bit $stable handling in verific front-end
Clifford Wolf [Thu, 1 Feb 2018 11:51:49 +0000 (12:51 +0100)]
Fix single-bit $stable handling in verific front-end

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoAdd Verific attribute handling for assert/assume/cover/live/fair cells
Clifford Wolf [Wed, 31 Jan 2018 18:06:51 +0000 (19:06 +0100)]
Add Verific attribute handling for assert/assume/cover/live/fair cells

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoFix smtio.py for large SMT2 S-expressions
Clifford Wolf [Mon, 29 Jan 2018 11:34:28 +0000 (12:34 +0100)]
Fix smtio.py for large SMT2 S-expressions

6 years agoFix permissions on verific vdb files
Clifford Wolf [Sun, 28 Jan 2018 17:52:01 +0000 (18:52 +0100)]
Fix permissions on verific vdb files

6 years agoFixed handling of synchronous and asynchronous assertion/assumption/cover in verific...
Clifford Wolf [Tue, 23 Jan 2018 16:42:40 +0000 (17:42 +0100)]
Fixed handling of synchronous and asynchronous assertion/assumption/cover in verific bindings

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoUse "strip -S" instead of "strip -d" for Mac OS X compatibility
Clifford Wolf [Fri, 19 Jan 2018 22:56:23 +0000 (23:56 +0100)]
Use "strip -S" instead of "strip -d" for Mac OS X compatibility

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoImprove log messages in equiv_make
Clifford Wolf [Fri, 19 Jan 2018 15:20:40 +0000 (16:20 +0100)]
Improve log messages in equiv_make

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoMove user-provided smt2 info stmts to the top of the yosys-smtbmc smt2 output
Clifford Wolf [Thu, 18 Jan 2018 13:25:22 +0000 (14:25 +0100)]
Move user-provided smt2 info stmts to the top of the yosys-smtbmc smt2 output

6 years agocoolrunner2: Move LOC attributes onto the IO cells
Robert Ou [Sun, 19 Nov 2017 09:15:54 +0000 (01:15 -0800)]
coolrunner2: Move LOC attributes onto the IO cells

6 years agoStrip debug symbols from binaries on install
Clifford Wolf [Wed, 17 Jan 2018 13:14:10 +0000 (14:14 +0100)]
Strip debug symbols from binaries on install

6 years agoAdd "dffinit -highlow" and fix synth_intel
Clifford Wolf [Tue, 9 Jan 2018 17:42:19 +0000 (18:42 +0100)]
Add "dffinit -highlow" and fix synth_intel

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoAdd support for "yosys -E"
Clifford Wolf [Sun, 7 Jan 2018 15:36:13 +0000 (16:36 +0100)]
Add support for "yosys -E"

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoBugfix in hierarchy blackbox module port width handling
Clifford Wolf [Sun, 7 Jan 2018 15:35:22 +0000 (16:35 +0100)]
Bugfix in hierarchy blackbox module port width handling

6 years agoUpdate ABC to hg rev 6e3c24b3308a
Clifford Wolf [Sun, 7 Jan 2018 12:47:59 +0000 (13:47 +0100)]
Update ABC to hg rev 6e3c24b3308a

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoMerge pull request #479 from Fatsie/latch_without_data
Clifford Wolf [Fri, 5 Jan 2018 22:00:28 +0000 (23:00 +0100)]
Merge pull request #479 from Fatsie/latch_without_data

Some standard cell libraries include a latch with only set/reset.

6 years agoBugfix in hierarchy handling of blackbox module ports
Clifford Wolf [Fri, 5 Jan 2018 12:28:45 +0000 (13:28 +0100)]
Bugfix in hierarchy handling of blackbox module ports

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoMerge pull request #480 from Fatsie/liberty_value_expression
Clifford Wolf [Thu, 4 Jan 2018 12:30:00 +0000 (13:30 +0100)]
Merge pull request #480 from Fatsie/liberty_value_expression

Value of properties can be expression.

6 years agoTemporarily derive blackbox modules in hierarchy to evaluate port widths
Clifford Wolf [Thu, 4 Jan 2018 12:23:29 +0000 (13:23 +0100)]
Temporarily derive blackbox modules in hierarchy to evaluate port widths

Signed-off-by: Clifford Wolf <clifford@clifford.at>
6 years agoValue of properties can be expression.
Staf Verhaegen [Wed, 3 Jan 2018 20:36:22 +0000 (20:36 +0000)]
Value of properties can be expression.

Example found in the 2007.03 Liberty Reference Manual that was also found
in the wild:

    input_voltage(CMOS) {
        vil : 0.3 * VDD ;
        vih : 0.7 * VDD ;
        vimin : -0.5 ;
        vimax : VDD + 0.5 ;
    }

Current implementation just parses the expression but no interpretation is done.

6 years agoSome standard cell libraries include a latch with only set/reset.
Staf Verhaegen [Wed, 3 Jan 2018 20:29:55 +0000 (20:29 +0000)]
Some standard cell libraries include a latch with only set/reset.

6 years agoAdd "no driver for signal bit" error msg to btor back-end
Clifford Wolf [Sun, 24 Dec 2017 16:29:54 +0000 (17:29 +0100)]
Add "no driver for signal bit" error msg to btor back-end

6 years agoBugfix in verilog_defaults argument parser
Clifford Wolf [Sun, 24 Dec 2017 16:21:37 +0000 (17:21 +0100)]
Bugfix in verilog_defaults argument parser

6 years agoFix minor typo in "prep" help message
Clifford Wolf [Tue, 19 Dec 2017 20:44:05 +0000 (21:44 +0100)]
Fix minor typo in "prep" help message

6 years agoSimple fix BTOR memory encoding
Clifford Wolf [Sun, 17 Dec 2017 17:57:54 +0000 (18:57 +0100)]
Simple fix BTOR memory encoding

6 years agoImprove BTOR memory encoding
Clifford Wolf [Sun, 17 Dec 2017 17:55:17 +0000 (18:55 +0100)]
Improve BTOR memory encoding

6 years agoMerge branch 'btor-ng'
Clifford Wolf [Fri, 15 Dec 2017 01:21:56 +0000 (02:21 +0100)]
Merge branch 'btor-ng'

6 years agoAdd array support to btor back-end
Clifford Wolf [Fri, 15 Dec 2017 01:19:06 +0000 (02:19 +0100)]
Add array support to btor back-end

6 years agoAdd $anyconst/$anyseq support to btor back-end
Clifford Wolf [Thu, 14 Dec 2017 23:40:24 +0000 (00:40 +0100)]
Add $anyconst/$anyseq support to btor back-end

6 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Thu, 14 Dec 2017 02:13:47 +0000 (03:13 +0100)]
Merge branch 'master' into btor-ng

6 years agoAdd yosys-smtbmc VCD writer support for memories with async writes
Clifford Wolf [Thu, 14 Dec 2017 02:05:20 +0000 (03:05 +0100)]
Add yosys-smtbmc VCD writer support for memories with async writes

6 years agoFix a bug in clk2fflogic memory handling
Clifford Wolf [Thu, 14 Dec 2017 01:29:19 +0000 (02:29 +0100)]
Fix a bug in clk2fflogic memory handling

6 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Thu, 14 Dec 2017 01:17:01 +0000 (02:17 +0100)]
Merge branch 'master' into btor-ng

6 years agoAdd clk2fflogic memory support
Clifford Wolf [Thu, 14 Dec 2017 01:07:31 +0000 (02:07 +0100)]
Add clk2fflogic memory support

6 years agoAdd smt2 back-end support for async write memories
Clifford Wolf [Thu, 14 Dec 2017 01:07:10 +0000 (02:07 +0100)]
Add smt2 back-end support for async write memories

6 years agoAdd RTLIL::Const::is_fully_ones()
Clifford Wolf [Thu, 14 Dec 2017 01:06:39 +0000 (02:06 +0100)]
Add RTLIL::Const::is_fully_ones()

6 years agoAdd SigSpec::is_fully_ones()
Clifford Wolf [Tue, 12 Dec 2017 20:48:31 +0000 (21:48 +0100)]
Add SigSpec::is_fully_ones()

6 years agoMerge pull request #469 from kkiningh/master
Clifford Wolf [Wed, 13 Dec 2017 23:03:26 +0000 (00:03 +0100)]
Merge pull request #469 from kkiningh/master

Use quote includes for yosys.h

6 years agoUse quote includes for yosys.h
Kevin Kiningham [Wed, 13 Dec 2017 21:27:52 +0000 (13:27 -0800)]
Use quote includes for yosys.h

6 years agoCheck for memories in clk2fflogic
Clifford Wolf [Wed, 13 Dec 2017 18:14:34 +0000 (19:14 +0100)]
Check for memories in clk2fflogic

6 years agoMerge pull request #468 from grahamedgecombe/fix-sb-io-od
Clifford Wolf [Wed, 13 Dec 2017 15:55:39 +0000 (16:55 +0100)]
Merge pull request #468 from grahamedgecombe/fix-sb-io-od

Fix SB_IO_OD module

6 years agoAdd "write_btor -s" mode
Clifford Wolf [Tue, 12 Dec 2017 23:15:44 +0000 (00:15 +0100)]
Add "write_btor -s" mode

6 years agoAdd state initval handling to btor back-end
Clifford Wolf [Tue, 12 Dec 2017 22:43:55 +0000 (23:43 +0100)]
Add state initval handling to btor back-end

6 years agoAdd btor back-end support for 'x' constants
Clifford Wolf [Tue, 12 Dec 2017 20:48:55 +0000 (21:48 +0100)]
Add btor back-end support for 'x' constants

6 years agoAdd SigSpec::is_fully_ones()
Clifford Wolf [Tue, 12 Dec 2017 20:48:31 +0000 (21:48 +0100)]
Add SigSpec::is_fully_ones()

6 years agoAdd warnings for driver-driver conflicts between FFs (and other cells) and constants
Clifford Wolf [Tue, 12 Dec 2017 16:13:27 +0000 (17:13 +0100)]
Add warnings for driver-driver conflicts between FFs (and other cells) and constants

6 years agoAdd btor $shift/$shiftx support
Clifford Wolf [Mon, 11 Dec 2017 13:24:19 +0000 (14:24 +0100)]
Add btor $shift/$shiftx support

6 years agoFix port names in SB_IO_OD
Graham Edgecombe [Sat, 9 Dec 2017 21:49:07 +0000 (21:49 +0000)]
Fix port names in SB_IO_OD

6 years agoRemove trailing comma from SB_IO_OD port list
Graham Edgecombe [Sat, 9 Dec 2017 21:39:20 +0000 (21:39 +0000)]
Remove trailing comma from SB_IO_OD port list

This isn't compatible with Icarus Verilog.

6 years agoFix btor back-end shift handling
Clifford Wolf [Sun, 10 Dec 2017 07:40:11 +0000 (08:40 +0100)]
Fix btor back-end shift handling

6 years agoAdd support for $pmux in btor back-end
Clifford Wolf [Sun, 10 Dec 2017 07:11:08 +0000 (08:11 +0100)]
Add support for $pmux in btor back-end

6 years agoAdd support for more cell types to btor back-end
Clifford Wolf [Sun, 10 Dec 2017 06:16:47 +0000 (07:16 +0100)]
Add support for more cell types to btor back-end

6 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Sun, 10 Dec 2017 00:27:41 +0000 (01:27 +0100)]
Merge branch 'master' into btor-ng

6 years agoAdd support for Verific PRIM_SVA_NOT properties
Clifford Wolf [Sun, 10 Dec 2017 00:10:03 +0000 (01:10 +0100)]
Add support for Verific PRIM_SVA_NOT properties

6 years agoAdd Verific OPER_SVA_STABLE support
Clifford Wolf [Sat, 9 Dec 2017 23:59:44 +0000 (00:59 +0100)]
Add Verific OPER_SVA_STABLE support

6 years agoRefactoring Verific SVA rewriter
Clifford Wolf [Sat, 9 Dec 2017 23:26:26 +0000 (00:26 +0100)]
Refactoring Verific SVA rewriter

6 years agoFix btor concat
Clifford Wolf [Sat, 9 Dec 2017 04:58:14 +0000 (05:58 +0100)]
Fix btor concat

6 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Sat, 9 Dec 2017 04:26:02 +0000 (05:26 +0100)]
Merge branch 'master' into btor-ng

6 years agoMerge pull request #467 from mithro/patch-1
Clifford Wolf [Sat, 9 Dec 2017 02:46:32 +0000 (03:46 +0100)]
Merge pull request #467 from mithro/patch-1

Fix spelling in -vpr help for synth_ice40

6 years agoFix spelling in -vpr help for synth_ice40
Tim Ansell [Sat, 9 Dec 2017 02:44:45 +0000 (18:44 -0800)]
Fix spelling in -vpr help for synth_ice40

6 years agoUse "hg ... --insecure" for cloning/pulling ABC
Clifford Wolf [Sun, 3 Dec 2017 05:11:11 +0000 (06:11 +0100)]
Use "hg ... --insecure" for cloning/pulling ABC

6 years agoUpdate ABC to hg rev 31fc97b0aeed
Clifford Wolf [Sat, 2 Dec 2017 20:24:12 +0000 (21:24 +0100)]
Update ABC to hg rev 31fc97b0aeed

6 years agoFix error handling for nested always/initial
Clifford Wolf [Sat, 2 Dec 2017 17:52:05 +0000 (18:52 +0100)]
Fix error handling for nested always/initial

7 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Fri, 1 Dec 2017 22:51:58 +0000 (23:51 +0100)]
Merge branch 'master' into btor-ng

7 years agoMerge pull request #462 from daveshah1/up5k
Clifford Wolf [Tue, 28 Nov 2017 14:53:53 +0000 (15:53 +0100)]
Merge pull request #462 from daveshah1/up5k

Add remaining UltraPlus cells to ice40 techlib

7 years agoAdd remaining UltraPlus cells to ice40 techlib
David Shah [Tue, 28 Nov 2017 11:07:49 +0000 (11:07 +0000)]
Add remaining UltraPlus cells to ice40 techlib

7 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Mon, 27 Nov 2017 18:45:15 +0000 (19:45 +0100)]
Merge branch 'master' into btor-ng

7 years agoFixed "yosys-smtbmc -g" handling of no solution
Clifford Wolf [Mon, 27 Nov 2017 16:42:32 +0000 (17:42 +0100)]
Fixed "yosys-smtbmc -g" handling of no solution

7 years agoFixed "yosys-smtbmc -g" handling of no solution
Clifford Wolf [Mon, 27 Nov 2017 16:42:32 +0000 (17:42 +0100)]
Fixed "yosys-smtbmc -g" handling of no solution

7 years agoMerge pull request #460 from mithro/g3-fixes
Clifford Wolf [Sun, 26 Nov 2017 06:16:06 +0000 (07:16 +0100)]
Merge pull request #460 from mithro/g3-fixes

Bunch of small fixes

7 years agoMerge pull request #461 from mithro/travis-rework
Clifford Wolf [Sun, 26 Nov 2017 06:14:58 +0000 (07:14 +0100)]
Merge pull request #461 from mithro/travis-rework

travis: Print branches before fetching, try both locations.

7 years agotravis: Print branches before fetching, try both locations.
Tim 'mithro' Ansell [Sun, 26 Nov 2017 03:44:41 +0000 (19:44 -0800)]
travis: Print branches before fetching, try both locations.

7 years agominisat: Make update script executable.
Tim 'mithro' Ansell [Fri, 24 Nov 2017 04:37:35 +0000 (15:37 +1100)]
minisat: Make update script executable.

7 years agominisat: Only define __STDC_XXX_MACROS if not already defined.
Tim 'mithro' Ansell [Fri, 24 Nov 2017 04:34:46 +0000 (15:34 +1100)]
minisat: Only define __STDC_XXX_MACROS if not already defined.

Replace;
 #define __STDC_LIMIT_MACROS
 #define __STDC_FORMAT_MACROS

With
 #ifndef __STDC_LIMIT_MACROS
 #define __STDC_LIMIT_MACROS
 #endif
 #ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
 #endif

This fixes a compile warning if you are defining these macros in your
CXXFLAGS (as some distros do).

7 years agominisat: Remove template with gzFile specialization.
Tim 'mithro' Ansell [Fri, 24 Nov 2017 04:30:55 +0000 (15:30 +1100)]
minisat: Remove template with gzFile specialization.

All the other gzFile functions have been removed but this template was
still left around.

7 years agosubcircuit: Class with virtual methods should have virtual destructor.
Tim 'mithro' Ansell [Fri, 24 Nov 2017 04:26:56 +0000 (15:26 +1100)]
subcircuit: Class with virtual methods should have virtual destructor.

Fixes a compile warning.

* https://stackoverflow.com/questions/1123044/when-should-your-destructor-be-virtual

7 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Fri, 24 Nov 2017 17:14:53 +0000 (18:14 +0100)]
Merge branch 'master' into btor-ng

7 years agoBugfixes in new BTOR back-end
Clifford Wolf [Fri, 24 Nov 2017 17:13:41 +0000 (18:13 +0100)]
Bugfixes in new BTOR back-end

7 years agoMerge pull request #446 from mithro/travis-rework
Clifford Wolf [Fri, 24 Nov 2017 05:49:15 +0000 (06:49 +0100)]
Merge pull request #446 from mithro/travis-rework

Reworking the Travis CI for Yosys.

7 years agotravis: Use the cache.
Tim 'mithro' Ansell [Thu, 26 Oct 2017 21:37:38 +0000 (14:37 -0700)]
travis: Use the cache.

7 years agotravis: Adding gcc-4.8 and gcc-6 on Linux.
Tim 'mithro' Ansell [Thu, 26 Oct 2017 19:07:26 +0000 (12:07 -0700)]
travis: Adding gcc-4.8 and gcc-6 on Linux.

7 years agotravis: Reworking travis setup.
Tim 'mithro' Ansell [Thu, 26 Oct 2017 03:01:54 +0000 (20:01 -0700)]
travis: Reworking travis setup.

 * Move the code into scripts inside .travis directory.
 * Build on multiple compiler versions.

Fixes #442 - Make travis build pass
Fixes #441 - Fix git version information on travis build
Fixes #440 - Make travis cache the iverilog build

7 years agoProgress in new BTOR back-end
Clifford Wolf [Thu, 23 Nov 2017 22:44:39 +0000 (23:44 +0100)]
Progress in new BTOR back-end

7 years agoProgress in new BTOR back-end
Clifford Wolf [Thu, 23 Nov 2017 17:50:10 +0000 (18:50 +0100)]
Progress in new BTOR back-end

7 years agoProgress in new BTOR back-end
Clifford Wolf [Thu, 23 Nov 2017 17:14:53 +0000 (18:14 +0100)]
Progress in new BTOR back-end

7 years agoMerge branch 'master' into btor-ng
Clifford Wolf [Thu, 23 Nov 2017 08:00:22 +0000 (09:00 +0100)]
Merge branch 'master' into btor-ng

7 years agoMerge branch 'master' of github.com:cliffordwolf/yosys
Clifford Wolf [Thu, 23 Nov 2017 07:57:55 +0000 (08:57 +0100)]
Merge branch 'master' of github.com:cliffordwolf/yosys

7 years agoAdd Verilog "automatic" keyword (ignored in synthesis)
Clifford Wolf [Thu, 23 Nov 2017 07:48:17 +0000 (08:48 +0100)]
Add Verilog "automatic" keyword (ignored in synthesis)

7 years agoProgress with new BTOR backend
Clifford Wolf [Thu, 23 Nov 2017 07:28:29 +0000 (08:28 +0100)]
Progress with new BTOR backend

7 years agoAdd skeleton for new BTOR back-end
Clifford Wolf [Thu, 23 Nov 2017 05:38:57 +0000 (06:38 +0100)]
Add skeleton for new BTOR back-end