Skip to content

String Type

Scalar Types aka native Types.

StringType

Bases: BaseType, Light

Native String.

Example:

import ucdp as u example = u.StringType() example StringType() example = u.StringType(default='data') example StringType(default='data') example[1:3] StringType(default='at')

is_connectable

is_connectable(other)

Check For Valid Connection To other.

Connections are only allowed to other :any:StringType. The default and isolation value have no influence.

import ucdp as u u.StringType().is_connectable(u.StringType()) True

A connection to other types is forbidden.

u.StringType().is_connectable(u.UintType(1)) False

__getitem__

__getitem__(slice_)

Return Sliced Variant.