mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Support for automatic tasks and functions.
This patch adds support for automatic tasks and functions. Refer to the overview in vvp/README.txt for details.
This commit is contained in:
committed by
Stephen Williams
parent
46bf03bba4
commit
7ebcc6b357
+3
-1
@@ -852,7 +852,9 @@ void compile_var_array(char*label, char*name, int last, int first,
|
||||
|
||||
/* Make the words. */
|
||||
arr->vals_width = labs(msb-lsb) + 1;
|
||||
arr->vals = new vvp_vector4array_t(arr->vals_width, arr->array_count);
|
||||
arr->vals = new vvp_vector4array_t(arr->vals_width, arr->array_count,
|
||||
vpip_peek_current_scope()->is_automatic);
|
||||
vpip_add_item_to_current_scope(arr->vals);
|
||||
vpip_make_dec_const(&arr->msb, msb);
|
||||
vpip_make_dec_const(&arr->lsb, lsb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user