Project

General

Profile

Actions

Task #5802

closed

NodeValue newZero(DataType dataType)

Added by Sergey Smolov over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
Expression
Target version:
Start date:
04/06/2015
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:

Description

A convenience method with the following signature is required:

NodeValue newZero(DataType dataType)

Methods returns "zero value" of the specified data type.

For integer, real, boolean types it returns 0, 0.0, and false respectively (of course, embedded in NodeValue object).

For bit vector type it returns bit vector that contains only zeros.

For map type it returns map that contains only zeros too.

Actions #1

Updated by Sergey Smolov over 9 years ago

  • Status changed from New to Closed

There is no need in this method since I've found that there is another approach in HDL for calculation of initial values of variables.

This ticket can be rejected.

Actions

Also available in: Atom PDF