Martin Whitaker
0cb1ebddf1
Fix for GitHub issue #239 - segfault when library file has syntax errors.
...
If there are errors when parsing a file, it is not safe to elaborate any
modules that have been found in that file.
2019-07-24 10:22:55 +01:00
Martin Whitaker
8cd8bed22e
Fix GitHub issue #243 - support arbitrary width static bit arrays in vvp.
2019-07-24 09:15:44 +01:00
Martin Whitaker
89cbc42094
Reset parser tracking variables when starting a new compilation unit.
...
This fixes the problem reported in GitHub issue #254 , where if the
parser aborted on one compilation unit, spurious errors were reported
for the next compilation unit.
2019-07-23 22:18:39 +01:00
Martin Whitaker
acdd78db7d
Merge branch 'primitive_redefinition' of https://github.com/thasti/iverilog
...
- make primitive redefinition a warning, not an error
- make edge-sensitive ifnone a warning, not an error
This allows Icarus to be used to simulate designs using third-party
cell libraries that contain such things.
2019-07-23 21:53:57 +01:00
Stefan Biereigel
ca19ebe5d5
remove Error:/Warning: prefix from VLerror/VLwarn
2019-07-23 18:58:20 +02:00
Martin Whitaker
4055752959
Fix white space errors.
2019-07-23 10:08:37 +01:00
Martin Whitaker
93ea864106
Merge branch 'antmicro-attribute_support'
2019-07-23 10:06:57 +01:00
Maciej Kurc
b619b43ddd
Added support for parsing attributes on function calls
...
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-06-05 16:42:52 +02:00
Maciej Kurc
e6fa2625a4
Added support for parsing attributes on port connections
...
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-06-05 16:28:45 +02:00
Martin Whitaker
5bb6c7f53a
Fix makefile rules for header files generated by bison.
...
bison 3.4.1 writes the header file before the c++ file. Our makefile
rules make the header files depend on the c++ files, so we need to
fix the timestamps accordingly.
2019-06-02 18:50:18 +01:00
Stefan Biereigel
c6cf83a13a
make ifnone-error a warning
2019-05-17 16:17:08 +02:00
Stefan Biereigel
0cfb66ecbc
fix warning call
2019-05-17 15:32:45 +02:00
Stefan Biereigel
7f5145d758
emit only warning for primitive redefinition
2019-05-17 15:20:49 +02:00
Cary R
e93ee3967e
Update cppcheck suppression file
2019-05-14 22:34:58 -07:00
Cary R
4c58b88792
Update files from GTKWave
2019-05-14 22:34:34 -07:00
Martin Whitaker
ffb34861cf
Fix GitHub issue #244 : handle mixed signed/unsigned power operations.
...
The signed version of the power operation in vvp should only be used
if the exponent is signed. Both signed and unsigned versions will
produce the correct result regardless of the type of the base operand,
provided it has been appropriately extended to the result size.
2019-05-11 21:33:29 +01:00
Martin Whitaker
c4f71db00a
Update some comments.
2019-05-10 20:00:04 +01:00
Cary R
a9388a895e
Update cppcheck waivers
2019-03-26 22:43:03 -07:00
Cary R
407b5a1d7a
Update fstapi.c to the latest from GTKWave
2019-03-26 19:59:18 -07:00
Stephen Williams
cc921de717
Improve mingw cross instructions.
2019-03-24 10:42:36 -07:00
Stephen Williams
a518d594d2
Merge pull request #135 from udif/cross_compile
...
Fixed cross-compile using mingw 64 bit under Windows 10 Linux subsyst…
2019-03-24 10:28:23 -07:00
Stephen Williams
c3575d379b
Merge branch 'master' into cross_compile
2019-03-24 10:27:33 -07:00
Martin Whitaker
51a13e883a
Fix for GitHub issue 235: segfault when calling vpi_handle_by_name().
...
When vpi_handle_by_name() iterates over the VPI objects in a scope, handle
the case that vpi_get_str() returns a null value. This currently occurs if
the scope contains an enum type definition, as vpi_get_str() is not
implemented for __vpiEnumTypespec.
2019-03-23 17:21:40 +00:00
Tomasz Hemperek
45fa3b1dec
cleanup travis.yml
2019-03-23 16:29:09 +01:00
Stephen Williams
df92caadbc
Document cross-compile from Linux to Windows.
...
This uses the mingw32 tool chain on Linux to build Windows
binaries.
2019-03-22 13:57:38 -07:00
Stephen Williams
c3d5b23ac4
Fix some Windows build issues.
2019-03-22 08:08:29 -07:00
Martin Whitaker
9369d6db57
Update README to say "or later" for build tool versions.
2019-03-16 12:40:08 +00:00
martinwhitaker
3b32288c6f
Merge pull request #232 from cdlscpmv/fix
...
Fix a typo in the man page
2019-03-16 12:32:00 +00:00
Konst Mayer
f95ae911d0
Fix a typo in the man page
2019-03-13 00:16:41 +07:00
Martin Whitaker
dc5429e5e7
Fix assertion failure on assignment to part of variable member (GitHub issue #226 )
...
For now, output a "sorry" message, as the compiler doesn't support this.
2019-01-26 17:36:19 +00:00
Martin Whitaker
2ff6af254b
Use LLONG_MIN instead of LONG_LONG_MIN.
...
GCC 8 no longer defines LONG_LONG_MIN. We already assume a C99 compliant
compiler in other places.
2019-01-26 16:47:28 +00:00
Martin Whitaker
e745304cc4
Fix for GitHub issue #224 - import * does not import enum members.
2019-01-15 19:58:37 +00:00
Martin Whitaker
7cd078e7ab
Restrict cast type to what's allowed by the IEEE standard.
2018-12-15 12:26:33 +00:00
Martin Whitaker
230f0bc13c
Fix GitHub issue #219 and #220 - incorrect results from SV size cast.
2018-12-15 11:11:35 +00:00
Cary R
172d7eb0a3
Fix space issues in a couple files
2018-11-13 21:57:46 -08:00
Tomasz Hemperek
5cb562be48
No clang for travis.
2018-11-03 22:43:16 +01:00
Tomasz Hemperek
5911fbf872
Merge remote-tracking branch 'upstream/master'
2018-11-03 22:22:41 +01:00
Tomasz Hemperek
cbe9bba291
Add windows build to travis-ci
2018-11-03 21:35:13 +01:00
Tomasz Hemperek
a96609d482
Update .travis.yml
2018-11-03 08:15:22 +01:00
Tomasz Hemperek
8b67c9ff62
Update .travis.yml
2018-11-03 08:07:11 +01:00
Martin Whitaker
3612076943
Undo redefinition of unique_ptr at end of header files.
...
It seems that clang both defines __cplusplus < 201103L and provides
unique_ptr (GitHub issue #215 ).
2018-11-02 21:22:10 +00:00
Martin Whitaker
6887c31d8c
Refactor vpi module path code.
...
Also restore the original behaviour of the '-M -' option, although it's
probably not needed now we add the default path last.
2018-10-29 20:33:52 +00:00
Martin Whitaker
dd33da0d5b
Merge branch 'alexforencich-master'
2018-10-29 19:37:33 +00:00
Alex Forencich
a1ad6d4b51
Support IVERILOG_VPI_MODULE_PATH environment variable
2018-10-28 12:44:09 -07:00
Alex Forencich
a638d1eed0
Check for too many paths specified and fix path priority so paths specified on command line supersede built-in paths
2018-10-28 12:43:40 -07:00
Cary R
844fa056f7
Update fstapi files to the latest from GTKWave
2018-10-12 21:30:20 -07:00
Martin Whitaker
fdf353af29
Don't use MinGW strtod workaround when building for MinGW-w64.
...
The host triplet for MinGW-w64 has changed to more closely match that
for MinGW, so we need to update the pattern in the test.
2018-10-07 23:49:19 +01:00
Martin Whitaker
2f142c4858
Revert "Fix x86_64-w64-mingw32 build: undefined ___strtod"
...
This reverts commit bef04508f2 .
2018-10-07 23:47:26 +01:00
Martin Whitaker
9d0d1938dc
Fix bug in output of null character with %c format.
2018-10-07 18:59:53 +01:00
Martin Whitaker
5aae9ea770
Fix bit width when converting real value to binary/hex string in VPI.
2018-10-07 17:17:33 +01:00