Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SignalT

Basic signal type. Should not be instantiated directly, instead use Signal

Hierarchy

Index

Constructors

constructor

  • new SignalT(width?: number, signedness?: Signedness, defaultValue: number | undefined): SignalT
  • Parameters

    • Default value width: number = 1
    • Default value signedness: Signedness = Signedness.Unsigned
    • defaultValue: number | undefined

    Returns SignalT

Properties

defaultValue

defaultValue: number

hasDefaultValue

hasDefaultValue: boolean

signedness

signedness: Signedness

type

type: string = SIGNAL

value

width

width: number

Methods

!=

&

&&

+

++

-

<

<<

<<<

<=

=

==

>

>=

>>

>>>

?

^

and

andLogical

asSigned

asUnsigned

bit

clone

concat

eq

gt

gte

isEqual

lt

lte

minus

neq

or

orLogical

plus

setTo

shiftLeft

shiftLeftA

shiftRight

shiftRightA

signExtend

  • signExtend(toWidth: number): ConcatT

slice

  • slice(fromBit: number, toBit: number): SliceT
  • Create a slice from this signal (inclusive)

    Parameters

    • fromBit: number

      the starting bit

    • toBit: number

      the ending bit

    Returns SliceT

ternary

xor

zeroExtend

  • zeroExtend(toWidth: number): ConcatT

|

||

Generated using TypeDoc