Belle II Software  release-08-01-10
ScalarVariable Class Reference
Inheritance diagram for ScalarVariable:
Collaboration diagram for ScalarVariable:

Public Member Functions

def format_value (self, value, check=True)
 

Public Attributes

 ident
 Identifier used in VCD output stream.
 
 type
 VCD variable type; one of :const:VCDWriter.VAR_TYPES.
 
 size
 Size, in bits, of variable.
 

Static Private Attributes

tuple __slots__ = ()
 variables
 

Detailed Description

One-bit VCD scalar.

This is a 4-state variable and thus may have values of 0, 1, 'z', or 'x'.

Definition at line 486 of file writer.py.

Member Function Documentation

◆ format_value()

def format_value (   self,
  value,
  check = True 
)
Format scalar value change for VCD stream.

:param value: 1-bit (4-state) scalar value.
:type value: str, bool, int, or None
:raises ValueError: for invalid *value*.
:returns: string representing value change for use in a VCD stream.

Reimplemented from Variable.

Definition at line 496 of file writer.py.


The documentation for this class was generated from the following file: