Cary R
d9478bd837
Update cppcheck waiver files
2017-10-23 00:21:51 -07:00
Cary R
97e2123724
Update to latest files from GTKWave
2017-10-22 19:41:14 -07:00
Andrew Andrianov
3e87a4d242
driver: Add -Wno-macro-redefinition, properly pass -Wredef to ivlpp
...
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-22 13:53:07 +03:00
Andrew Andrianov
9e2252bc39
ivlpp: Actually take warn_redef flag into account
...
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-22 13:28:15 +03:00
Andrew Andrianov
94e42e5bfc
driver: Update manpage
...
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-19 11:40:50 +03:00
Andrew Andrianov
6c2fba1139
driver: Implement -Wr handling for macro redefinitions
...
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-19 11:40:07 +03:00
Andrew Andrianov
0c84413347
ivlpp: Add -Wredef option to enable redefinition warnings
...
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-18 19:18:14 +03:00
Martin Whitaker
4f383a8a11
Enable base class tasks to be used in an extended class.
2017-10-08 21:16:50 +01:00
Martin Whitaker
87cddf33dc
Fix for GitHub issue #98 and #167
...
Two fixes needed:
- when searching for a base class, we need to look in the root scope
if the base class isn't found in the scope hierarchy
- the classes in the root scope need to be stored in an ordered
list, not a map, to ensure they are elaborated in the order they
were declared. Without this, the compiler may try elaborating an
extended class before its base class is known about.
2017-10-08 21:15:11 +01:00
Martin Whitaker
5ca058bfb5
Add support for darray initialisation from another darray.
...
Fixes GitHub issue #164 .
2017-10-08 17:51:33 +01:00
Martin Whitaker
1aeaafa96c
Add support for vec4 darray initialisation from an array pattern.
...
This was just a missing case label in tgt-vvp.
2017-10-08 17:41:58 +01:00
Martin Whitaker
8a36849fda
Generate proper error messages for invalid dynamic array initialisers.
...
Invalid user code should not result in an "internal_error".
2017-10-08 12:59:30 +01:00
Andrew Andrianov
73167563d5
ivlpp: Warn about macro redefinition
...
Verilog spec has a very nasty system of macros jumping from
file to file, resulting in a global macro scope. We abosolutely
MUST track macro redefinitions and warn user about them.
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2017-10-08 14:22:40 +03:00
Martin Whitaker
e315cafa01
Fix for GitHub issue #165 : assertion failure on thread join.
...
If a thread becomes detached due to a join_any statement, that
thread must not attempt to join its parent, even if the parent
is waiting on a subsequent join statement.
2017-10-07 16:41:26 +01:00
Martin Whitaker
85fa24fa58
Fix for br1025 : support nested scopes in root level tasks/functions.
2017-10-04 21:31:56 +01:00
Martin Whitaker
3566ff4cd4
Fix for GitHub issue #163 : assertion failure caused by syntax error in task.
2017-09-28 19:24:04 +01:00
Martin Whitaker
a1a7f5deff
Fix error in last commit.
2017-09-17 19:58:13 +01:00
Martin Whitaker
0bed890bc6
Fix use after free bug in vvp when a task or function is disabled.
...
Use test_joinable() and do_join() to ensure everything gets cleaned
up before the thread is reaped. This should fix br1016, br1017, and
br1018.
2017-09-17 19:48:54 +01:00
Martin Whitaker
c855b8926e
Fix for GitHub issue #162 : very wide busses cause assertion failure.
...
This occurs when tgt-vvp attempts to generate a C4<..> constant
value with a bit width >= 65536. The actual failure occurs in the
StringHeap class, which originally supported a maximum string length
of 65535. This fix enables the StringHeap class to support any size
string (provided the system has sufficient memory).
2017-09-11 21:49:35 +01:00
Martin Whitaker
ac87138c44
Fix for br1019 - allow multiple array words to be attached to a vpi callback.
...
Normally there is at most one signal attached to a vvp functor, but
due to port collapsing, there can be more than one. If these signals
are array words, we need to trigger vpi callbacks on all the associated
arrays when the functor value changes.
2017-08-12 12:23:43 +01:00
Cary R
917d754e37
Fix space issue
2017-07-22 13:00:50 -07:00
Daniel Andrade
7362c7cbf8
Clarifying compilation instructions
2017-06-30 20:41:55 -03:00
Cary R
62e0f59b07
No need for class in previous patch
2017-06-19 21:26:24 -07:00
Cary R
10ef0eb109
Fix class versus struct warning in clang
2017-06-19 21:26:16 -07:00
Martin Whitaker
42422d9940
Don't allow localparams to be overridden (GitHub issue #157 )
...
Currently we only issue a warning if a parameter override references
a parameter that doesn't exist, so do the same in this case.
2017-06-16 20:56:31 +01:00
Martin Whitaker
e2be64558b
Ensure value passed to named event via vpi_put_value() is initialised.
...
The __vpiNamedEvent::vpi_put_value() function ignores the value, but
intermediate code looks at it.
2017-06-15 09:11:11 +01:00
Martin Whitaker
3de7c234f7
Implement vpi_put_value() for named events (GitHub issue #158 ).
2017-06-15 08:47:29 +01:00
Martin Whitaker
8a5cbd4415
Fix for GitHub issue #152 - segfault on gate connection syntax error.
...
If there is a syntax error in the source code, pform_makegate may be
passed a null list of port connections. The error is already reported,
so we just need to ignore it.
2017-04-21 21:37:17 +01:00
Stephen Williams
0f57cceecc
Merge pull request #154 from 8tab/depfile
...
Return if unable to open dependencies file
2017-04-10 09:43:05 -07:00
8tab
cac5388451
Return if unable to open dependencies file
...
Return and print an error if iverilog is unable to open dependencies
file. User can pass e.g path to existing directory in '-M' option,
which makes fopen to return NULL followed by crash in fclose.
2017-04-09 23:18:49 +02:00
Stephen Williams
02ed16a50e
Merge pull request #151 from tumik/master
...
Added an option for ignoring errors about missing modules
2017-03-22 15:33:58 -07:00
Mikael Tuomisalo
c967ed238c
Added option for ignoring errors about missing modules
2017-03-21 17:34:44 +02:00
Stephen Williams
135b7fba7e
Merge pull request #149 from jersey99/master
...
Add support to handle attributes at module instantiation sites.
2017-03-16 09:38:04 -07:00
Vamsi Vytla
cfd3b893be
Add support to handle attributes at module instantiation sites.
...
(* my_fancy_attribute *)
foobar1 foobar (clk(clk), rst(rst) ...);
- Modifies PGModule to hold the attribute map (can be verified with pform_dump)
- pform_make_modgate(s) bind the attributes from the parser to the above map
- The attributes from PGModule are inserted into the NetScope of that module
PGModule::elaborate_scope_mod_instances_
- Currently these attributes automatically make it into netlist
- These attributes are accessible via ivl_scope_attr_cnt and ivl_scope_attr_val
from ivl_target.h
2017-03-16 07:41:10 -07:00
Stephen Williams
fbd69e1774
Merge pull request #148 from Jesus89/mingw-fix
...
Fix x86_64-w64-mingw32 build: undefined ___strtod
2017-02-27 15:12:12 -08:00
Jesús Arroyo Torrens
bef04508f2
Fix x86_64-w64-mingw32 build: undefined ___strtod
2017-02-24 10:43:30 +01:00
Stephen Williams
a427440054
Merge branch 'master' of github.com:steveicarus/iverilog
2017-02-17 10:40:14 -08:00
Johann Klammer
8bccbe7cb5
fix for const eval
2017-02-17 09:55:39 -08:00
Martin Whitaker
3c91630b53
Improved error checking for defparam values supplied on the command line.
...
Fixes GitHub issue #139 plus various assertion failures when invalid
values are specified.
2017-01-29 20:13:01 +00:00
Martin Whitaker
8f6f999ea7
Fix for GitHub issue #142 - assertion failure when parameter expression
...
contains undefined variable.
2017-01-29 10:47:54 +00:00
Martin Whitaker
4e2ba29dc6
Add library search path option to iverilog-vpi (GitHub issue #145 ).
2017-01-29 09:32:14 +00:00
Stephen Williams
221084d838
Sorry message for procedural assertion statements.
2017-01-10 11:38:38 -08:00
Cary R
3d9e777ae5
Allocate the correct amount of memory when escaping a string
2017-01-08 20:46:20 -08:00
Udi Finkelstein
7cf279b8a5
Turn off warnings caused by gcc 6.2.0 as installed by the MSYS2 mingw32
...
package. This probably affects all gcc 5.x installs as well.
2017-01-02 22:46:07 +02:00
Johann Klammer
c79df7c44b
fix failing VPI callbacks the vpip_cur_task was left dangling
2017-01-01 17:44:54 -08:00
Stephen Williams
6e5558e67d
Trivial fixes to pform dumps.
2016-12-29 09:39:45 -08:00
Udi Finkelstein
a3bedb8e00
mingw installs now also pack the required DLLs.
2016-12-11 16:18:36 +02:00
Udi Finkelstein
f48b0e3434
Allows compiling for Windows (32 or 64 bits) under Linux.
2016-12-11 03:40:35 +02:00
Udi Finkelstein
2127680e49
Fixed cross-compile using mingw 64 bit under Windows 10 Linux subsystem (Ubunto 14.04)
...
Should work with true Ubuntu 14.04 as-is.
2016-12-08 00:11:22 +02:00
Stephen Williams
063ae77568
Merge pull request #132 from Fatsie/master
...
[vhdlpp]Added to_bit and to_bitvector standard functions
2016-11-29 08:59:51 -08:00